@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;700;900&family=Syne:wght@700;800&display=swap');

:root {
  /* New Premium Dark Theme: Deep Slate Navy, Gold & Electric Indigo */
  --bg-primary: #111520;       /* Premium Dark Slate Navy */
  --bg-secondary: #1a1f2c;     /* Steel Navy Gunmetal */
  --bg-card: rgba(26, 31, 44, 0.75);
  
  --accent-gold: #d4af37;        /* Luxury Champagne Gold */
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  --accent-gold-light: #e5c158;
  
  --accent-indigo: #6366f1;      /* Deep Electric Indigo */
  --accent-indigo-glow: rgba(99, 102, 241, 0.2);
  --accent-indigo-light: #818cf8;
  
  --text-cream: #f3f4f6;         /* Off-white */
  --text-cream-muted: #9ca3af;   /* Slate Gray */
  --text-dark: #07080a;
  
  --border-cream: rgba(243, 244, 246, 0.08);
  --border-cream-focus: rgba(243, 244, 246, 0.25);
  
  --font-primary: 'Outfit', sans-serif;
  --font-display: 'Syne', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease-out;
  
  --cursor-color: rgba(243, 244, 246, 0.6);
  --cursor-blend: difference;
}

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

html {
  background-color: var(--bg-primary);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-indigo) var(--bg-primary);
}

body {
  color: var(--text-cream);
  font-family: var(--font-primary);
  overflow-x: hidden;
  width: 100%;
  background-color: transparent;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-indigo);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo-light);
}

body.lenis-scrolling {
  scroll-behavior: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  background: transparent;
  border: none;
  color: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* Cinematic Film Grain Noise Overlay */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.045; /* Subtle cinema reel dust */
  pointer-events: none;
  z-index: 9998;
}

/* Custom Premium Cursor */
.custom-cursor {
  width: 24px;
  height: 24px;
  border: 1px solid var(--text-cream);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: var(--cursor-blend);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  display: none;
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--text-cream);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: var(--cursor-blend);
  display: none;
}

@media (pointer: fine) {
  .custom-cursor, .custom-cursor-dot {
    display: block;
  }
}

.custom-cursor.hovered {
  width: 50px;
  height: 50px;
  background-color: rgba(243, 244, 246, 0.1);
  border-color: var(--accent-indigo-light);
}

.custom-cursor.active {
  width: 15px;
  height: 15px;
  background-color: var(--accent-gold-light);
  border-color: var(--accent-gold-light);
}

/* Background canvas and scanlines */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.2) 50%
  );
  background-size: 100% 4px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.1;
}

/* Sticky Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-cream);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 15px 5%;
  background: rgba(17, 21, 32, 0.9);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--accent-indigo);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-item {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-cream-muted);
  padding: 5px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-indigo);
  transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-cream);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.nav-cta {
  background-color: transparent;
  color: var(--text-cream);
  border: 1px solid var(--text-cream);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-indigo);
  z-index: -1;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  border-color: var(--accent-indigo);
  color: var(--text-cream);
}

.nav-cta:hover::before {
  left: 0;
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-cream);
  cursor: pointer;
  z-index: 1010;
}

/* Grid & Layout System */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 5% 80px;
  width: 100%;
}

.grid {
  display: grid;
  gap: 30px;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.glow-text-indigo {
  text-shadow: 0 0 15px var(--accent-indigo-glow);
}

.glow-text-gold {
  text-shadow: 0 0 15px var(--accent-gold-glow);
}

/* Premium Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 1px solid var(--accent-indigo);
  background-color: transparent;
  color: var(--text-cream);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-indigo);
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-premium:hover {
  border-color: var(--accent-indigo-light);
  box-shadow: 0 0 20px var(--accent-indigo-glow);
}

.btn-premium:hover::before {
  left: 0;
}

.btn-premium.secondary {
  border-color: var(--accent-gold);
}

.btn-premium.secondary::before {
  background-color: var(--accent-gold);
}

.btn-premium.secondary:hover {
  border-color: var(--accent-gold-light);
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

/* Section Header components */
.section-header {
  margin-bottom: 60px;
  position: relative;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-cream);
  margin-bottom: 20px;
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-cream-muted);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.6;
}

/* Enhanced 3D Scroll Rotation Classes */
.scroll-rotate-section {
  transform-style: preserve-3d;
  perspective: 1200px;
  will-change: transform, opacity;
}

/* --- HOME PAGE NEW ADDITIONAL SECTIONS --- */

/* 1. Philosophy Section */
.philosophy-section {
  background: linear-gradient(to bottom, rgba(26, 31, 44, 0.25), rgba(26, 31, 44, 0.45));
  padding: 150px 5%;
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.philosophy-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.philosophy-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.philosophy-statement span {
  color: var(--accent-gold-light);
  font-weight: 800;
}

.philosophy-details p {
  color: var(--text-cream-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 30px;
}

/* 2. live Stats Impact Panel */
.stats-section {
  background: transparent;
  padding: 120px 5%;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cream);
  padding: 50px 30px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent-indigo-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--accent-indigo-glow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--text-cream);
  margin-bottom: 10px;
  font-weight: 800;
  display: block;
}

.stat-card.gold-glow-hover:hover {
  border-color: var(--accent-gold-light);
  box-shadow: 0 10px 30px var(--accent-gold-glow);
}

.stat-card.gold-glow-hover:hover .stat-number {
  color: var(--accent-gold-light);
}

.stat-card.indigo-glow-hover:hover .stat-number {
  color: var(--accent-indigo-light);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-cream-muted);
  letter-spacing: 2px;
}

/* 3. Portfolio Teaser Highlights */
.portfolio-teaser-section {
  background: linear-gradient(to bottom, rgba(26, 31, 44, 0.45), rgba(26, 31, 44, 0.25));
  padding: 120px 5%;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
}

.teaser-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 60px auto 0;
}

.teaser-card {
  border: 1px solid var(--border-cream);
  background-color: var(--bg-primary);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.teaser-card:hover {
  border-color: var(--accent-indigo-light);
  transform: translateY(-8px);
}

.teaser-img-box {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.teaser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: saturate(0.6) brightness(0.9);
}

.teaser-card:hover .teaser-img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1.0);
}

.teaser-info {
  padding: 30px;
}

.teaser-info span {
  font-size: 0.75rem;
  color: var(--accent-gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.teaser-info h3 {
  font-size: 1.5rem;
  color: var(--text-cream);
}

/* 4. Timeline Process Section */
.timeline-section {
  background: transparent;
  padding: 120px 5%;
  position: relative;
  z-index: 2;
}

.timeline-container {
  max-width: 900px;
  margin: 60px auto 0;
  position: relative;
  padding-left: 50px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-gold), transparent);
}

.timeline-step {
  position: relative;
  margin-bottom: 80px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -35px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--accent-indigo);
  z-index: 2;
}

.timeline-step:nth-child(even)::before {
  border-color: var(--accent-gold-light);
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-indigo-light);
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.timeline-step:nth-child(even) .step-number {
  color: var(--accent-gold-light);
}

.step-title {
  font-size: 1.75rem;
  color: var(--text-cream);
  margin-bottom: 15px;
}

.step-desc {
  color: var(--text-cream-muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 700px;
}

/* 5. Testimonial Carousel Section */
.testimonials-section {
  background: linear-gradient(to bottom, rgba(26, 31, 44, 0.3), rgba(26, 31, 44, 0.5));
  padding: 120px 5%;
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  position: relative;
  z-index: 2;
}

.carousel-viewport {
  max-width: 900px;
  margin: 50px auto 0;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.carousel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.carousel-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.carousel-quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-cream);
  margin-bottom: 30px;
}

.carousel-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--accent-indigo);
  object-fit: cover;
}

.carousel-author-info h4 {
  font-size: 1.05rem;
  color: var(--text-cream);
}

.carousel-author-info p {
  font-size: 0.8rem;
  color: var(--accent-gold-light);
}

/* Navigation buttons for Carousel */
.carousel-nav-btns {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: var(--text-cream);
  box-shadow: 0 0 15px var(--accent-indigo-glow);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-cream);
  background-color: rgba(17, 21, 32, 0.95);
  padding: 80px 5% 40px;
  position: relative;
  z-index: 100;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.footer-brand h3 span {
  color: var(--accent-indigo);
}

.footer-brand p {
  color: var(--text-cream-muted);
  line-height: 1.6;
  max-width: 320px;
  font-weight: 300;
  margin-bottom: 30px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent-indigo);
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--accent-indigo-glow);
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 25px;
  color: var(--text-cream);
  letter-spacing: 1px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-col a {
  color: var(--text-cream-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text-cream);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(243, 244, 246, 0.04);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-cream-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a:hover {
  color: var(--text-cream);
}

.reveal-wrapper {
  overflow: hidden;
  position: relative;
}

.reveal-item {
  transform: translateY(105%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.visible {
  transform: translateY(0);
}

/* Breakpoints Responsivity updates */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .philosophy-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .teaser-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 5%;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(17, 21, 32, 0.98);
    border-left: 1px solid var(--border-cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 1005;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Video Background Fallback CSS Gradient Animation */
.video-background.fallback-active {
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 65%),
              var(--bg-primary);
  animation: gradientShift 15s ease infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}
