/* ============================================================
   NAHID 2026 — Full Design System
   ============================================================ */

/* --- Variables --- */
:root {
    --bg:           #030014;
    --cyan:         #00f2ff;
    --purple:       #7000ff;
    --violet:       #bc13fe;
    --white:        #f8fafc;
    --muted:        #8892a4;
    --glass-bg:     rgba(10, 8, 30, 0.55);
    --glass-border: rgba(255, 255, 255, 0.09);
    --section-pad:  0 7%;
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

/* --- 3D Canvas --- */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}



/* ============================================================
   CURSOR
   ============================================================ */
#cursor {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 0 12px var(--cyan);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

#cursor-blur {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 65%);
    position: fixed;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.glass-nav {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    padding: 0.75rem 2rem;
    background: rgba(8, 6, 22, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }

.nav-links { display: flex; gap: 0.2rem; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    transition: all 0.25s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
    background: rgba(0, 242, 255, 0.07);
}

.cta-btn {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 18px rgba(112, 0, 255, 0.35);
    white-space: nowrap;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(112, 0, 255, 0.5); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
#main-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}
#main-container::-webkit-scrollbar { display: none; }

.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-pad);
    padding-top: 7rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--cyan);
    opacity: 0.8;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.center { text-align: center; }

/* ============================================================
   ACCENT GRADIENT TEXT
   ============================================================ */
.accent {
    background: linear-gradient(90deg, #00f2ff, #7000ff, #bc13fe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-content { position: relative; z-index: 2; max-width: 900px; }

.pre-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
}

.main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 11vw, 9rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 2.2rem;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--muted);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
}
.secondary-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}
.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.25s var(--ease-out);
}
.social-row a:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,242,255,0.08); }

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 7%;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.4;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
    flex-shrink: 0;
}
.mouse::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 7px;
    background: var(--cyan);
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
    0%   { opacity: 0; transform: translateX(-50%) translateY(0); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
    align-items: center;
}

.portrait-container { display: flex; justify-content: center; position: relative; }
.portrait-container::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(112,0,255,0.25), transparent 68%);
    z-index: -1;
    border-radius: 50%;
}

.glass-frame {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    background: var(--glass-bg);
}

#profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}
.glass-frame:hover #profile-img { transform: scale(1.04); }

.text-content { display: flex; flex-direction: column; gap: 0; }
.text-content .section-title { margin-bottom: 1.2rem; }
.text-content > p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2.5rem; }

.key-stats { display: flex; gap: 3rem; }
.key-stats > div { display: flex; flex-direction: column; gap: 0.3rem; }
.key-stats strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}
.key-stats span {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* ============================================================
   PROJECT SECTIONS
   ============================================================ */
.projects-header { margin-bottom: 2rem; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    flex: 1;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #0a0820;
    aspect-ratio: 16 / 10;
    transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.55;
    transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3,0,20,0.95) 0%, rgba(3,0,20,0.4) 50%, transparent 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.project-card p {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.text-link {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.7; }

.project-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-6px);
}
.project-card:hover .project-img { opacity: 0.75; transform: scale(1.06); }

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

.skills-head > p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-top: 0.5rem; }

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.skill-node {
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s var(--ease-out);
}
.skill-node:hover {
    background: rgba(0, 242, 255, 0.04);
    border-color: rgba(0, 242, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.07);
}

.skill-node h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 1.2rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--white);
    transition: all 0.2s;
}
.tags span:hover { border-color: var(--purple); color: var(--cyan); }

/* ============================================================
   MEDIA SECTION (YouTube only)
   ============================================================ */
.media-section-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.media-video-side .video-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.media-video-side iframe { display: block; width: 100%; height: 350px; }

.media-text-side { display: flex; flex-direction: column; gap: 1.5rem; }
.media-text-side h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.media-text-side p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.media-text-side .text-link { font-size: 0.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.glass-footer {
    padding: 1.8rem 7%;
    border-top: 1px solid var(--glass-border);
    background: rgba(8, 6, 22, 0.7);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 5;
}

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

.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-socials a:hover { color: var(--cyan); }

/* ============================================================
   RESPONSIVE — TABLET (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
    :root { --section-pad: 0 5%; }

    .snap-section { padding-top: 7rem; }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portrait-container { justify-content: flex-start; }
    .glass-frame { max-width: 300px; }

    .skills-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .media-section-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .media-video-side iframe { height: 280px; }

    .project-grid { gap: 1rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    body { cursor: auto; }
    #cursor, #cursor-blur { display: none; }

    .glass-nav { padding: 0.7rem 1.2rem; }
    .nav-links { display: none; }

    .snap-section {
        height: auto;
        min-height: 100svh;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .main-title { font-size: clamp(2.8rem, 14vw, 5rem); letter-spacing: -0.02em; }
    .hero-description { font-size: 1rem; }
    .hero-actions { gap: 1rem; }

    .key-stats { gap: 1.5rem; flex-wrap: wrap; }
    .key-stats strong { font-size: 2.2rem; }

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

    .media-video-side iframe { height: 220px; }

    .glass-footer { flex-direction: column; text-align: center; padding: 1.5rem 5%; }
    #achievements .project-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .project-grid { grid-template-columns: 1fr; }
    #achievements .project-grid { grid-template-columns: 1fr !important; }
    .section-title { font-size: 1.8rem; }
    .glitch { letter-spacing: 0.15em; }
}
