/* ========================================
   CSS Variables & Design Tokens
   ======================================== */

/* ── DARK (default) ── */
:root,
[data-theme="dark"] {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #14b8a6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);

    /* Backgrounds */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.6);
    --bg-card-hover: rgba(26, 26, 46, 0.8);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c5;
    --text-muted: #7a7a8c;

    /* Borders & Glow */
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --nav-bg: rgba(15, 15, 30, 0.95);
    --section-tag-bg: rgba(99, 102, 241, 0.15);
    --section-tag-color: #818cf8;
    --divider: rgba(255, 255, 255, 0.1);
}

/* ── SAKURA (pink) ── */
[data-theme="sakura"] {
    --primary-color: #e91e8c;
    --primary-dark: #c2185b;
    --primary-light: #f48fb1;
    --secondary-color: #ff6b9d;
    --accent-color: #ff8fab;

    --gradient-primary: linear-gradient(135deg, #f953c6 0%, #b91d73 100%);
    --gradient-secondary: linear-gradient(135deg, #fda7df 0%, #e91e8c 100%);
    --gradient-accent: linear-gradient(135deg, #ffb3c6 0%, #ff758c 100%);
    --gradient-dark: linear-gradient(135deg, #2d1020 0%, #3d1530 100%);

    --bg-primary: #1a0a14;
    --bg-secondary: #2d1020;
    --bg-tertiary: #3d1530;
    --bg-card: rgba(45, 16, 32, 0.65);
    --bg-card-hover: rgba(45, 16, 32, 0.85);

    --text-primary: #fff0f5;
    --text-secondary: #f4a3c0;
    --text-muted: #c97fa0;

    --border-color: rgba(249, 83, 198, 0.15);
    --shadow-glow: 0 0 40px rgba(233, 30, 140, 0.35);
    --nav-bg: rgba(26, 10, 20, 0.95);
    --section-tag-bg: rgba(233, 30, 140, 0.15);
    --section-tag-color: #f48fb1;
    --divider: rgba(249, 83, 198, 0.15);
}

/* ── EARTH (cokelat) ── */
[data-theme="earth"] {
    --primary-color: #a0522d;
    --primary-dark: #7a3d1e;
    --primary-light: #cd853f;
    --secondary-color: #d2691e;
    --accent-color: #8fbc8f;

    --gradient-primary: linear-gradient(135deg, #c8813a 0%, #7a3d1e 100%);
    --gradient-secondary: linear-gradient(135deg, #d2a679 0%, #a0522d 100%);
    --gradient-accent: linear-gradient(135deg, #8fbc8f 0%, #5a8a5a 100%);
    --gradient-dark: linear-gradient(135deg, #1c1208 0%, #2c1e0f 100%);

    --bg-primary: #1c1208;
    --bg-secondary: #2c1e0f;
    --bg-tertiary: #3a2810;
    --bg-card: rgba(44, 30, 15, 0.65);
    --bg-card-hover: rgba(44, 30, 15, 0.85);

    --text-primary: #fdf6ec;
    --text-secondary: #d4b896;
    --text-muted: #9e7a55;

    --border-color: rgba(200, 129, 58, 0.15);
    --shadow-glow: 0 0 40px rgba(160, 82, 45, 0.35);
    --nav-bg: rgba(28, 18, 8, 0.95);
    --section-tag-bg: rgba(160, 82, 45, 0.15);
    --section-tag-color: #cd853f;
    --divider: rgba(200, 129, 58, 0.15);
}

/* ── LIGHT (terang) ── */
[data-theme="light"] {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #0d9488;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);

    --bg-primary: #f8f9ff;
    --bg-secondary: #eef0fb;
    --bg-tertiary: #e8eaf6;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;

    --border-color: rgba(79, 70, 229, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
    --nav-bg: rgba(248, 249, 255, 0.95);
    --section-tag-bg: rgba(79, 70, 229, 0.1);
    --section-tag-color: #4f46e5;
    --divider: rgba(79, 70, 229, 0.12);
}

/* ── Shared Spacing, Typography, Borders, etc. ── */
:root {
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Borders */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Light theme shadow overrides (lighter shadows) */
[data-theme="light"] {
    --shadow-sm: 0 2px 8px rgba(79, 70, 229, 0.08);
    --shadow-md: 0 4px 16px rgba(79, 70, 229, 0.12);
    --shadow-lg: 0 8px 32px rgba(79, 70, 229, 0.16);
    --shadow-xl: 0 16px 48px rgba(79, 70, 229, 0.2);
}

/* Light theme — boost visual richness */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f0f0ff 0%, #fce4ff 50%, #e8f5ff 100%);
}

[data-theme="light"] .navbar {
    box-shadow: 0 1px 20px rgba(79, 70, 229, 0.12);
}

[data-theme="light"] .about-card,
[data-theme="light"] .info-item,
[data-theme="light"] .cert-card,
[data-theme="light"] .project-card,
[data-theme="light"] .exp-card,
[data-theme="light"] .contact-item {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .about-card:hover,
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .project-card:hover {
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.2);
}

[data-theme="light"] .card-icon {
    color: #fff;
}

[data-theme="light"] .section-subtitle {
    color: var(--text-secondary);
}

/* Sakura theme — hero tinted */
[data-theme="sakura"] .hero {
    background: linear-gradient(135deg, #220a18 0%, #2d1020 50%, #1a0a14 100%);
}

/* Earth theme — hero tinted */
[data-theme="earth"] .hero {
    background: linear-gradient(135deg, #1c1208 0%, #2c1e0f 50%, #3a2810 100%);
}



/* ── Smooth theme transition ── */
*,
*::before,
*::after {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease, box-shadow 0.4s ease;
}

/* ========================================
   Theme Switcher Widget
   ======================================== */
.theme-switcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.theme-toggle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(20deg);
}

.theme-toggle-btn.open {
    transform: rotate(45deg);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-options.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 10px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.theme-option:hover {
    transform: translateX(-4px) scale(1.04);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.theme-option.active-theme {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.theme-option .theme-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

/* Per-theme button colors */
.theme-option[data-theme-pick="dark"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.theme-option[data-theme-pick="sakura"] {
    background: linear-gradient(135deg, #f953c6, #b91d73);
}

.theme-option[data-theme-pick="earth"] {
    background: linear-gradient(135deg, #c8813a, #7a3d1e);
}

.theme-option[data-theme-pick="light"] {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: #fff;
}

.theme-option[data-theme-pick="dark"] .theme-dot {
    background: #0f0f1e;
}

.theme-option[data-theme-pick="sakura"] .theme-dot {
    background: #ff6b9d;
}

.theme-option[data-theme-pick="earth"] .theme-dot {
    background: #cd853f;
}

.theme-option[data-theme-pick="light"] .theme-dot {
    background: #f8f9ff;
    border-color: rgba(79, 70, 229, 0.4);
}



/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--divider);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: var(--nav-bg);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.nav-brand {
    font-size: var(--font-size-2xl);
    font-weight: 800;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    position: relative;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--spacing-xs) 0;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--border-radius-full);
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 20s infinite ease-in-out;
}

/* Light theme: orbs more visible */
[data-theme="light"] .gradient-orb {
    opacity: 0.55;
    filter: blur(60px);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -250px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-secondary);
    bottom: -200px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.greeting {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    color: var(--primary-light);
    margin-bottom: var(--spacing-lg);
    min-height: 40px;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--divider);
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.image-wrapper img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--section-tag-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    color: var(--section-tag-color);
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    gap: var(--spacing-3xl);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.about-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
}

.about-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.card-detail {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

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

.about-text p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.info-item i {
    font-size: var(--font-size-xl);
    color: var(--primary-light);
}

/* ========================================
   Experience Section (Timeline)
   ======================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--spacing-3xl);
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-base);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.timeline-header h3 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.timeline-header h4 {
    font-size: var(--font-size-base);
    color: var(--primary-light);
    font-weight: 500;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.timeline-list {
    margin-bottom: var(--spacing-md);
}

.timeline-list li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    color: var(--primary-light);
    transition: var(--transition-base);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--text-primary);
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    background: var(--bg-secondary);
    position: relative;
    padding: var(--spacing-2xl) 0;
}

.projects-slider-container {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-xl);
}

.projects-grid-wrapper {
    overflow: hidden;
    padding: 20px 0;
    /* Space for hover transform */
    margin: 0 -15px;
    /* Offset card padding */
}

.projects-grid {
    display: flex;
    gap: var(--spacing-xl);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0 15px;
}

.project-card {
    flex: 0 0 380px;
    /* Fixed width for slider cards */
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 300px;
    }
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Slider Controls */
.projects-controls {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: var(--spacing-md);
    z-index: 10;
}

.slider-control {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.slider-control:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.slider-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination Dots */
.projects-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-xl);
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
}

.pagination-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--gradient-dark);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: var(--spacing-md);
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    transition: var(--transition-base);
}

.project-link:hover {
    transform: scale(1.2);
}

.project-content {
    padding: var(--spacing-xl);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.project-header h3 {
    font-size: var(--font-size-xl);
    line-height: 1.3;
}

.project-year {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
}

.view-project-btn:hover {
    gap: 12px;
    color: var(--text-primary);
}

/* Project Slider Helper */
.project-slider {
    position: relative;
    overflow: hidden;
    height: 350px !important;
    /* Increased height for better visibility */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0a0a14;
    /* Darker background to make contain look better */
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    /* Changed to contain to show full image */
    opacity: 0;
    transition: opacity 1s ease-in-out !important;
}

.slider-img.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    /* Ensure it's above the project-overlay links */
    padding: 10px;
    /* Larger hit area for the container */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* ========================================
   Skills Section
   ======================================== */
.skills-content {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: var(--spacing-3xl);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.category-title i {
    color: var(--primary-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
    text-align: center;
}

.skill-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
}

.skill-item span {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-secondary);
}

/* Certifications */
.certifications {
    margin-bottom: var(--spacing-3xl);
}

.cert-list {
    display: grid;
    gap: var(--spacing-md);
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
}

.cert-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.cert-item i {
    font-size: var(--font-size-2xl);
    color: var(--primary-light);
    margin-top: 4px;
}

.cert-item span {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Soft Skills */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.soft-skill {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
}

.soft-skill:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.soft-skill i {
    font-size: var(--font-size-2xl);
    color: var(--primary-light);
}

.soft-skill span {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   Certificates Section
   ======================================== */
.certificates-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-sm);
}

/* Filter Tabs - hidden now (replaced by slider) */
.cert-filter-tabs {
    display: none;
}

/* Cert Slider Container (mirrors .projects-slider-container) */
.cert-slider-container {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.cert-slider-wrapper {
    overflow: hidden;
    padding: 20px 0;
    margin: 0 -15px;
}

.cert-slider-track {
    display: flex;
    gap: var(--spacing-xl);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0 15px;
}

/* Cert Pagination (reuses same style as projects-pagination) */
.cert-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-xl);
}

/* Certificates Grid - kept for legacy, now unused */
.certificates-grid {
    display: none;
}

/* Certificate Card — fixed width for slider */
.cert-card {
    flex: 0 0 340px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--bg-card-hover);
}

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

/* Card is hidden when filtered out */
.cert-card.hidden {
    display: none;
}

/* Cert Card Header */
.cert-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Badge Icons */
.cert-badge {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}

.cert-badge-aws {
    background: linear-gradient(135deg, #FF9900, #FF6B00);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.4);
}

.cert-badge-ai {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.cert-badge-dicoding {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.cert-badge-microsoft {
    background: linear-gradient(135deg, #00BCF2, #00B4AB);
    box-shadow: 0 4px 16px rgba(0, 188, 242, 0.4);
}

.cert-badge-azure {
    background: linear-gradient(135deg, #0078D4, #005BA1);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.4);
}

.cert-badge-js {
    background: linear-gradient(135deg, #F7DF1E, #E5C200);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(247, 223, 30, 0.4);
}

.cert-badge-node {
    background: linear-gradient(135deg, #339933, #1e6f1e);
    box-shadow: 0 4px 16px rgba(51, 153, 51, 0.4);
}

.cert-badge-network {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
}

/* Year Badge */
.cert-year-badge {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Card Body */
.cert-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cert-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.cert-issuer {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--primary-light);
    font-weight: 500;
}

.cert-issuer i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.cert-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.cert-tag {
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card Footer */
.cert-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--spacing-md);
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.cert-status.verified {
    color: #10b981;
}

.cert-status.verified i {
    font-size: 1rem;
}

/* Cert Stats */
.cert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl) var(--spacing-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cert-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.cert-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.cert-stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.cert-stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .cert-card {
        flex: 0 0 280px;
    }

    .cert-stats {
        padding: var(--spacing-xl);
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.contact-info>p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
}

.contact-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.contact-text p,
.contact-text a {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-text a:hover {
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    transition: var(--transition-base);
}

.social-btn:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
}

.contact-form {
    display: grid;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.footer-brand h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
        transition: var(--transition-base);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 1px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}