/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --primary: #0ea5e9;
  --secondary: #1a1a1a;
  --accent: #f59e0b;
  --dark: #0f172a;
  --light: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ensure all content is visible by default (GSAP will animate from these states) */
.hero-content,
.hero-image,
.about-image,
.about-content,
.service-card,
.feature-card,
.gallery-item,
.contact-card,
.contact-form-wrapper,
.section-headline {
  opacity: 1;
  visibility: visible;
}

/* Prevent horizontal overflow from GSAP animations */
.about-section,
.services-section,
.features-section,
.gallery-section,
.contact-section {
  overflow-x: hidden;
}

/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(14, 165, 233, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.navbar.scrolled .logo-text {
  color: var(--secondary);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

.cta-button {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.cta-button:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Mobile Menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary);
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-links a {
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mobile-menu-links a:hover {
  background: var(--light);
  color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%230ea5e9" opacity="0.1"/></svg>');
  background-size: 60px 60px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  padding: 16px 32px;
  background: transparent;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  border: 3px solid rgba(14, 165, 233, 0.3);
}

/* ===== SECTIONS ===== */
.about-section,
.services-section,
.features-section,
.gallery-section,
.contact-section {
  position: relative;
}

.section-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-subheadline {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== ABOUT SECTION ===== */
.about-image img {
  width: 100%;
  height: auto;
  border: 2px solid var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.1);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: white;
}

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

.service-card {
  background: var(--light);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

/* Video play icon overlay */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  opacity: 0.9;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  background: rgba(14, 165, 233, 0.8);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .video-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(14, 165, 233, 1);
}

/* ===== CONTACT SECTION ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Map */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  margin-top: 1.5rem;
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s ease;
  background: var(--light);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: white;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.footer-logo .logo-text {
  color: white;
}

.footer-logo .logo-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .hero-subheadline {
    font-size: 1rem;
  }
  
  .section-headline {
    font-size: 1.75rem;
  }
  
  .services-grid,
  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  .service-title {
    font-size: 1.125rem;
  }
  
  .contact-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .navbar {
    height: auto;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .logo-subtitle {
    font-size: 0.65rem;
  }
  
  .logo-image,
  .footer-logo-image {
    width: 40px;
    height: 40px;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 1rem;
    border-top: 2px solid #e2e8f0;
    border-left: none;
    border-right: none;
  }
  
  .stat-value {
    font-size: 1.75rem;
    margin-bottom: 0;
    margin-right: 1rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
  
  .about-image img,
  .hero-image img {
    max-width: 240px;
    margin: 0 auto;
    display: block;
  }
  
  .section-headline {
    font-size: 1.5rem;
  }
  
  .section-subheadline {
    font-size: 1rem;
  }
  
  .service-title {
    font-size: 1rem;
  }
  
  .service-description {
    font-size: 0.875rem;
  }
  
  .contact-section .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .contact-value {
    font-size: 0.9rem;
    word-break: break-all;
  }
  
  .contact-card {
    padding: 0.875rem;
  }
  
  .form-input {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .footer-heading {
    font-size: 1rem;
  }
  
  .footer-description,
  .footer-links a,
  .footer-contact {
    font-size: 0.875rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
