/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #e8e8ed;
    --text-secondary: #9898a6;
    --text-muted: #6a6a7a;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-glow: rgba(108, 99, 255, 0.3);
    --gradient-1: linear-gradient(135deg, #6c63ff 0%, #e04ec6 100%);
    --gradient-2: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(108, 99, 255, 0.3);
    --nav-height: 72px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

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

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

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

/* ========================================
   Particle Canvas
   ======================================== */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ========================================
   Mouse-following glow
   ======================================== */
.hero-mouse-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(108, 99, 255, 0.15) 0%,
        rgba(224, 78, 198, 0.06) 40%,
        rgba(108, 99, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s;
    will-change: left, top;
}

.hero-mouse-glow.visible {
    opacity: 1;
}

/* ========================================
   Film Grain Overlay
   ======================================== */
.film-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -3%); }
    20% { transform: translate(3%, 1%); }
    30% { transform: translate(-1%, 4%); }
    40% { transform: translate(4%, -2%); }
    50% { transform: translate(-3%, 2%); }
    60% { transform: translate(2%, -4%); }
    70% { transform: translate(-4%, 1%); }
    80% { transform: translate(1%, 3%); }
    90% { transform: translate(3%, -1%); }
    100% { transform: translate(-2%, 4%); }
}

/* ========================================
   Ambient Background Orbs (below hero)
   ======================================== */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #6c63ff;
    top: -10%;
    left: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #e04ec6;
    top: 40%;
    right: -15%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #00d4ff;
    bottom: -5%;
    left: 30%;
    animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 80px) scale(1.1); }
    66% { transform: translate(-50px, 150px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-120px, -60px) scale(1.15); }
    66% { transform: translate(60px, -120px) scale(0.85); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -100px) scale(1.05); }
    66% { transform: translate(-100px, -50px) scale(0.95); }
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-color);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    position: absolute;
    left: 0;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    will-change: transform;
}

/* Staggered entrance animation */
.hero-anim {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: heroEnter 1s var(--ease-out) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.3s; }
.hero-anim:nth-child(2) { animation-delay: 0.5s; }
.hero-anim:nth-child(3) { animation-delay: 0.7s; }
.hero-anim:nth-child(4) { animation-delay: 0.9s; }
.hero-anim:nth-child(5) { animation-delay: 1.1s; }
.hero-anim:nth-child(6) { animation-delay: 1.3s; }

@keyframes heroEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-light), #00d4ff, var(--accent-light));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: greetShift 4s ease-in-out infinite;
}

@keyframes greetShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-name {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.0;
    margin-bottom: 24px;
    position: relative;
    filter: drop-shadow(0 0 40px rgba(108, 99, 255, 0.2));
}

.hero-name-line {
    display: block;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #e0deff 20%,
        #b8b3ff 40%,
        #ffffff 60%,
        #d4d0ff 80%,
        #6c63ff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameShimmer 8s ease-in-out infinite;
}

.hero-name-line:nth-child(2) {
    animation-delay: -3s;
}

.hero-name-dot {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes nameShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes dotPulse {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(108, 99, 255, 0)); }
    50% { filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.8)); }
}

.hero-title-wrapper {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 28px;
    min-height: 2.2em;
}

.hero-title-static {
    color: var(--text-secondary);
}

.hero-title-typed {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow:
        0 0 20px rgba(108, 99, 255, 0.4),
        0 0 60px rgba(108, 99, 255, 0.15);
}

.typed-cursor {
    font-weight: 300;
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-summary {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 48px rgba(108, 99, 255, 0.45);
}

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

.btn-outline:hover {
    background: rgba(108, 99, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.15);
}

.hero-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-spring);
    position: relative;
}

.hero-socials a::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
    filter: blur(8px);
}

.hero-socials a:hover {
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-4px) scale(1.1);
}

.hero-socials a:hover::before {
    opacity: 0.5;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s 2.5s both;
}

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

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

.wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: -1px;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    background: var(--gradient-1);
    z-index: 1;
    opacity: 0.6;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.02); }
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.02rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, transform 0.3s;
}

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

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 2;
    transition: background 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.timeline-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.company {
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-top: 4px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 16px;
}

.timeline-location i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.timeline-details li {
    position: relative;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 10px;
    line-height: 1.7;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.timeline-details em {
    color: var(--accent-light);
    font-style: italic;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent-light);
    border-radius: 20px;
    border: 1px solid rgba(108, 99, 255, 0.15);
    transition: background 0.3s, border-color 0.3s;
}

.tech-tags span:hover {
    background: rgba(108, 99, 255, 0.16);
    border-color: rgba(108, 99, 255, 0.3);
}

/* ========================================
   Skills Section
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.skill-category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    font-size: 0.85rem;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: default;
}

.skill-tags span:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ========================================
   Education Section
   ======================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.education-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.education-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 auto 20px;
}

.education-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.education-school {
    display: block;
    color: var(--accent-light);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.education-meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 500px;
    margin: -40px auto 48px;
    font-size: 1.05rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 720px;
    margin: 0 auto 40px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    word-break: break-word;
}

.contact-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.contact-socials a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-spring);
}

.contact-socials a:hover {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

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

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal.visible.delay-1 { transition-delay: 0.1s; }
.reveal.visible.delay-2 { transition-delay: 0.2s; }
.reveal.visible.delay-3 { transition-delay: 0.3s; }
.reveal.visible.delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: rgba(18, 18, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat { padding: 16px 8px; }

    .stat-number { font-size: 1.8rem; }

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

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

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

    .timeline::before { left: 0; }
    .timeline-item { padding-left: 32px; }
    .timeline-marker { left: -6px; }

    .timeline-header {
        flex-direction: column;
        gap: 4px;
    }

    .section { padding: 80px 0; }
    .section-title { margin-bottom: 48px; }
}

@media (max-width: 480px) {
    .hero-name {
        letter-spacing: -1px;
    }

    .hero-cta { flex-direction: column; align-items: center; }

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

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

    .timeline-content { padding: 20px; }
}
