/* ==========================================================================
   GAURAV GAIKWAD — MOBILE RESPONSIVE EDITORIAL CSS ENGINE
   Fluid breakpoints: Mobile (<576px), Tablet (576px - 991px), Desktop (>992px)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  --bg-background: #FAFAF8;
  --bg-surface-low: #F4F4F2;
  --bg-surface-container: #EEEEEC;
  --bg-surface-lowest: #FFFFFF;
  --text-primary: #1A1C1B;
  --text-variant: #44474C;
  --color-secondary: #C8A45D;
  --color-primary: #0F1C2C;
  --border-outline: rgba(116, 119, 125, 0.2);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-poetry: 'EB Garamond', 'Cormorant Garamond', serif;
}

[data-theme="dark"] {
  --bg-background: #101828;
  --bg-surface-low: #182238;
  --bg-surface-container: #1D2A44;
  --bg-surface-lowest: #182238;
  --text-primary: #FAFAF8;
  --text-variant: #9E9EA0;
  --border-outline: rgba(255, 255, 255, 0.15);
}

body {
  background-color: var(--bg-background);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  width: 100%;
}

/* Typography Hierarchy & Fluid Scaling */
h1, h2, h3, h4, h5, .font-display {
  font-family: var(--font-display);
}

.display-1 { font-size: clamp(2.4rem, 6.5vw, 5.5rem); }
.display-2 { font-size: clamp(2rem, 5.5vw, 4.5rem); }
.display-3 { font-size: clamp(1.8rem, 4.5vw, 3.8rem); }
.display-4 { font-size: clamp(1.6rem, 3.8vw, 3.2rem); }
.display-5 { font-size: clamp(1.4rem, 3vw, 2.5rem); }

.font-poetry {
  font-family: var(--font-poetry);
}

.font-sans {
  font-family: var(--font-body);
}

.font-label-caps {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
}

/* Form Inputs Mobile Fix */
input[type="text"],
input[type="email"],
select,
textarea {
  font-size: 16px !important;
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-secondary);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease;
}

/* Floating Glass Navbar Header */
.glass-header {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 1280px;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-outline);
  padding: 0.4rem 1.25rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .glass-header {
  background: rgba(16, 24, 40, 0.88);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-text {
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav-link-item {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-variant);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.35rem 0.65rem;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* Light Editorial Hero Section with Visible Watermark */
.hero-light-section {
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-background);
  color: var(--text-primary);
  text-align: left;
  overflow: hidden;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Visible Light Monochrome Watermark Layer */
.hero-watermark-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(250, 250, 248, 0.2), rgba(250, 250, 248, 0.95)),
                    url('../Gaurav.jpg');
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.22; /* Visibly distinct light watermark */
  filter: grayscale(100%) contrast(110%);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .hero-watermark-bg {
  background-image: linear-gradient(to right, rgba(16, 24, 40, 0.2), rgba(16, 24, 40, 0.95)),
                    url('../Gaurav.jpg');
  opacity: 0.15;
}

.hero-content-container {
  position: relative;
  z-index: 10;
}

.hero-quote-border {
  border-left: 2px solid var(--color-secondary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* Domain Cards */
.domain-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 12px;
  height: auto;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  overflow: hidden;
}

.domain-card-tech { background-color: #0F1C2C; color: #FFFFFF; }
.domain-card-poetry { background-color: #EEEEEC; color: #1A1C1B; }
.domain-card-culture { background-color: #FFDEA3; color: #261900; }
.domain-card-social { background-color: #80F6E2; color: #00201C; }

/* Ecosystem Grid */
.ecosystem-grid-item {
  background-color: #0F1C2C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: var(--color-secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  border: 2px solid var(--bg-background);
}

/* Poetry Paper */
.poetry-paper {
  background-color: var(--bg-surface-lowest);
  border: 1px solid var(--border-outline);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--bg-surface-lowest);
  border: 1px solid var(--border-outline);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

/* Media Query Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-light-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: auto;
  }

  .hero-watermark-bg {
    width: 100%;
    opacity: 0.15;
  }

  .brand-text {
    font-size: 12px;
  }

  .glass-header {
    top: 0.5rem;
    width: 96%;
    padding: 0.35rem 1rem;
  }

  .domain-card {
    min-height: 280px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .poetry-paper {
    padding: 1.5rem 1.25rem;
  }

  .hero-quote-border {
    padding-left: 1rem;
    margin: 1.25rem 0;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem !important;
    font-size: 11px !important;
    width: 100%;
    text-align: center;
  }

  .brand-text {
    font-size: 11px;
    letter-spacing: 0.05em;
  }
}

/* ==========================================================================
   6. PREMIUM ANIMATION & INTERACTION UTILITIES
   ========================================================================== */

/* Hardware acceleration for GSAP animated elements */
.will-change-transform {
  will-change: transform;
}
.will-change-opacity {
  will-change: opacity;
}
.will-change-all {
  will-change: transform, opacity, filter;
}

/* Smooth Scrolling defaults (managed mostly by Lenis in JS) */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Premium Custom Cursor (Hidden on touch devices by media query)
   -------------------------------------------------------------------------- */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  
  /* Fallback if JS fails, but we want cursor:none on interactive elements too */
  a, button, input, select, textarea, .nav-link-item, .interactive {
    cursor: none !important;
  }

  .premium-cursor-dot,
  .premium-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .premium-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #0F1C2C; /* text-midnight */
  }

  .premium-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 28, 44, 0.3); /* text-midnight at 30% */
    background-color: transparent;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  }

  /* Dark mode cursor adjustments */
  [data-theme="dark"] .premium-cursor-dot {
    background-color: #F8F9FA;
  }
  [data-theme="dark"] .premium-cursor-follower {
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* Disable Custom Cursor and animations for reduced motion / touch */
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  body, a, button, input, select, textarea, .nav-link-item, .interactive {
    cursor: auto !important;
  }
  .premium-cursor-dot,
  .premium-cursor-follower {
    display: none !important;
  }
}
