:root[data-theme="dark"] {
  --primary: #ffffff;
  --secondary: #808080;
  --background: #000000;
  --surface: rgba(23, 23, 23, 0.8);
  --surface-solid: #111111;
  --accent: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --image-filter: grayscale(0.22) contrast(1.08) brightness(0.62);
  --overlay-a: rgba(0, 0, 0, 0.82);
  --overlay-b: rgba(0, 0, 0, 0.18);
}

:root[data-theme="light"] {
  --primary: #000000;
  --secondary: #505050;
  --background: #ffffff;
  --surface: rgba(245, 245, 245, 0.8);
  --surface-solid: #f5f5f5;
  --accent: #000000;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --image-filter: grayscale(0.28) contrast(1.04) brightness(0.88);
  --overlay-a: rgba(255, 255, 255, 0.72);
  --overlay-b: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--primary);
  background: var(--background);
  font-family:
    -apple-system, BlinkMacSystemFont, "Gotham SSm", Arial, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
}

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

.theme-toggle {
  flex: 0 0 48px;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  position: absolute;
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  transition:
    stroke 0.3s ease,
    opacity 0.3s ease;
}

.theme-toggle .sun-icon {
  opacity: 0;
}

.theme-toggle .moon-icon {
  opacity: 1;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.welcome-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.welcome-text {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.welcome-text.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.main-content {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.main-content.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  color: var(--primary);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-flag {
  display: block;
  width: 36px;
  height: 24px;
  flex: 0 0 36px;
}

.nav-links {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  opacity: 0.84;
}

.nav-links a:hover {
  opacity: 1;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle span {
  position: absolute;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.site-header.nav-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

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

.site-header.nav-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--primary);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("public/hero-abhikalpit-bharat.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  filter: var(--image-filter);
  opacity: 0.52;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}

.hero-overlay {
  background:
    linear-gradient(180deg, var(--overlay-a) 0%, var(--overlay-b) 52%, var(--background) 100%),
    linear-gradient(90deg, var(--background) 0%, transparent 55%, var(--overlay-b) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  width: min(900px, calc(100% - 36px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 112px 18px 80px;
}

.eyebrow,
.section-kicker,
.project-index {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.eyebrow {
  color: var(--secondary);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 860px;
  margin: 1.5rem 0 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 510px;
  margin: 1.5rem 0 0;
  color: var(--secondary);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
}

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

.button {
  position: relative;
  display: inline-flex;
  min-height: 60px;
  width: min(250px, 100%);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 0;
  padding: 1rem 1.5rem;
  color: var(--accent);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.button::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.button:hover {
  color: var(--background);
}

.button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-right: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  transform: translateX(-50%) rotate(45deg);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 7px;
  }
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.manifesto {
  color: var(--primary);
  background: var(--background);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
  text-align: left;
}

h2 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.manifesto-copy {
  display: grid;
  gap: 1.35rem;
  padding-top: 4px;
}

.manifesto-copy p {
  color: var(--secondary);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 300;
  line-height: 1.76;
}

.projects {
  background: var(--background);
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin-bottom: clamp(30px, 5vw, 54px);
  text-align: left;
}

.project-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background: var(--surface);
  backdrop-filter: blur(20px);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.project-list:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  text-align: left;
  transition: background-color 0.3s ease;
}

.project-card:hover {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.project-card:last-child {
  border-bottom: none;
}

.project-card h3 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.55rem);
  line-height: 1;
  font-weight: 500;
}

.project-index {
  color: var(--secondary);
}

.status {
  display: inline-flex;
  min-width: 128px;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 9px 14px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-active {
  color: var(--background);
  background: var(--accent);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--border-color);
  color: var(--secondary);
  background: var(--background);
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header {
    justify-content: space-between;
    gap: 12px;
    padding: 14px 12px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    display: grid;
    width: 100%;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.28s ease,
      opacity 0.2s ease;
  }

  .site-header.nav-open .nav-links {
    max-height: 180px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
  }

  .brand {
    min-width: 0;
    font-size: 0.76rem;
    gap: 0.5rem;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-flag {
    width: 27px;
    height: 18px;
    flex-basis: 27px;
  }

  .theme-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    display: flex;
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .nav-links {
    font-size: 0.78rem;
  }

  .hero-content {
    width: min(100% - 32px, 560px);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, var(--overlay-a) 0%, var(--overlay-b) 48%, var(--background) 100%),
      linear-gradient(90deg, var(--background) 0%, transparent 100%);
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 220px;
  }

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

  .project-card {
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
