:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #f2f2f2;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent: #888888;
  --accent-hover: #bbbbbb;
  --border: #333333;
  --shadow: rgba(0,0,0,0.8);
  --code-bg: #111111;
  --js-color: #f7df1e;
  --html-color: #e34f26;
  --css-color: #1572b6;
  --cpp-color: #00599c;
  --code-text: #f5f5f5;
  --gradient-1: linear-gradient(135deg, #8a8a8a 0%, #575757 100%);
  --gradient-2: linear-gradient(135deg, #999999 0%, #666666 100%);
  --gradient-3: linear-gradient(135deg, #b0b0b0 0%, #777777 100%);
  --gradient-4: linear-gradient(135deg, #c8c8c8 0%, #888888 100%);
  --gradient-vibe: linear-gradient(90deg, #333333, #666666, #444444, #222222);
}
            --space-xs: 0.5rem;
            --space-sm: 1rem;
            --space-md: 1.5rem;
            --space-lg: 2rem;
            --space-xl: 3rem;
            --space-xxl: 5rem;

            --text-xs: 0.75rem;
            --text-sm: 0.875rem;
            --text-base: 1rem;
            --text-lg: 1.125rem;
            --text-xl: 1.25rem;
            --text-2xl: 1.5rem;
            --text-3xl: 1.875rem;
            --text-4xl: 2.25rem;
            --text-5xl: 3rem;
            --text-6xl: 3.75rem;
        }

        [data-theme="dark"] {
            --bg-primary: #0a0a0a;
            --bg-secondary: #1a1a1a;
            --bg-tertiary: #2a2a2a;
            --text-primary: #f5f5f5;
            --text-secondary: #d0d0d0;
            --text-muted: #a0a0a0;
            --accent: #f5f5f5;
            --accent-hover: #ffffff;
            --border: #404040;
            --shadow: rgba(255, 255, 255, 0.05);
            --code-bg: #f5f5f5;
            --code-text: #0a0a0a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        *:focus {
            outline: none;
        }

        button:focus {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

/* Loader */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-spinner {
    width: 3.125rem;
    height: 3.125rem;
    border: 0.25rem solid var(--bg-tertiary);
    border-top: 0.25rem solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */

nav {
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px var(--shadow);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 8px;
    font-size: var(--text-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-2xl);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

/* Layout */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xxl) 0;
}

/* Hero */

#home {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.05;
    animation: float 15s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: clamp(40px, 10vw, 80px);
    height: clamp(40px, 10vw, 80px);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: var(--gradient-1);
}

.shape:nth-child(2) {
    width: clamp(60px, 15vw, 120px);
    height: clamp(60px, 15vw, 120px);
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    background: var(--gradient-2);
}

.shape:nth-child(3) {
    width: clamp(30px, 8vw, 60px);
    height: clamp(30px, 8vw, 60px);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    background: var(--gradient-3);
}

.shape:nth-child(4) {
    width: clamp(50px, 12vw, 100px);
    height: clamp(50px, 12vw, 100px);
    bottom: 10%;
    right: 20%;
    animation-delay: 6s;
    background: var(--gradient-4);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.typewriter {
    font-size: clamp(1.125rem, 4vw, 2rem);
    color: var(--text-secondary);
    min-height: 3rem;
    margin: var(--space-md) 0;
    font-weight: 500;
}

.typewriter-text {
    border-right: 3px solid var(--accent);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent); }
    51%, 100% { border-color: transparent; }
}

.hero-bio {
    font-size: clamp(var(--text-base), 3vw, 1.15rem);
    color: var(--text-muted);
    margin: var(--space-lg) auto;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    background: var(--gradient-1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-base);
    margin-top: var(--space-md);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    min-height: 50px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

/* Sections */

#about {
    background-color: var(--bg-secondary);
}

        .section-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(1.5rem, 6vw, 3rem);
            font-weight: 700;
            text-align: center;
            margin-bottom: var(--space-xl);
            letter-spacing: -0.02em;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-1);
            border-radius: 2px;
        }

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: clamp(var(--text-base), 2.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.about-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Languages */

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background-color: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.language-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.language-item:hover::before {
    opacity: 0.1;
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.language-icon {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: var(--space-sm);
    z-index: 1;
    transition: transform 0.3s ease;
}

.language-item:hover .language-icon {
    transform: scale(1.2);
}

.language-name {
    font-weight: 600;
    color: var(--text-primary);
    z-index: 1;
    font-size: var(--text-sm);
}

.js-icon { color: var(--js-color); }
.html-icon { color: var(--html-color); }
.css-icon { color: var(--css-color); }
.cpp-icon { color: var(--cpp-color); }

/* Timeline */

        #timeline {
            background-color: var(--bg-primary);
            padding: var(--space-xxl) 0;
        }

        .timeline-container {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }

        .timeline-container::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--gradient-1);
            left: 50%;
            transform: translateX(-50%);
            z-index: 0;
        }

        .timeline-item {
            position: relative;
            width: 50%;
            display: flex;
            justify-content: flex-end;
            padding-right: 40px;
            margin-bottom: var(--space-xl);
        }

        .timeline-item:nth-child(even) {
            left: 50%;
            justify-content: flex-start;
            padding-right: 0;
            padding-left: 40px;
        }

        .timeline-content {
            background-color: var(--bg-secondary);
            padding: var(--space-lg);
            border-radius: 12px;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 330px;
        }

        .timeline-content::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-1);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 0;
        }

        .timeline-content:hover::before {
            opacity: 0.05;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px var(--shadow);
        }

        .timeline-dot {
            position: absolute;
            width: 20px;
            height: 20px;
            background-color: var(--accent);
            border: 4px solid var(--bg-primary);
            border-radius: 50%;
            top: 25px;
            z-index: 2;
        }

        .timeline-item .timeline-dot {
            right: -10px;
        }

        .timeline-item:nth-child(even) .timeline-dot {
            left: -10px;
        }

        .timeline-date {
            font-size: var(--text-sm);
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: var(--space-xs);
        }

        .timeline-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: var(--text-lg);
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-sm);
        }

        .timeline-description {
            color: var(--text-secondary);
            font-size: var(--text-base);
            line-height: 1.6;
        }

        /* Responsif untuk timeline */
        @media (max-width: 767px) {
            .timeline-container::before {
                left: 20px;
            }

            .timeline-item,
            .timeline-item:nth-child(even) {
                width: 100%;
                left: 0;
                padding-right: 0;
                padding-left: 60px;
                justify-content: flex-start;
            }

            .timeline-item .timeline-dot,
            .timeline-item:nth-child(even) .timeline-dot {
                left: 10px;
                right: auto;
            }

            .timeline-content {
                max-width: 100%;
            }
        }

        @media (max-width: 480px) {
            .timeline-item,
            .timeline-item:nth-child(even) {
                padding-left: 50px;
            }

            .timeline-dot {
                width: 16px;
                height: 16px;
                border-width: 3px;
            }
        }
/* Fun Facts */

#funfacts {
    background-color: var(--bg-secondary);
    padding: var(--space-xxl) 0;
}

.funfacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.funfact-item {
    background-color: var(--bg-primary);
    padding: var(--space-lg);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.funfact-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.funfact-item:hover::before {
    opacity: 0.05;
}

.funfact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.funfact-icon {
    font-size: var(--text-3xl);
    color: var(--accent);
    margin-bottom: var(--space-sm);
    z-index: 1;
}

.funfact-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    z-index: 1;
}

/* Vibe */

#vibe {
    background-color: var(--bg-primary);
    padding: var(--space-xxl) 0;
    text-align: center;
}

.vibe-meter {
    background-color: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.vibe-meter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-vibe);
    opacity: 0.05;
    z-index: 0;
}

.vibe-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    z-index: 1;
}

.vibe-bar-container {
    height: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.vibe-bar {
    height: 100%;
    background: var(--gradient-vibe);
    width: 50%;
    transition: width 0.5s ease, background 0.5s ease;
    border-radius: 10px;
}

.vibe-emoji {
    font-size: var(--text-4xl);
    margin-top: var(--space-md);
    z-index: 1;
}

.vibe-controls {
    margin-top: var(--space-lg);
}

.vibe-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    background: var(--gradient-1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-base);
    margin: 0 var(--space-sm);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.vibe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Skills */

#skills {
    background-color: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.skill-item {
    background-color: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-item:hover::before {
    opacity: 0.05;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.skill-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percentage {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-secondary);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects */

#projects {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.project-card {
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 40px var(--shadow);
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-image {
    height: 200px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}


.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: clamp(2rem, 8vw, 3rem);
    position: relative;
    z-index: 1;
}

.project-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tech-tag {
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: var(--text-xs);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: var(--space-sm);
}

.project-link {
    flex: 1;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.project-link.primary {
    background: var(--gradient-1);
    color: #fff;
    border: none;
}

.project-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-link.secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--border);
}

.project-link.secondary:hover {
    border-color: var(--accent);
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

.project-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-vibe);
    background-size: 400%;
    border-radius: inherit;
    z-index: -1;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
    animation: holographic-glow-animation 20s linear infinite;
}

.project-card:hover::after {
    opacity: 0.3;
}

@keyframes holographic-glow-animation {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Contact */

#contact {
    background-color: var(--bg-primary);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(3rem, 10vw, 3.125rem);
    height: clamp(3rem, 10vw, 3.125rem);
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: var(--text-xl);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-5px);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Footer */

footer {
    background-color: var(--bg-secondary);
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Back to top */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: clamp(3rem, 10vw, 3.125rem);
    height: clamp(3rem, 10vw, 3.125rem);
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Particles + background */

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: particle-float 20s infinite linear;
    pointer-events: none;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-1);
    pointer-events: none;
    z-index: 9997;
    opacity: 0.5;
    transform: translate(-50%, -50%);
}

/* Reveal animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive background */

.interactive-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.5);
    transform: scale(0);
    animation: ripple-animation 1s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.explosion-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: explosion-animation 1s forwards;
}

@keyframes explosion-animation {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

.magnetic-field {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0) 70%);
    transform: scale(0);
    animation: magnetic-field-animation 2s ease-out;
}

@keyframes magnetic-field-animation {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.wave-distortion {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, rgba(79, 172, 254, 0) 70%);
    transform: scale(0);
    animation: wave-distortion-animation 1.5s ease-out;
}

@keyframes wave-distortion-animation {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Magnetic hover */

.magnetic {
    transition: transform 0.3s ease;
}

.magnetic:hover {
    transform: translate(var(--mx), var(--my));
}

/* Responsive */

@media (min-width: 1200px) {
    :root {
        --space-xxl: 6rem;
    }
}

@media (max-width: 1199px) {
    :root {
        --space-sm: 0.875rem;
        --space-md: 1.25rem;
        --space-lg: 1.75rem;
        --space-xl: 2.5rem;
        --space-xxl: 4rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .timeline-container::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 30px !important;
        width: calc(100% - 80px);
        padding-left: 60px;
    }

    .timeline-dot {
        left: 0 !important;
        right: auto !important;
    }
}

@media (max-width: 767px) {
    :root {
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-xxl: 3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-lg) 0;
        gap: 0;
        transition: left 0.3s ease;
        border-right: 1px solid var(--border);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a::after {
        display: none;
    }

    section {
        padding: var(--space-xxl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .back-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .project-links {
        flex-direction: column;
    }

    .hero-content {
        padding: 0 var(--space-sm);
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 20px !important;
        width: calc(100% - 60px);
        padding-left: 50px;
    }

    .timeline-dot {
        left: 0 !important;
        right: auto !important;
    }

    .funfacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xs: 0.25rem;
        --space-sm: 0.5rem;
        --space-md: 0.75rem;
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-xxl: 2.5rem;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 150px;
    }

    .skill-item {
        padding: var(--space-md);
    }

    .language-item {
        min-height: 100px;
    }

    .social-links {
        gap: var(--space-md);
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .typewriter {
        font-size: 1rem;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        transition: none !important;
    }

    .cursor,
    .cursor-follower,
    .cursor-trail {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    .project-card {
        transform: none !important;
    }

    .project-card::after {
        display: none;
    }
}