@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==================================== */
/* ⚡️ VARIABLES */
/* ==================================== */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --bg-elevated: #262626;
    --accent-primary: #e53935;
    --accent-secondary: #b71c1c;
    --accent-success: #2e7d32;
    --accent-warning: #ef6c00;
    --accent-danger: #c62828;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8c8c8c;
    --border-primary: #333333;
    --border-secondary: #4a4a4a;
    --glow-primary: #e53935;
    --glow-secondary: rgba(229, 57, 53, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ==================================== */
/* 🌐 BASE STYLES & UTILITIES */
/* ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 2rem;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================================== */
/* 🦸‍♂️ HERO SECTION */
/* ==================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, rgba(229, 57, 53, 0.1) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero .location {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
}

/* 🖼️ PROFILE */
.profile-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 60px var(--glow-primary);
    animation: profileGlow 4s ease-in-out infinite alternate;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    animation: rotate 8s linear infinite;
}

.profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.profile-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 🟢 STATUS DOT */
.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--text-tertiary);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-success);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.online {
    background: var(--accent-success);
    box-shadow: 0 0 12px var(--accent-success);
}

.status-dot.idle {
    background: var(--accent-warning);
    box-shadow: 0 0 12px var(--accent-warning);
}

.status-dot.dnd {
    background: var(--accent-danger);
    box-shadow: 0 0 12px var(--accent-danger);
}

.status-dot.offline {
    background: var(--text-tertiary);
    box-shadow: none;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.status-dot.idle::after {
    background: var(--bg-primary);
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-radius: 50%;
}

.status-dot.dnd::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 20%;
    background: var(--bg-primary);
    top: 40%;
    left: 20%;
    border-radius: 4px;
}

/* ==================================== */
/* 💻 MAIN CONTENT GRID */
/* ==================================== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    padding: 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* 📄 SECTION CARD */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section:hover {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.section:hover::before {
    opacity: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* 🛠️ SKILLS */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-group {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-group:hover::before {
    transform: scaleX(1);
}

.skill-group:hover {
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

.skill-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.2);
    color: var(--accent-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
    color: white;
    border-color: var(--accent-primary);
}

.skill-tag:hover::before {
    opacity: 1;
}

.skill-tag span {
    position: relative;
    z-index: 1;
}

/* 🎮 ACTIVITIES */
.activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.activity-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.activity-item .emoji {
    width: 16px;
    height: 16px;
}

/* 🧑‍💼 STAFF */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.server-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-success), var(--accent-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.server-card:hover {
    border-color: var(--border-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.server-card:hover::before {
    transform: scaleX(1);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.server-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
}

.server-logo img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.server-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: var(--text-tertiary);
    box-shadow: none;
    animation: none;
}

.server-role {
    background: rgba(46, 125, 50, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 🔗 CONNECTIONS */
.connections-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.connection-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.connection-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.05), rgba(183, 28, 28, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.connection-card:hover {
    border-color: var(--border-secondary);
    transform: translateX(4px);
    color: var(--text-primary);
}

.connection-card:hover::before {
    opacity: 1;
}

.connection-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.connection-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    margin-bottom: 0.125rem;
}

.connection-info p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* 📊 GITHUB STATS & COMMITS */
.github-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.github-stat {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.github-stat:hover {
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

.github-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.github-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.github-commits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.commit-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.commit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.commit-item:hover {
    border-color: var(--border-secondary);
    transform: translateX(2px);
}

.commit-item:hover::before {
    opacity: 1;
}

.commit-message {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.commit-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.commit-repo {
    font-weight: 500;
    color: var(--accent-primary);
}

/* 📈 LANGUAGES CHART */
.languages-bar-chart {
    margin-top: 1rem;
}

.languages-bar-chart h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

#languagesChart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-bar span:first-child {
    min-width: 100px;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.language-progress-container {
    flex-grow: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ⭐️ STAR BUTTON */
.star-button-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.star-button-container:hover {
    transform: translateY(-2px);
    border-color: var(--border-secondary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.star-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.star-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.star-button:hover::before {
    opacity: 0.2;
}

.star-icon {
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

.star-icon.active {
    color: var(--accent-primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(229, 57, 53, 0.6));
}

.star-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.star-count.updated {
    transform: scale(1.2);
    color: var(--accent-primary);
}

.star-particle {
    position: absolute;
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--accent-primary);
    animation: particleFloat 1s ease-out forwards;
}

/* 📝 DEMO CONTENT */
.demo-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
}

.demo-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.loading-skeleton {
    background: var(--bg-tertiary);
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

/* ==================================== */
/* 🚀 ANIMATIONS */
/* ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes profileGlow {
    0% {
        box-shadow: 0 0 60px var(--glow-primary);
    }
    100% {
        box-shadow: 0 0 80px var(--glow-secondary);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes starPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes countBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--random-x, 0), var(--random-y, -30px)) scale(0.5);
    }
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.star-icon.animate {
    animation: starPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-count.animate {
    animation: countBounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================================== */
/* 💻 NAVBAR */
/* ==================================== */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
    transform: translateX(-50%) translateY(-2px);
    border-color: var(--border-secondary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 6px;
    font-size: 0.875rem;
}

.brand-text {
    font-size: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(241, 99, 99, 0.1), rgba(246, 92, 92, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(241, 99, 99, 0.1);
    border: 1px solid rgba(241, 99, 99, 0.2);
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 1rem;
}

/* ==================================== */
/* 📄 CHI SONO SECTION */
/* ==================================== */
.chi-sono {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.chi-sono .content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chi-sono .content:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.chi-sono h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.chi-sono p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.chi-sono strong {
    color: var(--text-primary);
    font-weight: 700;
}

.chi-sono .extra-info-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.25rem;
}

.chi-sono .extra-info-heading::before {
    content: '✨';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.chi-sono .extra-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chi-sono .extra-info-list li {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.chi-sono .extra-info-list li:hover {
    border-color: var(--border-secondary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.chi-sono .extra-info-list li .fas,
.chi-sono .extra-info-list li .fa-brands,
.chi-sono .extra-info-list li .fa-solid {
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.chi-sono .extra-info-list li p {
    margin: 0;
    line-height: 1.5;
}

.chi-sono .extra-info-list li p strong {
    color: var(--accent-primary);
}

.chi-sono .special-text {
    font-style: italic;
    text-align: center;
    color: var(--text-tertiary);
    margin-top: 3rem;
    border-top: 1px solid var(--border-primary);
    padding-top: 2rem;
}

/* ==================================== */
/* 💻 SERVICES SECTION */
/* ==================================== */
.services-shop-section {
    padding-top: 8rem;
    padding-bottom: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.services-shop-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.shop-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.product-box {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-box:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.5);
    transform: translateY(-5px);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/* Applica l'effetto di hover solo alle icone che hanno il cerchio */
.product-box:hover .fa-brands.product-icon,
.product-box:hover .fas.product-icon {
    transform: scale(1.1);
}

.product-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 80px;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: #2E7D32;
    margin-top: auto;
    padding-top: 2rem;
}

.price span {
    font-weight: 800;
    color: #2E7D32;
}

.info-text {
    margin-top: 2rem;
    color: var(--text-secondary);
}

.info-text a {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ==================================== */
/* 📱 MEDIA QUERIES */
/* ==================================== */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 1.5rem;
    }
    .services-shop-section {
        padding-top: 6rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .star-button-container {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
    .star-icon {
        font-size: 1.25rem;
    }
    .star-count {
        font-size: 0.9rem;
    }
    .navbar {
        top: 1rem;
        padding: 0.5rem 1rem;
        width: calc(100% - 2rem);
    }
    .nav-container {
        gap: 1rem;
    }
    .nav-link span:last-child {
        display: none;
    }
    .nav-link {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .services-shop-section h2 {
        margin-bottom: 2rem;
    }
    .product-box p {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .skill-tags {
        gap: 0.375rem;
    }
    .skill-tag {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    .server-header {
        gap: 0.75rem;
    }
    .staff-grid {
        grid-template-columns: 1fr;
    }
    .server-logo {
        width: 40px;
        height: 40px;
    }
    .github-stats {
        grid-template-columns: 1fr;
    }
    .chi-sono {
        padding: 4rem 1rem;
    }
    .chi-sono h2 {
        font-size: 2rem;
    }
    .shop-products-container {
        grid-template-columns: 1fr;
    }
}
.github-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.github-stat {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.github-stat:hover {
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

.github-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.github-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.github-commits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

