/* ==========================================================================
   1. Root Variables & Reset
   ========================================================================== */
:root {
  --color-bg: #fffafa;
  --color-text: #0c0c0c;
  --color-primary: #d13332;
  --color-primary-hover: #b02827;
  --color-overlay: rgba(12, 12, 12, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/* ==========================================================================
   2. Space Floating Background
   ========================================================================== */
#space-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.floating-asset {
  position: absolute;
  width: 130px;
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 10px 15px rgba(12, 12, 12, 0.15));
  animation: floatSpace 12s infinite linear alternate;
  will-change: transform;
}

.asset-1 { top: 10%; left: 5%; animation-duration: 9s; }
.asset-2 { top: 60%; left: 80%; animation-duration: 7s; }
.asset-3 { top: 75%; left: 15%; animation-duration: 11s; }
.asset-4 { top: 25%; left: 70%; animation-duration: 8s; }
.asset-5 { top: 45%; left: 15%; animation-duration: 10s; }

@keyframes floatSpace {
  0% {
    transform: translate(0, 0) rotate(-30deg) scale(1);
  }
  33% {
    transform: translate(60px, -80px) rotate(-90deg) scale(1.1);
  }
  66% {
    transform: translate(-50px, 100px) rotate(30deg) scale(0.9);
  }
  100% {
    transform: translate(80px, -40px) rotate(90deg) scale(1.05);
  }
}

/* ==========================================================================
   3. Header Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background-color: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
}

.logo {
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(12, 12, 12, 0.15));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  cursor: pointer;
}

.logo:hover {
  transform: translateY(-3px) scale(1.06);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease, transform 0.2s ease;
  text-shadow: 0 1px 3px rgba(255, 250, 250, 0.8);
}

.nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.lang-btn {
  position: relative;
  background: rgba(255, 250, 250, 0.85);
  border: 2px solid var(--color-primary);
  color: var(--color-text);
  padding: 8px 18px;
  font-weight: bold;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(12, 12, 12, 0.06);
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 250, 250, 0.6),
    transparent
  );
  transition: all 0.6s ease;
}

.lang-btn:hover::before {
  left: 100%;
}

.lang-btn:hover {
  background-color: var(--color-primary);
  color: #fffafa;
  transform: translateY(-3px);
}

.lang-btn:active {
  transform: translateY(-1px) scale(0.97);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 90px 10% 0 10%;
  z-index: 1;
}

.hero-content {
  max-width: 750px;
  text-align: left;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--color-text);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #2b2b2b;
  margin-bottom: 35px;
  max-width: 650px;
}

.hero-btn-wrapper {
  display: flex;
  justify-content: flex-start;
}

.btn-hero {
  position: relative;
  background-color: var(--color-primary);
  color: #fffafa;
  padding: 16px 42px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 8px 25px rgba(209, 51, 50, 0.35);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-hero:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(209, 51, 50, 0.45);
}

.btn-hero:active {
  transform: translateY(-1px) scale(0.98);
}

/* ==========================================================================
   5. General Section & Glassmorphism Cards
   ========================================================================== */
.about-section, 
.product-section, 
.contact-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 10% 40px 10%;
  position: relative;
  z-index: 1;
}

.about-card, 
.product-card, 
.contact-card {
  width: 100%;
  max-width: 1100px;
  background-color: rgba(255, 250, 250, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 234, 234, 0.6);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 15px 35px rgba(12, 12, 12, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover, 
.product-card:hover, 
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(12, 12, 12, 0.08);
}

/* ==========================================================================
   6. About Us Section
   ========================================================================== */
.about-card.split-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  max-width: 1200px;
  width: 100%;
}

.about-image-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.about-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.about-img:hover {
  transform: translateY(-5px) scale(1.03);
}

.about-content {
  flex: 1.3;
  display: flex;
  flex-direction: column;
}

.about-tag, .contact-tag {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: block;
  margin-bottom: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Icon Styling */
.stat-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary); /* Uses your primary red color */
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Mobile alignment fix */
@media (max-width: 992px) {
  .stat-item {
    align-items: center; /* Centers icon on tablet and mobile */
  }
}

.about-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.about-underline {
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  margin: 0 0 20px 0;
  border-radius: 2px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #2b2b2b;
  margin-bottom: 25px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(234, 234, 234, 0.8);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   7. Product Cards
   ========================================================================== */
.product-card {
  display: flex;
  align-items: center;
  gap: 60px;
}

.product-card.reverse {
  flex-direction: row-reverse;
}

.product-image-box {
  flex: 1;
  text-align: center;
  padding: 20px;
}

.product-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 15px 25px rgba(12, 12, 12, 0.1));
}

.product-img:hover {
  transform: scale(1.08) rotate(-2deg);
}

.product-info {
  flex: 1.2;
}

.product-badge {
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 900;
  display: block;
  margin-bottom: 5px;
  line-height: 1;
}

.product-info h2 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #2b2b2b;
}

/* ==========================================================================
   8. Contact Us Section
   ========================================================================== */
.contact-header {
  text-align: center;
  margin-bottom: 30px;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.contact-underline {
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--color-primary);
  padding-left: 15px;
}

.contact-label {
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

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

.contact-value-link {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.contact-map-container {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  border: 1px solid rgba(234, 234, 234, 0.8);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(12, 12, 12, 0.05);
}

.contact-map {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%);
}

/* ==========================================================================
   9. Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary, .btn-red {
  background-color: var(--color-primary);
  color: #fffafa;
  box-shadow: 0 4px 15px rgba(209, 51, 50, 0.25);
}

.btn-primary:hover, .btn-red:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 51, 50, 0.35);
}

/* ==========================================================================
   10. Footer Styling
   ========================================================================== */
.site-footer {
  position: relative; /* Enables z-index layering */
  z-index: 10;        /* Pulls footer above #space-bg (which is z-index: 0 or -1) */
  margin-top: auto;
  background-color: #d13332;
  color: #fffafa;
  padding: 20px 30px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #fffafa;
  font-style: italic;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #fffafa;
  border-top: 1px solid #d13332;
  padding-top: 12px;
  width: 100%;
  max-width: 400px;
}

.footer-copyright p {
  margin: 0;
}

/* ==========================================================================
   11. Modal Window for PDF Preview
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fffafa;
  width: 85%;
  max-width: 1000px;
  height: 85vh;
  height: 85dvh;
  border-top: 5px solid var(--color-primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid #ddd;
}

.modal-header h3 {
  color: var(--color-text);
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text);
  cursor: pointer;
}

.close-btn:hover {
  color: var(--color-primary);
}

.modal-body {
  flex: 1;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   12. Responsive Mobile & Tablet Rules
   ========================================================================== */

/* Tablet Optimization (max-width: 992px) */
@media (max-width: 992px) {
  .navbar {
    height: 75px;
    padding: 0 8%;
  }

  .logo {
    height: 48px;
    height: 48px;
    object-fit: contain;
    margin-top: auto;   /* Balances vertical positioning */
    margin-bottom: auto;
    display: block;
  }

  .about-card.split-layout {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-content {
    align-items: center;
  }

  .about-underline {
    margin: 0 auto 20px auto;
  }

  .about-stats {
    width: 100%;
  }

  .stat-item {
    align-items: center;
  }

  .about-img {
    max-width: 320px;
  }
}

/* Mobile Devices Optimization (max-width: 768px) */
@media (max-width: 768px) {
  /* Navigation */
  .navbar {
    height: 70px;
    padding: 0 5%;
  }

  .logo {
    height: 55px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  /* Reduce Background Float Size on Mobile */
  .floating-asset {
    width: 75px !important;
    opacity: 0.6 !important
  }

  /* Section Spacing */
  .hero-section {
    padding: 80px 5% 30px 5%;
    justify-content: center;
  }

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

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 25px;
  }

  .hero-btn-wrapper {
    justify-content: center;
  }

  .btn-hero {
    padding: 14px 32px;
    font-size: 0.9rem;
  }

  .about-section, 
  .product-section, 
  .contact-section {
    padding: 85px 4% 30px 4%;
    min-height: auto; /* Allows natural scrolling if content extends on small phones */
  }

  .about-card, 
  .product-card, 
  .contact-card {
    padding: 30px 20px;
    border-radius: 18px;
  }

  /* About Section Mobile */
  .about-title, 
  .contact-title {
    font-size: 1.7rem;
  }

  .about-text {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Product Cards Mobile */
  .product-card, 
  .product-card.reverse {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .product-image-box {
    padding: 0;
  }

  .product-img {
    max-height: 220px;
  }

  .product-badge {
    font-size: 2rem;
  }

  .product-info h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .product-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* Contact Us Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-details {
    gap: 14px;
  }

  .contact-value, 
  .contact-value-link {
    font-size: 0.92rem;
  }

  .contact-map-container {
    height: 220px;
  }

  /* Modal Mobile Window */
  .modal-content {
    width: 95%;
    height: 80vh;
    height: 80dvh;
  }

  .modal-header {
    padding: 12px 18px;
  }

  .modal-header h3 {
    font-size: 1rem;
  }
}

/* Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .about-title, 
  .contact-title {
    font-size: 1.45rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}