/* ============================================
   Shashi Bhushan 'Samad' — One-page Website
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors — Light sophisticated palette with warm accents */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  
  --accent-gold: #c9a962;
  --accent-gold-dim: rgba(201, 169, 98, 0.15);
  --accent-terracotta: #b86b4c;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  
  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Quattrocento', serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.devnagari {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 500;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #d4b46d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn-outline svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.btn-outline:hover {
  background: var(--accent-gold-dim);
}

.btn-outline:hover svg {
  transform: translate(3px, -3px);
}

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
  isolation: isolate; /* Creates a new stacking context */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('shashi-compressed.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 169, 98, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(184, 107, 76, 0.15), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  text-align: left;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 2;
  margin-left: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.hero-name .accent {
  color: var(--accent-gold);
  font-style: italic;
}

.hero-roles {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-start;
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.service-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .service-card-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card-wide {
    grid-column: 2 / 4;
  }
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold-dim);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-gold);
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.service-card em {
  color: var(--text-primary);
  font-style: italic;
}

/* ============================================
   WORKS SECTION
   ============================================ */
.works {
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.work-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.work-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--bg-secondary);
}

.work-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.work-info {
  padding: var(--space-md);
}

.work-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.work-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.work-link {
  font-size: 0.875rem;
  color: var(--accent-gold);
  transition: color var(--transition-fast);
}

.work-link:hover {
  color: #d4b46d;
}

.works-more {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ============================================
   INTERVIEW SECTION (FULL SCREEN)
   ============================================ */
.interview {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  position: relative;
}

.interview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.interview-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.interview-video {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #f5f5f5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.interview-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   PRESS SECTION
   ============================================ */
.press {
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
  position: relative;
}

.press::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.press-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.press-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.press-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: -0.02em;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.press-logo-img {
  height: 80px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--transition-base);
}

.press-card:hover .press-logo-img {
  transform: scale(1.05);
}

.press-logo-img[src*="lallantop"] {
  height: 160px;
  max-width: 720px;
}

.press-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.press-card:hover .press-desc {
  color: var(--text-primary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

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

.about-text {
  margin-top: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about-text .lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}

.about-text strong {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.contact-info {
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.contact-email {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.contact-email a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-email a:hover {
  color: #d4b46d;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.contact-note {
  margin-bottom: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-lg) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.footer-made-by {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  text-align: center;
}

.footer-made-by .heart {
  color: var(--accent-terracotta);
}

.footer-made-by a {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-made-by a:hover {
  color: #d4b46d;
  border-color: rgba(201, 169, 98, 0.5);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-contact {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

/* ============================================
   CURSOR INVERSION ORB (DESKTOP ONLY)
   ============================================ */
.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: invert(1);
  -webkit-backdrop-filter: invert(1);
  mix-blend-mode: normal;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

/* So images and video thumbnails are not inverted by the orb */
img,
video,
iframe {
  position: relative;
  z-index: 9500;
}

/* Soft edge for the effect */
.cursor-orb {
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

@media (pointer: coarse) {
  .cursor-orb {
    display: none;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop-only circular contact layout to sit inside orb */
@media (min-width: 768px) {
  .contact-info {
    max-width: 320px;
    gap: var(--space-sm);
  }

  .contact-email,
  .contact-note {
    font-size: 0.95rem;
    background: var(--bg-secondary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .contact-email a {
    font-weight: 500;
  }

  .btn-circle-desktop {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xs);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  }

  .btn-circle-desktop .icon {
    width: 28px;
    height: 28px;
  }
}

/* --- Utility: Fade-in on scroll (optional JS enhancement) --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

