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

body {
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s ease;
}

/* Helper class for Homepage Transparent Header */
.navbar.transparent {
  background: transparent;
  backdrop-filter: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #ff4444;
}

.nav-dots {
  display: flex;
  gap: 8px;
}

.nav-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 0%;
  background: #444;
  transition: background 0.3s ease;
}

.nav-dots .dot:hover {
  background: #ff4444;
  transform: scale(1.2); /* Adds a satisfying tiny "pop" when hovered */
}

.nav-logo-img {
  height: 15px; 
  width: auto; 
  display: block;
}

@media (max-width: 768px) {
  .nav-logo-img { height: 15px; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(15px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin: 30px 0;
}

.mobile-menu a {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 3px;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #ff4444;
}

/* --- SUBPAGE BACKGROUNDS (Pixels & Lines) --- */
.subpage {
  padding-top: 120px;
}

.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  overflow: hidden;
}

.floating-pixel {
  position: absolute;
  width: 4px; /* Square size */
  height: 4px;
  background: #ff4444;
  border-radius: 0; /* Makes it a square */
  animation: floatPixel 6s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes floatPixel {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(45deg); }
}

.connecting-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connecting-line path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 8s ease-in-out infinite;
}

@keyframes drawLine {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

/* --- SCROLLYTELLING HERO --- */
.hero-spacer {
  height: 400vh;
  position: relative;
}

.hero-sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
  opacity: 0; 
  transition: opacity 1.5s ease;
}

.hero-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(20px);
}
/*
.hero-stage.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
*/

.stage-1{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  filter: blur(15px);
  transform: scale(0.9) translateY(20px);
  will-change: transform, filter, opacity;
  transition: opacity 2.2s cubic-bezier(0.25, 1, 0.5, 1),
              transform 2.2s cubic-bezier(0.25, 1, 0.5, 1),
              filter 2.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-stage.active {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.hero-content.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 40px;
  line-height: 1.2;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.corner-text {
  position: absolute;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-align: left;
}

.corner-text .highlight {
  font-size: 2rem;
  display: block;
}

.top-left { top: 15%; left: 10%; text-align: left; }
.top-right { top: 15%; right: 10%; text-align: right; }
.bottom-left { bottom: 15%; left: 10%; text-align: left; }
.bottom-right { bottom: 15%; right: 10%; text-align: right; }

.highlight {
  color: #ff4444;
  font-weight: 700;
}

.cta-button {
  background: transparent;
  border: 2px solid #ff4444;
  color: #ff4444;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: #ff4444;
  color: #121212;
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
  color: #ff4444;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.5s;
}

.scroll-indicator.hide {
  opacity: 0;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #ff4444;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #ff4444;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* Services Section */
.services {
  padding: 120px 0;
  background: #0f0f0f;
  position: relative;
  z-index: 10;
}

.services h2 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 80px;
  position: relative;
}

.services h2::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ff4444;
}

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

.service-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover { 
  transform: translateY(-10px); 
  border-color: #ff4444; 
}
.service-icon { margin-bottom: 30px; }
.service-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.service-card p { color: #aaa; font-size: 14px; }

.testimonials { padding: 120px 0; background: #0f0f0f; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 60px; }
.testimonial-card { background: rgba(255,255,255,0.02); padding: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); border-color: rgba(255,68,68,0.3); }
.testimonial-card p { color: #ccc; margin-bottom: 30px; }
.author-line { width: 40px; height: 2px; background: #ff4444; }

/* Contact Styles */
.contact-section { padding-bottom: 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info-block h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-info-block p {
  color: #aaa;
  margin-bottom: 40px;
}

.info-item {
  margin-bottom: 25px;
  color: #ccc;
  line-height: 1.6;
}

.info-item strong {
  color: #ff4444;
  letter-spacing: 1px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff4444;
  background: rgba(255, 255, 255, 0.05);
}

.contact-form button {
  align-self: flex-start;
}

#form-message {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}
.success-msg {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  color: #28a745;
}

/* --- FOOTER REFACTORED (Side-by-Side) --- */
.footer {
  background: #0a0a0a;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 1. Container: Always Row (Side by Side) */
.footer-content {
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

/* 2. Brand Section: Left Side */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align contents to start */
  gap: 20px;
  flex: 2; /* Takes ample space */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info p {
  color: #aaa;
  margin-bottom: 5px;
  font-size: 14px;
}

.contact-info a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #ff4444;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: flex-start; /* Align left */
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: #ff4444;
  color: #ff4444;
}

/* 3. Links Section: Right Side */
.footer-links {
  display: flex;
  flex: 1;
  justify-content: flex-end; /* Align to right */
}

/* 4. The UL is Stacked (Column) */
.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column; /* Vertically stacked links */
  gap: 20px;
  padding: 0;
  text-align: right;
}

.footer-column a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-column a:hover { color: #ff4444; }

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

.footer-bottom p {
  color: #666;
  font-size: 14px;
}

.footer-dots {
  display: flex;
  gap: 8px;
}

.footer-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 0; /* Square */
  background: #333;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* CHANGED: Target the specific dot on hover, not the parent container */
.footer-dots .dot:hover {
  background: #ff4444;
  transform: scale(1.2); /* Adds a satisfying tiny "pop" when hovered */
}

/* Portfolio Grid */
.portfolio-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.portfolio-row {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
  height: 100%;
}

.portfolio-row:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 68, 68, 0.4);
}

.portfolio-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-row:hover img {
  transform: scale(1.05);
}

.portfolio-row-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-row-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ff4444;
}

.portfolio-row-content p {
  color: #aaa;
}

/* Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #121212;
  z-index: 995;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-top: 100px;
  padding-bottom: 60px;
}

.project-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal-content {
  position: relative;
  background: transparent;
  border: none;
}

.close-modal {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #aaa;
  cursor: pointer;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ff4444;
}

.modal-body img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 40px;
  background: #000;
}

.modal-body h2 {
  font-size: 2.5rem;
  color: #ff4444;
  margin-bottom: 20px;
}

.modal-body #modal-details {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 900px;
}


/* Responsive */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-content h1 { font-size: 2.5rem; }
  .services-grid, .testimonials-grid, .contact-grid { grid-template-columns: 1fr; }
  
  .portfolio-list { grid-template-columns: 1fr; }
  
  .modal-body img { height: auto; }
  
  /* Mobile Stage 2 Adjustment */
  .corner-text { font-size: 1rem; }
  .top-left { top: 15%; left: 5%; }
  .top-right { top: 15%; right: 5%; }
  .bottom-left { bottom: 20%; left: 5%; }
  .bottom-right { bottom: 20%; right: 5%; }
  
  /* Footer Mobile Logic: Keep Row, Adjust Spacing */
  .footer-content {
    gap: 15px; /* Tighter gap */
  }
  
  .footer-brand {
    flex: 2; /* Keep brand taking more space */
  }
  
  .social-links {
    flex-wrap: wrap; /* Ensure icons wrap if screen is very tiny */
  }
  
  .footer-links {
    flex: 1; 
  }
}

/* Enable smooth scrolling across the entire site */
html {
  scroll-behavior: smooth;
}

/* Prevent the fixed navbar from covering the form when using the anchor link */
#inquiry-form {
  scroll-margin-top: 120px; 
}

/* --- CUSTOM DROPDOWN STYLES --- */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; /* Default text color */
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px; /* Matches your inputs */
}

/* Match the placeholder color for the initial "SUBJECT" text */
.custom-select-trigger .trigger-text {
    color: #757575; /* Similar to default placeholder grey */
}

/* When a selection is made, turn text white */
.custom-select-wrapper.selected .trigger-text {
    color: #ffffff;
}

.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: #ff4444;
  background: rgba(255, 255, 255, 0.05);
}

.arrow {
  position: relative;
  height: 8px;
  width: 8px;
}

.arrow::before, .arrow::after {
  content: "";
  position: absolute;
  bottom: 0px;
  width: 2px;
  height: 100%;
  background-color: #ff4444;
  transition: all 0.3s;
}

.arrow::before {
  left: -2px;
  transform: rotate(-45deg);
}

.arrow::after {
  left: 2px;
  transform: rotate(45deg);
}

/* Rotate arrow when open */
.custom-select-wrapper.open .arrow::before {
  left: -2px;
  transform: rotate(45deg);
}
.custom-select-wrapper.open .arrow::after {
  left: 2px;
  transform: rotate(-45deg);
}

.custom-options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.5, 0, 0, 1.25);
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.2s;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-option:last-of-type {
  border-bottom: none;
}

.custom-option:hover {
  background-color: #ff4444;
  color: #fff;
  padding-left: 25px; /* Slight movement effect */
}

.custom-option.selected {
  color: #ff4444;
  font-weight: bold;
}
.custom-option.selected:hover {
    color: #fff;
}

/* --- TESTIMONIAL MODAL INJECTIONS --- */
#modal-testimonial {
  display: none; /* Hidden by default */
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #ff4444;
  border-radius: 4px;
  gap: 20px;
  align-items: center;
}

.testimony-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff4444;
  margin-bottom: 0; /* Override modal default img margin */
}

.testimony-content {
  display: flex;
  flex-direction: column;
}

.testimony-text {
  font-style: italic;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.testimony-author {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  #modal-testimonial {
    flex-direction: column;
    text-align: center;
  }
}

/* --- TECH STACK MARQUEE --- */
.tech-stack-section {
  padding: 40px 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}
.tech-stack-section p {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.tech-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.5;
}
.tech-logos span { font-weight: 600; font-size: 1.2rem; letter-spacing: 1px; color: #fff;}

/* --- SERVICES OVERHAUL --- */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* --- PORTFOLIO FILTERS & PILLS --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: #ff4444;
  border-color: #ff4444;
}
.tech-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.tech-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 4px;
  letter-spacing: 1px;
}

/* --- FAQ SECTION --- */
.faq-section { margin-top: 50px; }
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.faq-item h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.faq-item p { color: #aaa; font-size: 0.95rem; line-height: 1.6;}

/* --- FORM SUCCESS OVERRIDE --- */
.success-msg {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #28a745;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* --- HERO MOBILE OVERLAP WORKAROUND --- */
@media (max-width: 768px) {
  .stage-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 30px;
    padding: 20px;
  }
  .stage-2 .corner-text {
    position: static; /* Removes the absolute corners */
    width: 40%; /* Forces a 2x2 grid look */
    text-align: center !important;
    font-size: 0.9rem;
  }
  .stage-2 .corner-text .highlight {
    font-size: 1rem;
  }
}

/* --- FAQ ACCORDION STYLES --- */
.faq-container {
  padding: 80px 0 120px;
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}
.faq-question {
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: #ff4444;
}

/* --- UPDATED FAQ ICON ANIMATION --- */
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 12px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #ff4444;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform-origin: center;
}

/* Horizontal line of the + */
.faq-icon::before {
  width: 100%;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* Vertical line of the + */
.faq-icon::after {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
}

/* Active State (Transforms into a Minus sign seamlessly) */
.faq-item.active .faq-icon::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0; /* Fades out the vertical line as it rotates */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.faq-answer p {
  padding-bottom: 20px;
  color: #aaa;
  line-height: 1.6;
}

/* ============================================ */
/* NEW TILT ROW & IMAGE INTERACTION STYLES */
/* ============================================ */

/* Section Wrapper */
.tilt-section {
  padding: 150px 0;
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Row Setup */
.tilt-row-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* 1. Text Column Styles */
.tilt-text-col {
  flex: 1;
}
.section-title-alt {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-subtitle-alt {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 550px;
  margin-bottom: 30px;
}

/* 2. Image Column & Stage Setup */
.tilt-image-col {
  flex: 1;
  width: 100%; /* Forces column to span full width on mobile */
}
.parallax-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 2000px;
}

/* The element that actually tilts */
.tilting-image-card {
  position: relative;
  width: 100%;
  max-width: 480px; 
  aspect-ratio: 4/3; 
  min-height: 300px; /* FALLBACK: Prevents collapsing to 0 height on mobile */
  background: transparent; /* Fallback color before image loads */
  border-radius: 12px;
  overflow: hidden; 
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
}

/* The actual image */
.base-image {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0; left: 0;
}
/* ============================================ */
/* 3D TILT HOVER PROMPT UX                      */
/* ============================================ */
.hover-instruction {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #fff;
  padding: 8px 18px 8px 12px; /* Adjusted padding to fit the hand */
  border-radius: 0px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  pointer-events: none; 
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0px 20px 20px rgba(0,0,0,0.5);
  flex-direction: column;
}

/* The new sliding hand animation */
.sliding-hand {
  animation: slideHand 1.5s ease-in-out infinite;
}

@keyframes slideHand {
  0%, 100% { 
    transform: translateX(-25px) rotate(-5deg); 
  }
  50% { 
    transform: translateX(25px) rotate(5deg); 
  }
}

/* The Magic Trick: Fade the prompt out when the card is hovered */
.tilting-image-card:hover .hover-instruction {
  opacity: 0;
  transform: translateX(-50%) translateZ(40px) translateY(15px);
}

/* The Magic Trick: Fade the prompt out when the card is hovered */
.tilting-image-card:hover .hover-instruction {
  opacity: 0;
  transform: translateX(-50%) translateZ(40px) translateY(15px); /* Drops down slightly as it fades */
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .tilt-row-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .section-title-alt { font-size: 2.2rem; }
  .section-subtitle-alt { margin: 0 auto 30px; }
}

/* NEW: Hide the hover instruction on touch/mobile devices */
@media (max-width: 768px) {
  .hover-instruction {
    display: none !important;
  }
}

/* ============================================ */
/* --- TEAM PAGE STYLES (Grid 2-Column Layout) --- */
/* ============================================ */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr 2.5fr; 
  gap: 50px; 
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-row:hover {
  transform: translateX(10px);
  border-color: rgba(255, 68, 68, 0.3);
}

/* LEFT COLUMN: The Photo */
/* LEFT COLUMN: The Photo Wrapper */
.team-photo-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  background: #0a0a0a; /* Dark background while loader spins */
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The actual image inside the wrapper */
.team-photo-row {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center 15%; 
  opacity: 0; /* Hidden initially */
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.team-photo-row.loaded {
  opacity: 1; /* Fades in when loaded */
}

.team-row:hover .team-photo-row {
  transform: scale(1.02);
}

/* RIGHT COLUMN: The Data Stack */
.team-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.team-content-header {
  margin-bottom: 15px;
}

.team-content h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 5px;
}

.team-role {
  color: #ff4444;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.team-bio {
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 100%;
}

.team-socials {
  margin-top: auto; 
  display: flex;
  gap: 15px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .team-row {
    /* Forces 2 columns: a fixed 120px for the photo, and the rest for the text */
    grid-template-columns: 120px 1fr; 
    gap: 20px; /* Tighter gap so text has more breathing room */
    padding: 20px 15px; /* Less empty space inside the card */
    text-align: left; /* Ensures text stays left-aligned like desktop */
  }

  .team-row:hover {
    transform: translateY(-5px); /* A softer hover effect for touch screens */
  }

  /* Mobile: Transfer sizing logic to the wrapper */
  .team-photo-wrapper {
    width: 100%;
    height: 100%;
    min-height: 160px;
    max-height: 200px;
    margin: 0;
  }

  /* Shrink text slightly to fit the narrow space gracefully */
  .team-content-header {
    margin-bottom: 10px;
  }

  .team-content h3 {
    font-size: 1.4rem;
    margin-bottom: 2px;
  }

  .team-role {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .team-bio {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  /* Keep icons aligned left and make them slightly smaller */
  .team-socials {
    justify-content: flex-start; 
    margin-top: auto;
    gap: 10px;
  }
  
  .team-socials .social-link {
    width: 32px;
    height: 32px;
  }
  
  .team-socials .social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================ */
/* 1. LENIS SMOOTH SCROLLING BASE               */
/* ============================================ */
html.lenis, html.lenis body {
  height: auto;
  width: 100vw;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ============================================ */
/* 2. SLIDING PILL NAV BAR                      */
/* ============================================ */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px; /* Reduced gap because padding adds width to the links */
  z-index: 1;
}
.nav-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 40px; 
  background-color: #ff4444; 
  border-radius: 0px;
  transform: translate(var(--pill-left, 0), -50%);
  width: var(--pill-width, 0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.3s ease;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.nav-menu li {
  z-index: 1;
}
.nav-menu a {
  position: relative;
  z-index: 2;
  padding: 10px 20px; /* Gives the pill its breathing room */
  color: #ffffff;
  transition: color 0.3s ease;
  display: inline-block;
  border-radius: 20px;
}
/* Invert text to dark when hovered or active */
.nav-menu a:hover, 
.nav-menu a.active-nav-link {
  color: #121212 !important; 
}

/* ============================================ */
/* 3. MODAL LOADING UX                          */
/* ============================================ */
.modal-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  border-radius: 8px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#modal-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Hidden initially */
  background: transparent;
  transition: opacity 0.5s ease;
  margin-bottom: 0; 
}

.mamba-loader {
  width: 30px !important;
  height: 30px !important;
  border-radius: 0PX !important;
  position: absolute;
  z-index: 1;
  /* Adds a smooth pulsing spin */
  animation: spinLogo 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; 
}
@keyframes spinLogo {
  0% { transform: rotate(0deg) scale(0.8); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.8); opacity: 0.5; }
}

#modal-image.loaded {
  opacity: 1; /* Fades in once fully loaded from Drive */
}

/* ============================================ */
/* MOBILE NAVIGATION FIX                        */
/* ============================================ */
@media (max-width: 768px) {
  /* Hides the desktop text links on mobile */
  .nav-menu {
    display: none !important; 
  }
  
  /* Hides the sliding red pill background on mobile */
  .nav-pill {
    display: none !important;
  }
  
  /* Ensures the 3 dots are always visible on mobile */
  .nav-dots {
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/* ============================================ */
/* CUSTOM DROPDOWN HTML5 VALIDATION FIX         */
/* ============================================ */
.hidden-validation-select {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none; /* Prevents it from accidentally intercepting clicks */
  z-index: -1;
  transform: translate(-50%, -50%);
}