/* ========================================= */
/* --- NEOPIX CSS FRAMEWORK & UTILITIES ---- */
/* ========================================= */

:root {
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --section-gap: clamp(32px, 6vw, 96px);
}

/* 1. Global Safety & Resets */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

*, *::before, *::after {
  box-sizing: border-box;
  overflow-wrap: break-word;
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. Neopix Framework Utilities */
.neopix-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { margin-block: var(--section-gap); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-md); }
.w-full { width: 100%; }
.max-w-container { max-width: 1200px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ========================================= */
/* --- ORIGINAL DESKTOP CSS ---------------- */
/* ========================================= */

/* --- BASE STYLES --- */
:root {
    --bg-color: #050505; /* Deep, rich black */
    --text-main: #f4f4f5;
    --text-muted: #888888;
    --accent: #d4af37; /* Architectural Gold */
    --neopix-cyan: #40e0d0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font { font-family: 'Cinzel', serif; font-weight: 400; }

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--bg-color); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 9999;
}

.niraakar-shape {
    width: 150px; height: 150px;
    background: linear-gradient(45deg, #1a1a1a, #333);
    box-shadow: 0 0 30px rgba(255,255,255,0.05);
    animation: morph 4s ease-in-out infinite;
    margin-bottom: 2rem;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.splash-text { font-size: 2rem; letter-spacing: 0.5rem; }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 2.5rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference; opacity: 0; /* GSAP reveals this */
}

.logo-fallback { font-size: 1.5rem; letter-spacing: 3px; }

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    color: var(--text-main); text-decoration: none; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px; font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; position: relative;
    text-align: center; overflow: hidden;
}

/* --- THE NEW GIANT 'N' (SVG PATH TRACING) --- */
.ghost-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.svg-n { width: 100%; height: 100%; }

.svg-text-base {
    font-family: 'Cinzel', serif;
    font-size: 55vw;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.02); /* The dark, faint base outline */
    stroke-width: 2px;
}

.svg-text-glow {
    font-family: 'Cinzel', serif;
    font-size: 55vw;
    fill: transparent;
    stroke: #0055ff; /* The Electric Core */
    stroke-width: 4px;
    
    /* This creates the 'comet' length and the gap */
    stroke-dasharray: 400 3000; 
    stroke-linecap: round;
    
    /* The Glow Effect */
    filter: drop-shadow(0 0 20px rgba(0, 225, 255, 0.8)) drop-shadow(0 0 40px rgba(0, 85, 255, 0.6));
    
    /* The infinite tracing loop */
    animation: traceLoop 8s linear infinite;
}

@keyframes traceLoop {
    0% { stroke-dashoffset: 3400; }
    100% { stroke-dashoffset: 0; }
}

/* --- HERO TEXT REVEALS --- */
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.overflow-hidden { overflow: hidden; padding: 10px 0; }

.hero-title { 
    font-size: clamp(4rem, 10vw, 8rem); 
    letter-spacing: 0.1em; 
    text-shadow: 0 10px 40px rgba(0,0,0,0.9);
    display: flex; /* Needed for JS letter splitting */
}
.hero-title span { display: inline-block; } /* Applied by JS */

.hero-subtitle { font-family: 'Cinzel', serif; font-size: 1.5rem; font-style: italic; color: var(--accent); }
.hero-author { font-size: 0.8rem; letter-spacing: 0.5rem; color: var(--text-muted); margin-top: 1rem; }

.scroll-indicator { position: absolute; bottom: 40px; left: 4rem; display: flex; flex-direction: column; gap: 10px; z-index: 2; opacity: 0; }
.scroll-text { font-size: 0.6rem; letter-spacing: 2px; color: var(--text-muted); }
.scroll-line { width: 1px; height: 50px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden;}
.scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: var(--text-main); animation: scrollDrop 2s infinite ease-in-out; }
@keyframes scrollDrop { 0% { top: -50%; } 100% { top: 100%; } }

/* --- ABOUT SECTION --- */
.about-section { padding: 10rem 10%; background: #080808; border-top: 1px solid rgba(255,255,255,0.02); }
.about-headline { font-family: 'Inter', sans-serif; font-size: 4vw; line-height: 1.1; margin-bottom: 5rem; font-weight: 400; }
.italic-accent { font-style: italic; color: var(--accent); font-family: 'Cinzel', serif;}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.about-bio p { font-size: 1.2rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 2rem; max-width: 90%; }
.tools-container { display: flex; gap: 1rem; flex-wrap: wrap; }
.tool-pill { padding: 0.4rem 1rem; border: 1px solid; border-radius: 50px; font-size: 0.8rem; font-weight: 600; background: rgba(0,0,0,0.3); }

.about-experience { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,0.1); }
.exp-title { font-size: 0.75rem; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 2rem; }
.exp-list { list-style: none; margin-bottom: 1.5rem; }
.exp-list li { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-main); transition: color 0.3s; cursor: default; }
.exp-list li:hover { color: var(--accent); }
.exp-role { font-size: 0.9rem; color: var(--text-muted); }

/* --- PORTFOLIO --- */
.portfolio-preview { padding: 10rem 10%; }
.section-header { font-size: 2.5rem; letter-spacing: 2px; margin-bottom: 4rem; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.asset-slot { position: relative; width: 100%; height: 60vh; background-color: #111; overflow: hidden; border-radius: 4px; }
.asset-slot::after { content: "ASSET SLOT"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #333; font-family: monospace; }
.asset-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); position: relative; z-index: 2; }
.asset-slot:hover img { transform: scale(1.05); }
.grid .asset-slot:nth-child(even) { transform: translateY(10rem); }

/* --- CTA SECTION --- */
.cta-section { height: 60vh; display: flex; justify-content: center; align-items: center; background: #030303; }
.huge-cta { font-size: 12vw; letter-spacing: 1vw; color: var(--text-main); cursor: pointer; transition: color 0.4s ease; }
.huge-cta:hover { color: var(--accent); }

/* --- FOOTER --- */
footer { display: flex; justify-content: space-between; align-items: flex-end; padding: 4rem; background-color: #000; border-top: 1px solid #1a1a1a; }
.footer-left h4 { font-family: 'Inter', sans-serif; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.footer-left p { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; }
.footer-center { display: flex; gap: 2rem; }
.footer-center a { color: var(--text-muted); text-decoration: none; font-size: 0.75rem; letter-spacing: 2px; transition: color 0.3s; }
.footer-center a:hover { color: var(--text-main); }
.footer-right { text-align: right; }
.copyright { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 1rem; letter-spacing: 1px; }
.credit-line { font-family: 'Inter', monospace; font-size: 0.75rem; color: #6b6b6b; letter-spacing: 2px; font-weight: 600; display: flex; align-items: center; gap: 8px; justify-content: flex-end;}
.credit-line .heart { color: #8b2b3d; font-size: 0.9rem; }
.credit-line a.neopix-link { color: var(--neopix-cyan); text-decoration: none; font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: 3px; transition: text-shadow 0.3s ease; }
.credit-line a.neopix-link:hover { text-shadow: 0 0 15px rgba(64, 224, 208, 0.6); }

/* Responsive adjustments */
@media(max-width: 768px) {
    .about-grid, .grid { grid-template-columns: 1fr; }
    .grid .asset-slot:nth-child(even) { transform: translateY(0); }
    footer { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .footer-right { text-align: left; }
    .credit-line { justify-content: flex-start; }
}

/* ========================================= */
/* --- RESPONSIVE OVERRIDES ---------------- */
/* ========================================= */

/* 3. Legacy CSS Converted to Fluid Rules */
  .about-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
  }

  .about-bio p {
    max-width: 70ch; /* Readability Cap */
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
  }

  .footer-left p {
    max-width: 70ch; /* Readability Cap */
  }

/* 4. Tablet Layout Shifts & Modifiers */
@media screen and (max-width: 1024px) {
  .md\:flex { display: flex; }
  .md\:flex-col { flex-direction: column; }
  .md\:grid { display: grid; }

}

/* 5. Mobile Layout Shifts & Modifiers */
@media screen and (max-width: 768px) {
  .sm\:flex-col { flex-direction: column; }
  .sm\:hidden { display: none; }

}
