:root {
  --bg-dark: #07080a;
  --bg-surface: #111418;
  --bg-card: #181c23;
  --primary-blue: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.4);
  --text-main: #f0f2f5;
  --text-muted: #9ba1a6;
  --border-color: #2a313c;
  --accent-color: #3b82f6;
  
  --font-main: 'Outfit', 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(90deg, #ffffff, var(--primary-blue));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  box-shadow: 0 0 10px var(--primary-glow) inset, 0 0 10px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-blue);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--primary-glow);
}

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

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: background var(--transition-speed), padding var(--transition-speed);
}

.navbar.scrolled {
  background: rgba(7, 8, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary-blue);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

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

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Cinematic WebGL Hero Section */
#webgl-hero-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Lock to viewport height to be pinned */
  background-color: var(--bg-color);
  overflow: hidden; /* Prevent horizontal scrollbars */
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none; 
}

.hero-scroll-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none; 
}

.hero-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem 4rem 2rem;
  opacity: 0; /* Default hidden, GSAP controls it */
}

.hero-step.final-step {
  pointer-events: auto; /* Allow clicking on CTA */
}

.hero-step .container {
  width: 100%;
  max-width: 1200px;
}

.text-center { text-align: center; margin: 0 auto; }
.text-left { text-align: left; margin-right: auto; }
.text-right { text-align: right; margin-left: auto; }


.hero-headline {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, transparent 70%);
  display: inline-block;
  padding: 1rem;
}

.hero-headline span {
  color: var(--primary-blue);
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, transparent 80%);
  padding: 1rem;
  border-radius: 8px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

/* Scroll Bouncing Indicator */
.scroll-indicator {
  margin-top: 3rem;
  animation: bounce 2s infinite;
  display: flex;
  justify-content: center;
}

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

/* Moving Brand Bar */
.brand-marquee {
  background: var(--bg-surface);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
}

.brand-marquee::before,
.brand-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.brand-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.brand-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
  display: flex;
  gap: 4rem;
  animation: scroll 60s linear infinite;
  padding-right: 4rem; /* Match gap */
}

.marquee-content span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: default;
}

.marquee-content span:hover {
  color: var(--primary-blue);
  text-shadow: 0 0 10px var(--primary-glow);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.card-img {
  height: 200px;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Mock images using CSS gradients for premium feel */
.mock-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #181c23 0%, #222831 100%);
  position: relative;
}
.mock-img::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.product-card:hover .mock-img::after {
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px var(--primary-glow), inset 0 0 10px var(--primary-glow);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.card-btn {
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}
.card-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.product-card:hover .card-btn svg {
  transform: translateX(5px);
}

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

.feature-item {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.feature-item:hover {
  background: var(--bg-card);
  border-color: var(--primary-blue);
}

.feature-icon {
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary-blue);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.feature-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Industries Section */
.industries {
  background: linear-gradient(var(--bg-dark), var(--bg-surface));
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.industry-pill {
  padding: 0.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  cursor: default;
}

.industry-pill:hover {
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Contact Section & Form */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-blue);
}

.info-card h4 {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.info-card p, .info-card a {
  font-size: 1.1rem;
  font-weight: 500;
}

.info-card a:hover {
  color: var(--primary-blue);
}

.enquiry-form {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-main);
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-blue);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
  background: #040506;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animation Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-headline {
    font-size: 2.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
