/* ==========================================================================
   Global Reset & Color Variables
   ========================================================================== */
:root {
  --bg-dark: #0b1329;
  --bg-gradient: linear-gradient(135deg, #1e293b 0%, #1e293b 100%);  /* 1e293b  0033aa*/
  --accent-cyan: #38bdf8;
  --accent-hover: #0284c7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  text-align: left;
}

img, iframe {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  text-align: left;
}

/* Global Section Headings - Left Aligned */
.section h2 {
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  text-align: left;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-cyan);
  margin: 0.5rem 0 0 0;
  border-radius: 2px;
}

/* Glassmorphism Styling */
.glass-panel, 
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary-glass {
  background: var(--accent-cyan);
  color: #0b1329;
}

.btn-primary-glass:hover {
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--glass-border);
  width: 100%;
  text-align: center;
}

.btn-glass:hover {
  background: var(--accent-cyan);
  color: #0b1329;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  border-radius: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger, 
.hamburger::before, 
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.hamburger::before, 
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown Container */
.nav-item.dropdown {
  position: relative;
  display: inline-block;
}

/* Hidden Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  z-index: 1000;
}

.dropdown-item {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #0056b3;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* ==========================================================================
   Hero Section with Slider (Centered)
   ========================================================================== */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 500px;
  padding-top: 80px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 41, 0.25);
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  text-align: center;
}

.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.slide-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid var(--glass-border);
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: var(--accent-cyan);
  color: #0b1329;
}

.slider-btn.prev { left: 1.5rem; }
.slider-btn.next { right: 1.5rem; }

.dots-container {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: var(--accent-cyan);
}

/* ==========================================================================
   About Section (Left Aligned)
   ========================================================================== */
.about-card {
  padding: 3rem;
  text-align: left;
  max-width: 100%;
  margin: 0;
}

.about-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  text-align: left;
}

.about-glass-wrapper {
  padding: 3rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.slogan-box {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: left;
  border-left: 4px solid var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.slogan-box h3 {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  font-style: italic;
  text-align: left;
}

.slogan-box p {
  margin-bottom: 0;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.vision-box, 
.mission-box {
  padding: 20px;
  border-radius: 12px;
  text-align: left;
}

.vision-box h3, 
.mission-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent-cyan);
  text-align: left;
}

#about,
#about .about-card,
#about .about-content,
#about .slogan-box,
#about .vision-box,
#about .mission-box {
  text-align: left;
}

#about h2,
#about h3 {
  text-align: left;
  margin-left: 0;
}

/* ==========================================================================
   Product Section (Left-Aligned)
   ========================================================================== */
.products-section-intro {
  color: #81D4FA;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 100%;
  margin: 0 0 30px 0;
  text-align: left;
}

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

.product-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.4s ease;
}

.product-thumb:hover .thumb-img {
  transform: scale(1.08);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 41, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-thumb:hover .thumb-overlay {
  opacity: 1;
}

.product-card h3 {
  color: #ffffff;
  font-size: 1.2rem;
  text-align: left;
  width: 100%;
}

.product-features {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  width: 100%;
}

.product-features li {
  margin-bottom: 0.4rem;
}

.product-category {
  margin-bottom: 45px;
}

.category-title {
  text-align: left;
  font-size: 1.5rem;
  color: #0056b3;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 86, 179, 0.2);
}

.category-badge {
  display: inline-block;
  background: rgba(0, 86, 179, 0.15);
  color: #0056b3;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.category-tabs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

/* Accordion Styling */
.product-accordion {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent-cyan);
  text-align: left;
}

.accordion-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid #0056b3;
  border-bottom: 2px solid #0056b3;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 8px;
}

.product-accordion[open] .accordion-icon {
  transform: rotate(-135deg);
}

.category-intro {
  padding: 0 24px 15px 24px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

.product-accordion .product-grid {
  padding: 10px 20px 20px 20px;
}

.category-enquiry-wrapper {
  display: flex;
  justify-content: flex-start;
  padding: 10px 24px 25px 24px;
}

.category-enquiry-btn {
  display: inline-block;
  padding: 10px 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-enquiry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Services Section (Professional Card Layout)
   ========================================================================== */
.services-header-card {
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.services-title {
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.services-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

.capabilities-heading {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
  position: relative;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent-cyan);
}

/* Service Cards Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

.service-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.service-box h4 {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.service-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Mobile Optimizations */
@media screen and (max-width: 600px) {
  .services-header-card {
    padding: 1.75rem 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact Section & Grid Layout (Left Aligned)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info-card {
  padding: 2.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column; /* Flex layout to allow child elements to fill height */
}

.contact-info-card h3,
.contact-form-card h3 {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
  text-align: left;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
  text-align: left;
}

.info-icon {
  font-size: 1.35rem;
}

.info-item strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-item a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  flex-grow: 1; /* Automatically expands the map to match the right form's height */
  min-height: 350px; /* Ensures a good base height on smaller screens */
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  color: white;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
}

.form-status {
  text-align: left;
  font-weight: 500;
}

/* Footer (Centered) */
footer {
  text-align: center;
  padding: 2rem 0;
  border-radius: 0;
  margin-top: 3rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Scroll Fade In Animation
   ========================================================================== */
.section, 
.hero-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.reveal,
.hero-section.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HTML5 Dialog Lightbox
   ========================================================================== */
dialog.lightbox-dialog:not([open]) {
  display: none !important;
}

dialog.lightbox-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto !important;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  width: fit-content;
  height: fit-content;
  outline: none;
  overflow: visible;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

dialog.lightbox-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  padding: 1rem;
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .logo-img {
    height: 32px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 19, 41, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .nav-menu.open {
    max-height: 300px;
    opacity: 1;
    padding: 1.5rem;
  }

  .slide-content h1 {
    font-size: 2rem;
  }
}




/* Cookie Banner Positioning & Animation */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 420px;
  z-index: 10000;
  padding: 1.25rem;
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-content p {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-buttons .btn {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownCookie {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

@media screen and (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}