@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700&display=swap');

:root {
  --bg-primary: #0B0F19;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.08);
  --color-accent-green: #10B981;
  --color-accent-orange: #F59E0B;
  --color-accent-blue: #3B82F6;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --border-radius-pill: 30px;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Typographic Scale */
.text-hero {
  font-size: clamp(3rem, 10vw, 5.5rem);
}

.text-h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.text-h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dark-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background-color: var(--color-accent-blue);
  color: #FFFFFF;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--bg-surface);
  box-shadow: none;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.logo img {
  height: 65px;
  width: 65px;
  aspect-ratio: 1/1;
  display: block;
  clip-path: circle(48%);
  object-fit: cover;
  background: transparent;
  will-change: transform;
}

.footer-logo {
  height: 180px;
  width: 180px;
  aspect-ratio: 1/1;
  clip-path: circle(48%);
  object-fit: cover;
  margin-bottom: 1.5rem;
  will-change: transform;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}



/* Hero Section */
.hero {
  position: relative;
  height: 800vh;
  /* Sticky scroll length */
  background-color: #000;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#ambient-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110vw;
  height: 110vh;
  object-fit: cover;
  filter: blur(40px) saturate(1.2);
  z-index: 1;
}

#main-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  pointer-events: none;
  /* Let clicks pass through to canvas if needed */
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.eyebrow {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: var(--color-accent-blue);
}

/* Services Grid & Carousel */
.services-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-blue) var(--bg-surface);
}

.services-carousel::-webkit-scrollbar {
  height: 8px;
}

.services-carousel::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

.services-carousel::-webkit-scrollbar-thumb {
  background-color: var(--color-accent-blue);
  border-radius: 4px;
}

.services-carousel .service-card {
  min-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent-orange);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

/* Cinematic Banner */
.cinematic-banner {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-primary));
  color: var(--text-primary);
  padding: 0 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Blog Preview */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-accent-green);
  color: #000;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-blue);
  transition: color 0.3s ease;
}

.card-link:hover {
  color: var(--color-accent-orange);
}

/* Testimonials */
.testimonials-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-green) transparent;
}

.testimonial-card {
  min-width: 400px;
  scroll-snap-align: start;
  flex-shrink: 0;
  background-color: var(--bg-surface);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.client-info h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.client-info span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Grid & Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.map-container {
  margin-top: 2rem;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) grayscale(0.8);
  transition: filter 0.3s ease;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item strong {
  color: var(--color-accent-orange);
}

.contact-form {
  background-color: var(--bg-surface);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  section {
    padding: 5rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Team Modal */
.team-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: 3rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: inherit;
}

.modal-bio {
  margin-top: 1.5rem;
  line-height: 1.8;
}