:root {
  /* Brand Palette */
  --brand-teal: #1498B7;
  --deep-teal: #0E7A94;
  --teal-light: #D2F0F8;
  --brand-black: #0A0A0A;
  --brand-gray: #82817F;
  --off-white: #FAFAFA;
  --light-gray: #F2F2F4;
  --mid-gray: #5C5C66;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Palatino', 'Palatino Linotype', serif;
  --font-label: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: #000;
  background-image: 
    linear-gradient(rgba(0, 168, 198, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 198, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  background-attachment: fixed;
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100%;
}

/* Cinematic Dark Space Glows */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 168, 198, 0.2) 0%, rgba(0, 168, 198, 0) 70%);
  animation: pulseGlow1 8s infinite alternate ease-in-out;
}

body::after {
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 95, 115, 0.3) 0%, rgba(0, 95, 115, 0) 70%);
  animation: pulseGlow2 7s infinite alternate ease-in-out reverse;
}

@keyframes pulseGlow1 {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes pulseGlow2 {
  0% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

h1, h2, h3, h4, h5, h6, p, a, span, li, label, th, td {
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover, p:hover, a:hover, span:hover, li:hover, label:hover, th:hover, td:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
}

a {
  color: var(--brand-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--teal-light);
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-teal {
  color: var(--brand-teal);
}

.text-gray {
  color: var(--brand-gray);
}

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

.section-padding {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--brand-teal);
  color: var(--brand-black);
}

.btn-primary:hover {
  background-color: var(--teal-light);
  color: var(--brand-black);
  box-shadow: 0 4px 15px rgba(20, 152, 183, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.btn-outline:hover {
  background-color: var(--brand-teal);
  color: var(--brand-black);
}

/* Layout Elements */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.nav-links a {
  color: var(--off-white);
  font-family: var(--font-label);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--brand-teal);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--off-white);
  z-index: 1001; /* Stay above mobile menu */
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--off-white);
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Hamburger animation classes */
.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Footer */
footer {
  background-color: #050505;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* 3D Animations & Professional Touches */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  perspective: 1000px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  perspective: 1000px;
}

.service-card, .tier-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  padding: 3.5rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Subtle inner glow for premium feel */
.service-card::after, .tier-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(20, 152, 183, 0.0);
  transition: box-shadow 0.8s ease;
  pointer-events: none;
}

.service-card:hover, .tier-card:hover {
  transform: translateY(-15px) rotateX(4deg) rotateY(-2deg);
  border-color: var(--brand-teal);
  box-shadow: -15px 25px 50px rgba(10, 10, 10, 0.8), 0 0 30px rgba(14, 122, 148, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(14, 122, 148, 0.05) 100%);
}

  .service-card:hover::after, .tier-card:hover::after {
    box-shadow: inset 0 0 20px rgba(20, 152, 183, 0.1);
  }

  @media (max-width: 900px) {
    .grid-2, .grid-3 {
      gap: 1.5rem;
    }
    
    h1 {
      font-size: 3rem;
    }
    
    .section-padding {
      padding: 4rem 0;
    }
  }

  @media (max-width: 768px) {
    .grid-2, .grid-3 {
      grid-template-columns: 1fr;
    }
    
    h1 {
      font-size: 2.2rem;
    }

    h2 {
      font-size: 1.8rem;
    }

    .hero p {
      font-size: 1rem;
    }

    .hero-content {
      padding: 1.5rem;
    }
    
    .nav-links {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background: rgba(10, 10, 10, 0.98);
      justify-content: center;
      align-items: center;
      gap: 3rem;
      transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
      z-index: 1000;
      backdrop-filter: blur(15px);
    }

    .nav-links.active {
      right: 0;
    }

    .nav-links a {
      font-size: 1.5rem;
    }

    .menu-toggle {
      display: flex;
    }

    .navbar .container {
      justify-content: space-between;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
    }

    .footer-brand {
      margin: 0 auto;
    }

    .logo-track h3 {
      font-size: 1rem;
    }
    
    .btn {
      padding: 10px 24px;
      font-size: 0.75rem;
      margin-bottom: 0.5rem;
    }

    .showreel-teaser {
      padding: 4rem 1rem;
    }

    .play-btn {
      width: 60px;
      height: 60px;
      font-size: 1rem;
    }

    .process-timeline {
      grid-template-columns: 1fr;
    }
    
    .timeline-line {
      display: none !important;
    }
  }

/* Custom Animations & Lightbox */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  width: 90%;
  max-width: 1200px;
  position: relative;
}
.close-lightbox {
  position: absolute;
  top: -40px; right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.close-lightbox:hover {
  color: var(--brand-teal);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

@media (max-width: 768px) {
  .bts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .bts-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Custom WebGL-Style Cursor */
body {
  cursor: none; /* Hide default cursor */
}

a, button, .service-card, .portfolio-item, .play-btn {
  cursor: none; /* Hide default on interactive elements */
}

.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--brand-teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(20, 152, 183, 0.5); /* var(--brand-teal) with opacity */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, transform 0.1s ease-out;
}

/* PLAY Hover State */
.custom-cursor.cursor-play {
  width: 80px;
  height: 80px;
  background-color: var(--brand-teal);
  mix-blend-mode: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-cursor.cursor-play::after {
  content: 'PLAY';
  font-family: var(--font-label);
  color: var(--brand-black);
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.cursor-follower.cursor-play {
  opacity: 0;
}

@media (max-width: 1024px) {
  body, a, button, .service-card, .portfolio-item, .play-btn {
    cursor: auto; /* Restore cursor on touch devices */
  }
  .custom-cursor, .cursor-follower {
    display: none; /* Hide custom cursor on mobile/tablet */
  }
}

/* Boss Level - SVG Liquid Integration */
.portfolio-img {
    filter: url('#liquid-filter');
}

/* Page Headers (Fixing overlap with fixed navbar) */
.page-header {
  padding-top: 150px;
  padding-bottom: 3rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* Contact Page Grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.contact-info {
  padding-right: 2rem;
}

.contact-method {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-method h3 {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--brand-teal);
  margin-bottom: 1rem;
}

.contact-method p {
  font-size: 1.2rem;
  color: var(--off-white);
}

.contact-form {
  background: rgba(255,255,255,0.02);
  padding: 3rem;
  border-radius: 8px; /* Added slight radius */
  border: 1px solid rgba(255,255,255,0.05);
}

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

.form-group label {
  display: block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: var(--brand-gray);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem 0;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--brand-teal);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 2rem;
  }
}

