/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --bg:            #050510;
    --bg-2:          #0b0b1e;
    --bg-3:          #111128;
    --purple:        #7c6cf0;
    --purple-light:  #a598f7;
    --cyan:          #00d4ff;
    --pink:          #ff6b9d;
    --green:         #00e5a0;
    --orange:        #ff9f43;
    --text:          #b0bec5;
    --text-bright:   #f0f4f8;
    --text-muted:    #52637a;
    --glass:         rgba(255,255,255,0.03);
    --glass-2:       rgba(255,255,255,0.055);
    --glass-border:  rgba(255,255,255,0.07);
    --radius:        18px;
    --radius-sm:     10px;
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; border: none; background: none; }
::selection { background: rgba(124,108,240,0.35); color: #fff; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--purple);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    will-change: transform;
}

.cursor-outline {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(124,108,240,0.5);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.35s, height 0.35s, border-color 0.35s;
}

.cursor-outline.hover {
    width: 52px;
    height: 52px;
    border-color: var(--cyan);
    background: rgba(0,212,255,0.04);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding var(--transition), background var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    padding: 0.9rem 0;
    background: rgba(5,5,16,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--glass-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -1px;
}

.logo-dot {
    width: 7px;
    height: 7px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse 2.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--purple);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.3px;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--text-bright);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5,5,16,0.97);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-link {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    padding: 0.5rem 0;
    transition: color var(--transition);
}

.mobile-link:hover { color: var(--purple-light); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 7rem 0; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-glow-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124,108,240,0.13) 0%, transparent 65%);
    top: -250px; right: -150px;
}

.hero-glow-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(0,212,255,0.09) 0%, transparent 65%);
    bottom: -150px; left: -100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 90px 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,108,240,0.1);
    border: 1px solid rgba(124,108,240,0.22);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 0.78rem;
    color: var(--purple-light);
    letter-spacing: 0.4px;
    margin-bottom: 2.2rem;
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -3px;
    margin-bottom: 1.6rem;
}

.name-first {
    display: block;
    color: var(--text-bright);
}

.name-last {
    display: block;
    background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    color: var(--text);
    margin-bottom: 1rem;
    min-height: 1.8rem;
}

.typing-text { color: var(--cyan); font-weight: 500; }

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

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.8rem;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4.5rem;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    animation: floatY 3.2s ease-in-out infinite;
}

.scroll-indicator {
    width: 22px; height: 38px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.scroll-dot {
    width: 4px; height: 7px;
    background: var(--purple);
    border-radius: 2px;
    animation: scrollBob 1.6s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.88rem 2rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: none;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, #5244cc 100%);
    color: #fff;
    box-shadow: 0 0 30px rgba(124,108,240,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 55px rgba(124,108,240,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-ghost {
    background: var(--glass);
    border-color: var(--glass-border);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--glass-2);
    border-color: rgba(255,255,255,0.14);
    color: var(--text-bright);
    transform: translateY(-3px);
}

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

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-tag {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.78rem;
    color: var(--purple);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 0.93rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

#about::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(124,108,240,0.04) 0%, transparent 65%);
    pointer-events: none;
}

/* Photo */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-photo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.photo-glow {
    position: absolute;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(124,108,240,0.25) 0%, transparent 65%);
    border-radius: 50%;
    top: 10px;
    pointer-events: none;
    animation: pulse 3s ease-in-out infinite;
}

.photo-frame {
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(124,108,240,0.4);
    padding: 4px;
    background: linear-gradient(135deg, rgba(124,108,240,0.2), rgba(0,212,255,0.1));
    position: relative;
    z-index: 1;
    box-shadow: 0 0 40px rgba(124,108,240,0.2), 0 20px 60px rgba(0,0,0,0.5);
}

.profile-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(124,108,240,0.1);
    border: 1px solid rgba(124,108,240,0.2);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.76rem;
    color: var(--purple-light);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* Bio */
.about-bio .about-lead {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-bright);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.about-bio > p:not(.about-lead) {
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 2rem;
    font-size: 0.93rem;
}

.about-bio strong { color: var(--purple-light); font-weight: 600; }

.about-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item { display: flex; flex-direction: column; }

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

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

.contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-quick-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px 14px;
    transition: all var(--transition);
    text-decoration: none;
}

a.contact-quick-item:hover {
    color: var(--text-bright);
    border-color: rgba(124,108,240,0.3);
    background: rgba(124,108,240,0.08);
}

/* Skills cloud */
.skills-section { margin-top: 1rem; }

.skills-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-pill {
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 100px;
    padding: 6px 16px;
    border: 1px solid;
    transition: all var(--transition);
    cursor: default;
}

.skill-pill--purple { color: var(--purple-light); border-color: rgba(124,108,240,0.3); background: rgba(124,108,240,0.08); }
.skill-pill--cyan   { color: var(--cyan);          border-color: rgba(0,212,255,0.3);   background: rgba(0,212,255,0.06); }
.skill-pill--pink   { color: var(--pink);          border-color: rgba(255,107,157,0.3); background: rgba(255,107,157,0.06); }
.skill-pill--green  { color: var(--green);         border-color: rgba(0,229,160,0.3);   background: rgba(0,229,160,0.06); }
.skill-pill--orange { color: var(--orange);        border-color: rgba(255,159,67,0.3);  background: rgba(255,159,67,0.06); }

.skill-pill:hover { transform: translateY(-2px); filter: brightness(1.2); }

/* ============================================================
   EXPERIENCE / EDUCATION SECTION
   ============================================================ */
#experience {
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

#experience::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(124,108,240,0.15) 20%, rgba(124,108,240,0.15) 80%, transparent);
    pointer-events: none;
}

.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.timeline-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 12px;
    width: 1px;
    height: calc(100% - 12px);
    background: linear-gradient(180deg, rgba(124,108,240,0.4), transparent);
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    width: 15px; height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    border: 2px solid var(--bg-2);
    box-shadow: 0 0 12px currentColor;
}

.timeline-dot--purple { background: var(--purple); color: var(--purple); }
.timeline-dot--cyan   { background: var(--cyan);   color: var(--cyan); }
.timeline-dot--green  { background: var(--green);  color: var(--green); }
.timeline-dot--orange { background: var(--orange); color: var(--orange); }
.timeline-dot--pink   { background: var(--pink);   color: var(--pink); }

.timeline-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    flex: 1;
    transition: all var(--transition);
}

.timeline-card:hover {
    border-color: rgba(124,108,240,0.2);
    background: var(--glass-2);
    transform: translateX(4px);
}

.timeline-card--edu {
    border-left: 2px solid rgba(124,108,240,0.3);
}

.tl-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    font-family: 'Space Grotesk', monospace;
}

.tl-role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.tl-company {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--purple-light);
    margin-bottom: 0.6rem;
}

.tl-desc {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.7;
}

.edu-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: var(--glass);
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.edu-badge--active {
    border-color: rgba(0,229,160,0.35);
    color: var(--green);
    background: rgba(0,229,160,0.08);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects { position: relative; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 2rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s;
    backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Top accent border per color */
.project-card[data-color="purple"] { border-top: 1px solid rgba(124,108,240,0.55); }
.project-card[data-color="green"]  { border-top: 1px solid rgba(0,229,160,0.55); }
.project-card[data-color="cyan"]   { border-top: 1px solid rgba(0,212,255,0.55); }
.project-card[data-color="orange"] { border-top: 1px solid rgba(255,159,67,0.55); }
.project-card[data-color="pink"]   { border-top: 1px solid rgba(255,107,157,0.55); }

.project-card:hover {
    border-color: rgba(255,255,255,0.11);
    box-shadow: 0 35px 70px rgba(0,0,0,0.55), 0 0 80px rgba(124,108,240,0.06);
}

/* Wide card spans 2 cols on large screens */
.project-card--wide {
    grid-column: span 2;
}

/* Shine overlay */
.card-shine {
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.04) 50%,
        transparent 70%
    );
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.project-card:hover .card-shine { left: 150%; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.project-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 500;
}

.project-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-icon {
    transform: scale(1.12) rotate(6deg);
}

.project-icon--purple { background: rgba(124,108,240,0.14); color: var(--purple); border: 1px solid rgba(124,108,240,0.2); }
.project-icon--green  { background: rgba(0,229,160,0.14);   color: var(--green);  border: 1px solid rgba(0,229,160,0.2); }
.project-icon--cyan   { background: rgba(0,212,255,0.14);   color: var(--cyan);   border: 1px solid rgba(0,212,255,0.2); }
.project-icon--orange { background: rgba(255,159,67,0.14);  color: var(--orange); border: 1px solid rgba(255,159,67,0.2); }
.project-icon--pink   { background: rgba(255,107,157,0.14); color: var(--pink);   border: 1px solid rgba(255,107,157,0.2); }

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    margin-bottom: 0.7rem;
}

.project-desc {
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 3px 11px;
    background: var(--glass);
    letter-spacing: 0.4px;
    transition: border-color var(--transition), color var(--transition);
}

.project-card:hover .tag {
    border-color: rgba(255,255,255,0.12);
    color: var(--text);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.55rem 1.1rem;
    background: var(--glass);
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.project-link:hover {
    color: var(--text-bright);
    border-color: var(--purple);
    background: rgba(124,108,240,0.1);
    gap: 11px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

#contact::after {
    content: '';
    position: absolute;
    bottom: 0; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 65%);
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    background: rgba(124,108,240,0.1);
    border: 1px solid rgba(124,108,240,0.2);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    transition: background var(--transition), border-color var(--transition);
}

.contact-item:hover .contact-icon {
    background: rgba(124,108,240,0.18);
    border-color: rgba(124,108,240,0.35);
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.contact-value {
    display: block;
    color: var(--text-bright);
    font-weight: 500;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.social-btn {
    width: 42px; height: 42px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-btn:hover {
    background: rgba(124,108,240,0.12);
    border-color: var(--purple);
    color: var(--text-bright);
    transform: translateY(-4px);
}

.contact-form {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 2.2rem;
    backdrop-filter: blur(12px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-bright);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(124,108,240,0.55);
    background: rgba(124,108,240,0.04);
    box-shadow: 0 0 0 3px rgba(124,108,240,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 2.8rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-name {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.65; transform: scale(1.3); }
}

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

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}

@keyframes scrollBob {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(14px); opacity: 0; }
    81%  { transform: translateY(0); opacity: 0; }
    100% { opacity: 1; }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card--wide { grid-column: span 2; }
    .timeline-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-grid { grid-template-columns: 200px 1fr; gap: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    section { padding: 5rem 0; }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-card--wide { grid-column: span 1; }

    .about-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }

    .about-stats { justify-content: center; gap: 1.5rem; }
    .contact-quick { justify-content: center; }

    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; max-width: 280px; }

    .form-row { grid-template-columns: 1fr; }

    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }

    #experience::before { display: none; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .nav-container { padding: 0 1.2rem; }
    section { padding: 4rem 0; }
    .contact-form { padding: 1.5rem; }
    .photo-frame { width: 180px; height: 180px; }
    .photo-glow { width: 200px; height: 200px; }
}
