/* ==========================================
   NIKHIL PARAG V2
========================================== */

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #111;
  --border: #262626;
  --border-hover: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --radius: 16px;
  --max-width: 1200px;
  --content-width: 720px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

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

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

::selection {
  background: rgba(255,255,255,.2);
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* =============================
   FOOTER EXTENSION
   ============================= */

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--muted);
}}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.social-icons {
  display: flex;
  gap: 32px;
}

.social-icons a {
  color: var(--muted);
  transition: color 0.2s ease;
  gap: 24px;
}

.social-icon {
  width: 32px;
  height: 32px;
  filter: none;
  transition: transform 0.2s ease;
}

.social-icons a:hover .social-icon {
  transform: scale(1.15);
  filter: invert(1) opacity(1);
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  color: var(--text);
}

.back-to-top:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ==========================================
   NAVBAR
========================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,.75);
  border-bottom: 1px solid var(--border);
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.logo img {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--muted);
  transition: color .2s ease;
}

nav a:hover {
  color: var(--text);
}

/* ==========================================
   HERO
========================================== */

.hero {
  min-height: 100vh;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}
.hero h1{
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 850px;
  margin: 0 auto 16px;
  letter-spacing: -0.03em;
}

.hero-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 auto 20px;
}

.hero-description {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

/* ==========================================
   BUTTONS
========================================== */

.btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition:
    transform .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

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

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: #f4f4f5;
}

.btn-secondary {
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
}

/* ==========================================
   SECTIONS
========================================== */

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
  padding: 100px 0;
}

.section-label {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .16em;
  margin-bottom: 12px;
}

.section h2 {
  margin: 0 0 28px;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.section p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.75;
}

.content {
  max-width: var(--content-width);
}

/* ==========================================
   STATS
========================================== */

.stats {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 24px;
  padding-bottom: 120px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.stat h3 {
  margin: 0;
  font-size: 3rem;
}

.stat p {
  color: var(--muted);
}

/* ==========================================
   PROJECTS
========================================== */

.project-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 240px;
}

.project:hover {
  border-color: var(--border-hover);
}

.project h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.project h3:not(:first-of-type) {
  margin-top: 28px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 99px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

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

.featured {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.featured h3 {
  font-size: 2rem;
}

/* ==========================================
   TIMELINE
========================================== */

.timeline {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* ==========================================
   CONTACT
========================================== */

.contact {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
  padding: 180px 0;
}

.contact h2 {
  font-size: clamp(3rem,8vw,6rem);
  margin: 0;
}

.contact p {
  max-width: 700px;
  margin: 32px auto;
  color: var(--muted);
}

/* ==========================================
   FOOTER
========================================== */

footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

footer p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================
   ANIMATIONS
========================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    min-height: auto;
  }
}

@media (max-width: 768px) {

  nav {
    display: none;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }

  .contact {
    padding: 120px 0;
  }
}/* ==========================================
   PREMIUM VISUALS
========================================== */

.hero{
    position:relative;
    overflow:hidden;
}

.hero::before{

    content:"";

    position:absolute;

    width:700px;
    height:700px;

    top:-350px;
    left:50%;

    transform:translateX(-50%);

    background:
    radial-gradient(
        circle,
        rgba(255,255,255,.08),
        transparent 70%
    );

    pointer-events:none;

    z-index:-1;
}

.hero::after{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,.015)
    );

    pointer-events:none;
}

/* ==========================================
   CARD HOVER SYSTEM
========================================== */

.stat,
.project,
.timeline-item,
.expertise-grid article{

    transition:
    transform .25s ease,
    border-color .25s ease,
    background-color .25s ease,
    box-shadow .25s ease;

}

.stat:hover,
.project:hover,
.timeline-item:hover,
.expertise-grid article:hover{

    transform:translateY(-6px);

    border-color:var(--border-hover);

    box-shadow:
    0 0 0 1px rgba(255,255,255,.03),
    0 20px 40px rgba(0,0,0,.35);

}

/* ==========================================
   SECTION DIVIDERS
========================================== */

.section{

    position:relative;

}

.section:not(:last-of-type)::after{

    content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:1px;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.08),
        transparent
    );

}

/* ==========================================
   STATS
========================================== */

.stat h3{

    font-variant-numeric:tabular-nums;

    letter-spacing:-0.04em;

}

.stat p{

    margin-bottom:0;
}

/* ==========================================
   PROJECTS
========================================== */

.project{

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

}

.project h3{

    margin-top:8px;

}

.project p{
    margin-top:12px;
}


/* ==========================================
   EXPERTISE
========================================== */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.expertise-grid article{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    min-height:220px;
}

.expertise-grid h3{
    font-size:1.4rem;
    margin-bottom:16px;
}

/* ==========================================
   TIMELINE
========================================== */

.timeline{

    position:relative;

}

.timeline-item{

    position:relative;

}

.timeline-item::before{

    content:"";

    position:absolute;

    left:0;
    top:0;
    bottom:0;

    width:3px;

    background:
    linear-gradient(
        to bottom,
        rgba(255,255,255,.4),
        transparent
    );

    border-radius:999px;

}

/* ==========================================
   ACTIVE NAV STATE
========================================== */

nav a{

    position:relative;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0;

    height:1px;

    background:#fff;

    transition:width .25s ease;

}

nav a:hover::after{

    width:100%;

}

/* ==========================================
   CONTACT
========================================== */

.contact{

    position:relative;

}

.contact::before{

    content:"";

    position:absolute;

    width:600px;
    height:600px;

    left:50%;
    top:50%;

    transform:
    translateX(-50%)
    translateY(-50%);

    background:
    radial-gradient(
        circle,
        rgba(255,255,255,.04),
        transparent 70%
    );

    pointer-events:none;

    z-index:-1;

}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#050505;

}

::-webkit-scrollbar-thumb{

    background:#222;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#333;

}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

    .fade-in{

        opacity:1;

        transform:none;

    }

}

/* ==========================================
   LARGE SCREENS
========================================== */

@media (min-width:1600px){

    .hero{

        max-width:1400px;

    }

    .hero h1{

        font-size:9rem;

    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width:480px){

    .hero-description{

        font-size:.95rem;

    }

    .project,
    .timeline-item,
    .stat{

        padding:24px;

    }

}/* ==========================================
   MOBILE MENU
========================================== */

.menu-toggle{

    display:none;

    width:48px;
    height:48px;

    border:none;

    background:transparent;

    color:var(--text);

    cursor:pointer;

    font-size:1.5rem;

}

.mobile-menu{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.98);

    backdrop-filter:blur(20px);

    z-index:999;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:
    opacity .25s ease,
    visibility .25s ease;

}

.mobile-menu.active{

    opacity:1;

    visibility:visible;

}

.close-menu{

    position:absolute;

    top:24px;
    right:24px;

    width:48px;
    height:48px;

    border:none;

    background:transparent;

    color:var(--text);

    cursor:pointer;

    font-size:2rem;

}

.mobile-nav{

    display:flex;

    flex-direction:column;

    gap:32px;

    text-align:center;

}

.mobile-nav a{

    font-size:2rem;

    font-weight:600;

}

body.menu-open{

    overflow:hidden;

}

@media (max-width:768px){

    .desktop-nav{

        display:none;

    }

    .menu-toggle{

        display:flex;

        align-items:center;

        justify-content:center;

    }

}.logo{

    display:flex;

    align-items:center;

    gap:12px;

}

.logo-content{

    display:flex;

    flex-direction:column;

}

.logo-content span{

    font-size:1rem;

    font-weight:700;

}

.logo-content small{

    color:var(--muted);

    font-size:.75rem;

}

.hero-role{

    color:var(--muted);

    font-size:.95rem;

    margin-bottom:20px;

}

.hero-badges{

    display:flex;

    gap:12px;

    justify-content:center;

    flex-wrap:wrap;

    margin-top:30px;

}

.hero-badges span{

    border:1px solid var(--border);

    padding:8px 14px;

    border-radius:999px;

    font-size:.85rem;

    color:var(--muted);

}