/* style.css - Optimized for performance */
:root {
  --navy: #110353;
  --navy-light: #231A7A;
  --yellow: #ffd500;
  --yellow-dark: #e6c000;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  --radius: 1rem;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
}

/* ===== HEADER / NAVBAR ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

header .backdrop-blur-xl {
  background: rgba(17,3,83,0.8) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

header.scrolled .backdrop-blur-xl {
  background: rgba(17,3,83,0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo span {
  color: var(--yellow) !important;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

header .btn-inquiry {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 213, 0, 0.3);
  transition: var(--transition);
  margin-left: 0.5rem;
  line-height: 1.2;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

header .btn-inquiry:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 213, 0, 0.5);
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

#hamburger span {
  display: block;
  width: 1.8rem;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  #hamburger {
    display: flex;
  }
}

/* ===== MOBILE SIDEBAR ===== */
#mobileSidebar {
  pointer-events: none;
}

#mobileSidebar.open {
  pointer-events: auto;
}

#mobileSidebar.open .sidebar-backdrop {
  opacity: 1;
}

#mobileSidebar.open .sidebar-panel {
  transform: translateX(0);
}

.sidebar-panel {
  background: rgba(17,3,83,0.98) !important;
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-panel a {
  color: var(--white);
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-panel a:hover {
  color: var(--yellow);
  padding-left: 0.5rem;
}

/* ===== HERO SLIDER ===== */
.swiper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 80vh;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.swiper-slide > div {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background: var(--yellow);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .swiper {
    height: 70vh;
  }
  .swiper-slide > div {
    padding: 0 1rem;
  }
}

/* ===== SECTION STYLES ===== */
section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-full {
  max-width: 100%;
  padding: 0;
}

@media (max-width: 1024px) {
  section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--yellow);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header .divider {
  width: 80px;
  height: 4px;
  background: var(--yellow);
  margin: 0.5rem auto 1rem;
  border-radius: 2px;
}

.section-header p {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.corporate-card-bg,
.card,
.product-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow);
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* GPU layer promotion */
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Hover effect – visually identical but optimized with single composite shadow */
.corporate-card-bg:hover,
.card:hover,
.product-card:hover,
.contact-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow);
  /* Single shadow that approximates the original triple glow */
  box-shadow: 0 0 40px 10px rgba(255, 215, 0, 0.8), 0 0 80px 30px rgba(255, 200, 0, 0.4) !important;
}

.image-shell {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 200px;
  margin-bottom: 1rem;
  aspect-ratio: 4/3; /* helps prevent layout shift */
}

.image-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.product-card:hover .image-shell img {
  transform: scale(1.03);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .h2-title, .h3-title {
  color: var(--yellow);
  font-weight: 700;
  line-height: 1.2;
}

.h2-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.h3-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p, .text-gray-400, .text-gray-300 {
  color: var(--white) !important;
}

.spec-text {
  color: var(--white) !important;
}

.primary-color {
  color: var(--yellow) !important;
}

@media (max-width: 768px) {
  .h2-title {
    font-size: 2rem;
  }
  .h3-title {
    font-size: 1.25rem;
  }
}

/* ===== BUTTONS ===== */
.btn-inquiry,
.whatsapp-general-cta,
.whatsapp-product-cta,
.whatsapp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--black) !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 213, 0, 0.3);
}

.btn-inquiry:hover,
.whatsapp-general-cta:hover,
.whatsapp-product-cta:hover,
.whatsapp-cta-btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 213, 0, 0.5);
}

/* ===== FOOTER ===== */
footer#site-footer {
  background: var(--navy) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 2rem 2rem;
}

footer .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

footer h3 {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

footer p,
footer a,
footer address {
  color: var(--white);
  font-style: normal;
  line-height: 1.8;
  transition: var(--transition);
}

footer a:hover {
  color: var(--yellow);
  padding-left: 0.3rem;
}

.content-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  color: var(--white);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem 1.5rem;
  }
  footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== FLOATING SCROLL BUTTONS ===== */
.scroll-fab {
  position: fixed;
  right: 1.5rem;
  z-index: 100;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.scroll-fab-top {
  bottom: 7rem;
}

.scroll-fab-bottom {
  bottom: 3rem;
}

.scroll-fab:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-3px);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.primary-bg {
  background: var(--yellow) !important;
  color: var(--black) !important;
}

.corporate-dark-bg {
  background: var(--navy) !important;
}

.bg-secondary-navy {
  background: rgba(17,3,83,0.8) !important;
}

.text-accent {
  color: var(--yellow) !important;
}

.bg-accent {
  background: var(--yellow) !important;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper input,
.contact-form-wrapper textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: var(--transition);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.15);
}

.contact-form-wrapper label {
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}

/* ===== NEW CONTACT INFO GRID DESIGN ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-info-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.contact-info-title {
  font-weight: 700;
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-text {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.4;
}

.contact-info-text p {
  margin-bottom: 0.2rem;
}

.workshop-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 0.5rem;
}

.workshop-list li {
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 0.2rem;
  break-inside: avoid;
}

@media (max-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .workshop-list {
    columns: 1;
  }
}

/* ===== MISC ===== */
address {
  font-style: normal;
}

hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== CELEBRATION POPUP STYLES START ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.popup-modal {
  position: relative;
  max-width: min(1200px, 90vw);
  max-height: 90vh;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease;
  background: transparent;
}

.popup-modal img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 1.5rem;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.popup-close:hover {
  background: var(--yellow-dark);
  transform: scale(1.1) rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .popup-modal {
    width: 95%;
    max-width: 95%;
    border-radius: 1rem;
  }
  .popup-modal img {
    border-radius: 1rem;
    max-height: 80vh;
  }
  .popup-close {
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
/* ===== CELEBRATION POPUP STYLES END ===== */

/* Additional performance hints */
img {
  content-visibility: auto;
}