/* ============================================================
   SHALINI ANAND — PORTFOLIO
   style.css — Global styles, layout, animations
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;600;700;900&display=swap');

/* ---------- CSS Reset & Root Variables ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --accent-1: #a855f7;   /* Purple */
  --accent-2: #06b6d4;   /* Cyan */
  --accent-3: #f472b6;   /* Pink */
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --nav-circle-size: 18px;
  --nav-line-color: rgba(255,255,255,0.15);
  --glow-active: #a855f7;
  --font: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section {
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   WAVE BACKGROUND
   ============================================================ */
#wave-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45; /* Higher opacity to make glowing ocean waves visible */
}

/* ============================================================
   LANDING SECTION
   ============================================================ */
#landing {
  display: flex;
  align-items: center;
  justify-content: center; /* Center to bring left and right closer */
  min-height: 100vh;
  padding: 6rem 5vw 4rem 5vw;
  position: relative;
  z-index: 1;
  gap: clamp(3rem, 10vw, 12rem); /* Dynamic gap to reduce space in middle */
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Left Content ---------- */
.landing-left {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px; /* Expanded horizontally */
}

.hero-name-wrapper {
  overflow: visible;
  margin-bottom: 1.2rem;
}

.hero-name {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 200; /* Much thinner letters */
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #ffffff; /* White name text */
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  display: inline-block;
  white-space: nowrap; /* Full name in one row */
}

/* Letter by letter animation wrapper */
.hero-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  filter: blur(4px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-name.revealed span {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero-role {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--accent-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.hero-bio {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #d1d5db; /* Brighter and cleaner text on black */
  line-height: 1.8;
  max-width: 650px; /* Expanded horizontally */
  opacity: 0;
  animation: fadeUp 0.8s ease 1.5s forwards;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Right Content ---------- */
.landing-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem); /* Closer to left column */
  flex-shrink: 0;
}

/* Profile Photo */
.profile-photo-wrapper {
  position: relative;
  width: clamp(180px, 20vw, 270px);
  height: clamp(180px, 20vw, 270px);
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.profile-ring {
  position: absolute;
  inset: -3px; /* Slimmer ring outer bounds */
  border-radius: 50%;
  /* Conic gradient using premium white and grey metallic tones */
  background: conic-gradient(from 0deg, #ffffff 0%, #a3a3a3 25%, #262626 50%, #a3a3a3 75%, #ffffff 100%);
  animation: spinRing 10s linear infinite; /* Slightly slower rotation for a calming effect */
  z-index: 0;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.profile-ring-inner {
  position: absolute;
  inset: 1px; /* Slimmer ring inner bounds */
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}

.profile-photo {
  position: absolute;
  inset: 4px; /* Move photo in to fit the slimmer ring */
  border-radius: 50%;
  object-fit: cover;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  z-index: 2;
  filter: grayscale(10%) brightness(1.05);
  transition: filter 0.4s ease;
}

.profile-photo-wrapper:hover .profile-photo {
  filter: grayscale(0%) brightness(1.1);
}

/* ============================================================
   VERTICAL CIRCLE NAVIGATION (PERSISTENT SIDEBAR)
   ============================================================ */
.circle-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: fixed; /* Always visible on screen */
  right: 4vw;     /* Positioned on the right edge */
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;    /* Keep above all section content */
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
  width: 70px; /* Accommodate zigzag offsets */
}

.circle-nav-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.nav-svg-line-container {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nav-svg-line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 4 4;
  transition: stroke 0.4s ease;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-direction: row-reverse; /* label on the LEFT of the circle */
  cursor: pointer;
  padding: 18px 0;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Zigzag circles offsets */
.nav-item:nth-child(even) {
  transform: translateX(15px);
}
.nav-item:nth-child(odd) {
  transform: translateX(-15px);
}

.nav-circle {
  width: var(--nav-circle-size);
  height: var(--nav-circle-size);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: #000000; /* Solid black fill masks the background SVG line */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.nav-circle::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.nav-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  white-space: nowrap;
  text-align: right;
  z-index: 1;
}

/* Hover state */
.nav-item:hover .nav-circle {
  border-color: var(--accent-2);
  background: rgba(6, 182, 212, 0.15);
  transform: scale(1.2);
}

.nav-item:hover .nav-label {
  color: var(--accent-2);
}

/* Active state */
.nav-item.active .nav-circle {
  border-color: var(--accent-1);
  background: var(--accent-1);
  transform: scale(1.35);
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.7),
    0 0 30px rgba(168, 85, 247, 0.35);
}

.nav-item.active .nav-circle::after {
  border-color: rgba(168, 85, 247, 0.4);
}

.nav-item.active .nav-label {
  color: var(--text-primary);
  font-weight: 700;
}

/* ============================================================
   OTHER SECTIONS (Placeholder for scroll targets)
   ============================================================ */
.section-base {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Bring the content/title above */
  position: relative;
  z-index: 1;
  padding: 9rem 6vw 4rem 6vw; /* Padding top to give spacing from top of section */
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 200; /* Sleek, thin text like the name Shalini Anand */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.section-divider {
  width: 120px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 1px;
  margin: 1rem auto 0 auto;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.section-coming-soon {
  text-align: center;
  margin-top: 4rem;
}

.section-coming-soon p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 3px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  #landing {
    padding: 5rem 4vw 4rem 4vw;
    gap: 1.5rem;
  }

  .landing-right {
    gap: 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  #landing {
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 5vw 4rem 5vw;
    gap: 3rem;
  }

  .landing-left {
    max-width: 100%;
    width: 100%;
  }

  .hero-name {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero-bio {
    max-width: 100%;
  }

  /* On mobile: photo + nav in a row */
  .landing-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .profile-photo-wrapper {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
  }

  /* Circle nav remains vertical and fixed on the right for mobile */
  .circle-nav {
    flex-direction: column;
    align-items: center;
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: auto;
    padding: 10px 0;
    z-index: 100;
  }

  .circle-nav-track {
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
  }

  .nav-item {
    flex-direction: row-reverse;
    gap: 0.6rem;
    padding: 12px 0;
  }

  /* Smaller zigzag offsets on mobile to fit narrow screens */
  .nav-item:nth-child(even) {
    transform: translateX(6px);
  }
  .nav-item:nth-child(odd) {
    transform: translateX(-6px);
  }

  /* Hide nav labels on mobile by default to keep the UI clean */
  .nav-label {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 32px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  }

  /* Show labels as tooltips on hover or when active */
  .nav-item:hover .nav-label,
  .nav-item.active .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  #landing {
    padding: 4.5rem 4vw 3rem 4vw;
  }

  .hero-name {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-role {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .landing-right {
    gap: 1rem;
  }

  .profile-photo-wrapper {
    width: 110px;
    height: 110px;
  }

  .nav-item {
    padding: 0 8px;
  }

  .nav-label {
    font-size: 0.58rem;
  }
}
