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

:root {
  /* Brand Colors */
  --primary-color: #0D47A1;
  --secondary-color: #D32F2F;
  --primary-light: #1565C0;
  --primary-dark: #0A367A;
  --secondary-light: #E53935;
  --secondary-dark: #B71C1C;
  
  /* Neutrals */
  --bg-color: #F5F7FA;
  --surface-color: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --border-color: #E0E0E0;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Utils */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(13, 71, 161, 0.08);
  --shadow-lg: 0 12px 32px rgba(13, 71, 161, 0.12);
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.nav-brand img {
  max-height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links li a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-normal);
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 71, 161, 0.3);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color); /* Fallback */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 54, 122, 0.9) 0%, rgba(10, 54, 122, 0.2) 100%);
  z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 2;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 3;
}





.hero-subtitle {
  color: var(--secondary-color);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.hero-title span {
  color: var(--secondary-light);
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
}

.footer-title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  position: relative;
  transition: all var(--transition-normal);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  left: 0;
  transition: all var(--transition-normal);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Space for bottom navbar */
  }
  
  .site-header {
    top: 0;
    bottom: auto;
    position: sticky;
    border-top: none;
    backdrop-filter: none;
    background: #ffffff;
  }

  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    height: 60px;
    background: var(--surface-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transition: none;
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    scroll-snap-align: center;
    flex-shrink: 0;
    margin-right: 24px;
    margin-bottom: 0;
  }

  .nav-links li:last-child {
    margin-right: 16px;
  }

  .nav-links li a {
    font-size: 0.9rem;
    padding: 16px 8px;
    display: inline-block;
  }

  .nav-links li a::after {
    bottom: 8px;
  }
  
  .mobile-nav-toggle {
    display: none;
  }
  
  .hero {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .hero-actions {
    flex-direction: column;
  }

  .hero-video {
    object-position: center center;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact p, .footer-contact div {
    justify-content: center;
    text-align: center;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-card {
    padding: 24px !important;
  }

  .contact-input {
    padding: 10px 12px !important;
    font-size: 0.95rem !important;
  }

  .contact-info-title {
    font-size: 1.1rem !important;
  }

  .contact-info-text {
    font-size: 0.9rem !important;
  }

  .contact-icon-box {
    width: 40px !important;
    height: 40px !important;
  }

  .contact-icon-box i {
    font-size: 20px !important;
  }
}

/* Mobile Swipeable Grids */
.grid-container-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

@media (max-width: 768px) {
  .grid-container-responsive {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .grid-container-responsive::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
  
  .grid-container-responsive > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}
  
/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--transition-normal);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-wrapper {
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  background: var(--surface-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal.show .modal-wrapper {
  transform: scale(1);
}

.modal-image-container {
  padding: 32px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  flex-shrink: 0;
}

.modal-image-inner {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-details {
  padding: 24px 32px;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
  flex-grow: 1;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 2001;
}

.modal-close:hover {
  color: var(--secondary-color);
}

.product-item-card {
  cursor: pointer;
}

/* Utilities for Lightbox vs Card display */
.product-info .modal-only {
  display: none;
}

#modalDetails .modal-only {
  display: block;
  margin-top: 20px;
}

#modalDetails .card-only {
  display: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.2s; }
.delay-200 { animation-delay: 0.4s; }
.delay-300 { animation-delay: 0.6s; }
.delay-400 { animation-delay: 0.8s; }
.delay-500 { animation-delay: 1.0s; }

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: scale(1.1);
  box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 90px; /* Above the mobile nav */
    right: 20px;
    font-size: 30px;
  }
}
