/* =============================================
   IMPORT FONT
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,300&display=swap');

/* =============================================
   DARK MODE (default)
============================================= */
:root {
    --bg: #0f172a;
    --bg-section: #0d1526;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --sky: #38bdf8;
    --indigo: #818cf8;
    --purple: #c084fc;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --dark-muted: #475569;
    --gradient: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    --gradient-h: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    --shadow-glow: 0 0 60px rgba(129, 140, 248, 0.15);
    --orb-opacity: 0.25;
    --nav-bg: rgba(15, 23, 42, 0.85);
    --mobile-menu-bg: rgba(15, 23, 42, 0.97);
    --scroll-border: var(--dark-muted);
    --toggle-bg: rgba(255, 255, 255, 0.08);
    --toggle-border: rgba(255, 255, 255, 0.15);
}

/* =============================================
   LIGHT MODE
============================================= */
[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-section: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.09);
    --text: #0f172a;
    --muted: #475569;
    --dark-muted: #94a3b8;
    --shadow-glow: 0 0 60px rgba(129, 140, 248, 0.2);
    --orb-opacity: 0.12;
    --nav-bg: rgba(241, 245, 249, 0.85);
    --mobile-menu-bg: rgba(241, 245, 249, 0.97);
    --scroll-border: #94a3b8;
    --toggle-bg: rgba(0, 0, 0, 0.05);
    --toggle-border: rgba(0, 0, 0, 0.12);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 3px; }

/* =============================================
   NAV
============================================= */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 2rem;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--gradient-h);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    border-radius: 50px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.theme-toggle:hover {
    border-color: var(--indigo);
    color: var(--text);
}

.theme-toggle svg {
    transition: transform 0.5s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--gradient-h);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =============================================
   HERO
============================================= */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--orb-opacity);
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #38bdf8, transparent); top: -10%; left: -15%; animation-delay: 0s; }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, #818cf8, transparent); top: 20%; right: -20%; animation-delay: -3s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #c084fc, transparent); bottom: -10%; left: 30%; animation-delay: -6s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--sky);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 1s ease both;
}

.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--sky);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.05;
    background: var(--gradient-h);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite, fadeSlideUp 1s ease 0.2s both;
    letter-spacing: -2px;
}

.hero-title {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 300;
    color: var(--muted);
    margin-top: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeSlideUp 1s ease 0.4s both;
}

.hero-title span { color: var(--indigo); font-weight: 600; }

.hero-description {
    max-width: 600px;
    margin: 1.5rem auto 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 300;
    animation: fadeSlideUp 1s ease 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeSlideUp 1s ease 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 30px rgba(129, 140, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(129, 140, 248, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--indigo);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0; right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeSlideUp 1s ease 1.2s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--dark-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--scroll-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse::before {
    content: '';
    width: 3px; height: 8px;
    background: var(--indigo);
    border-radius: 2px;
    animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* =============================================
   SECTIONS COMMUNES
============================================= */
section { padding: 7rem 2rem; position: relative; }

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

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-title .gradient-text {
    background: var(--gradient-h);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
}

.section-line {
    width: 60px; height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    margin-bottom: 3.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   ABOUT
============================================= */
#about {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-section) 50%, var(--bg) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: center;
}

.about-avatar-wrapper { position: relative; }

.about-avatar {
    width: 100%;
    aspect-ratio: 1;
    max-width: 380px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(192,132,252,0.1));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 23px;
    display: block;
}

.about-avatar::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: var(--gradient);
    z-index: -1;
    opacity: 0.5;
}

.avatar-deco {
    position: absolute;
    width: 100px; height: 100px;
    border: 2px solid rgba(129, 140, 248, 0.3);
    border-radius: 50%;
    bottom: -20px; right: -20px;
    animation: spin 15s linear infinite;
}

.avatar-deco-2 {
    position: absolute;
    width: 60px; height: 60px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 50%;
    top: -15px; left: -15px;
    animation: spin 10s linear infinite reverse;
}

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

.about-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sky);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.highlight { color: var(--text); font-weight: 500; }
.highlight-blue { color: var(--sky); font-weight: 500; }
.highlight-indigo { color: var(--indigo); font-weight: 500; }

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.soft-skill-tag {
    padding: 0.35rem 0.9rem;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--purple);
    font-weight: 500;
}

.about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-h);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* =============================================
   EXPERIENCE
============================================= */
#experience { position: relative; }

#experience::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
}

.timeline-dot {
    grid-column: 2;
    display: flex;
    justify-content: center;
    padding-top: 1.8rem;
    position: relative;
    z-index: 2;
}

.timeline-dot-inner {
    width: 14px; height: 14px;
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

.exp-period {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--indigo);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.exp-role {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.exp-company {
    font-size: 0.95rem;
    color: var(--sky);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-description {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
}

.exp-description ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-description ul li {
    padding-left: 1.2rem;
    position: relative;
}

.exp-description ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--indigo);
    font-size: 0.8rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.exp-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 50px;
    color: var(--indigo);
    font-weight: 500;
}

.badge-lead {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(192,132,252,0.15));
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: 50px;
    color: var(--sky);
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.highlight-box {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    background: rgba(56, 189, 248, 0.05);
    border-left: 3px solid var(--sky);
    border-radius: 0 10px 10px 0;
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
}

.highlight-box strong { color: var(--sky); font-style: normal; }

/* =============================================
   SKILLS
============================================= */
#skills {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-section) 50%, var(--bg) 100%);
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(129, 140, 248, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.skill-cat-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

.skill-cat-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-bar-item { margin-bottom: 1.2rem; }

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.skill-bar-name { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.skill-bar-pct { font-size: 0.8rem; color: var(--dark-muted); font-weight: 500; }

.skill-bar-track {
    height: 5px;
    background: rgba(129, 140, 248, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
    color: var(--text);
    transform: translateY(-2px);
}

.elephant-green {
    display: inline-block;
    filter: sepia(1) saturate(4) hue-rotate(90deg);
}

/* =============================================
   EDUCATION
============================================= */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 20px 20px 0 0;
}

.edu-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.edu-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

.edu-degree { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.edu-school { font-size: 0.95rem; color: var(--sky); font-weight: 500; margin-bottom: 0.5rem; }

.edu-period {
    font-size: 0.82rem;
    color: var(--dark-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.edu-desc {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
}

/* =============================================
   CONTACT
============================================= */
#contact {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-section) 100%);
    text-align: center;
}

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

.contact-text {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.9;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.8rem 2.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 130px;
}

.contact-card .icon { font-size: 1.8rem; }

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(129, 140, 248, 0.4);
    color: var(--text);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* =============================================
   FOOTER
============================================= */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--dark-muted);
    font-size: 0.85rem;
    background: var(--bg);
}

footer span {
    background: var(--gradient-h);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
    font-weight: 600;
}

/* =============================================
   KEYFRAMES
============================================= */
@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

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

.parallax-layer { will-change: transform; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-avatar-wrapper { display: flex; justify-content: center; }
    .about-avatar { max-width: 250px; }
    #experience::before { display: none; }
    .timeline-item { grid-template-columns: 20px 1fr; }
    .timeline-item:nth-child(even) .timeline-content { grid-column: 2; }
    .timeline-item:nth-child(even) .timeline-empty { display: none; }
    .timeline-dot { grid-column: 1; }
    .timeline-empty { display: none; }
    .timeline-content { grid-column: 2; }
}

@media (max-width: 768px) {
    section { padding: 5rem 1.5rem; }
    .nav-links { display: none; }
    .burger { display: flex; }
    .theme-toggle span { display: none; }
    .hero-name { letter-spacing: -1px; }
    .about-stats { gap: 1.5rem; justify-content: center; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-links { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; max-width: 300px; flex-direction: row; }
}

@media (max-width: 480px) {
    nav { padding: 1rem 1.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .about-stats { flex-direction: column; align-items: center; }
    .timeline-item { grid-template-columns: 1fr; }
    .timeline-dot { display: none; }
    .timeline-content { grid-column: 1 !important; }
}
