/* =========================================
   VFLOW GLOBAL - Glassmorphism Stylesheet
   ========================================= */

:root {
  --bg-color: #050505;
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  
  --accent-color: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.05); /* Translucent layer */
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-main: 'Outfit', sans-serif;
  --transition: transform 0.2s ease-out, opacity 0.2s ease, background-color 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

/* Custom UI Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Navbar stays on top (defined below via .navbar) */

/* Prevent scrollbar from overlapping header */
html, body {
  overflow-y: auto;
}

/* Ambient Background Shapes for Glass visibility! */
.ambient-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1; /* behind everything */
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.15); /* White/Silver glow */
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: rgba(100, 100, 100, 0.15); /* Grey glow */
  bottom: -200px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.9); }
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.8rem; }
h4 { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.5rem; }
p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; }
.center-text { text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

/* -------------------------------------
   THE CORE GLASSMORPHISM UTILITY
   ------------------------------------- */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); 
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-top: none;
  border-left: none;
  border-right: none;
  /* Glass added via utility class */
  transition: padding 0.3s ease, background 0.3s ease;
  will-change: padding, background;
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(5, 5, 5, 0.8) !important;
}

.brand-logo { height: 60px; width: auto; max-width: 250px; object-fit: contain; }

.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.nav-links a:hover { color: var(--accent-muted); }

.search-container {
  display: flex;
  align-items: center;
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  transition: var(--transition);
}
.search-container:hover { background: rgba(255,255,255,0.1); }
.search-input { background: transparent; border: none; color: var(--text-main); outline: none; font-size: 0.9rem; font-family: inherit; width: 140px; transition: width 0.3s ease; }
.search-input:focus { width: 180px; }
.search-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.search-btn { background: transparent; border: none; color: var(--text-main); cursor: pointer; }

.mobile-menu { display: none; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn-primary {
  background: var(--text-main);
  color: var(--bg-color);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  border: 1px solid var(--text-main);
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--text-main); }

.btn-secondary {
  background: rgba(255,255,255,0.05); /* Slight glass */
  backdrop-filter: blur(4px);
  color: var(--text-main);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--text-main); background: rgba(255,255,255,0.1); }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 150px 5% 0;
  position: relative;
  text-align: center;
}

.hero-card {
  padding: 4rem 3rem;
  border-radius: 24px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease-out forwards;
}

.hero-card p {
  text-align: center;
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.05);
}

.cta-group { display: flex; gap: 1rem; margin-top: 2rem; }

.scroll-indicator { position: absolute; bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }
.mouse { width: 22px; height: 35px; border: 1.5px solid var(--text-muted); border-radius: 12px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 2px; height: 5px; background: var(--text-muted); border-radius: 2px; animation: scrollWrap 1.5s infinite; }

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 3rem 5%;
  border-radius: 16px;
  padding: 1.5rem 1rem;
}

.stat-item { padding: 1rem; text-align: center; }
.stat-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-main); letter-spacing: 0.5px; }
.stat-item p { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* Services */
.services { padding: 8rem 5%; }
.section-header { margin-bottom: 4rem; }

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

.service-card {
  padding: 3rem 2.5rem;
  border-radius: 20px;
  transition: var(--transition);
  /* Glass via class */
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}

.service-card .icon { font-size: 2.5rem; margin-bottom: 1.5rem; opacity: 0.9; }
.read-more { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); margin-top: 1rem; display: inline-block; }

/* CTA Section */
.cta-section { padding: 4rem 5% 8rem; }

.cta-box {
  padding: 5rem 4rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-box h2 { color: var(--text-main); margin-bottom: 1rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 3rem; }

.quick-contact { display: flex; width: 100%; max-width: 500px; gap: 0.5rem; }

/* Certification Carousel */
.cert-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.cert-carousel {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollMarquee 15s linear infinite;
}
.cert-carousel:hover {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1.5rem)); }
}
.cert-badge {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-main);
  transition: var(--transition);
}
.cert-badge:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
}
.cert-badge i {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.glass-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 1rem;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(10px);
}
.glass-input::placeholder { color: var(--text-muted); }
.glass-input:focus { border-color: var(--text-main); background: rgba(0,0,0,0.5); }

/* Footer layout explicitly 3 columns */
.glass-effect-footer {
  padding: 5rem 5% 2rem;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}

.footer-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-bottom: 4rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-main); }

.contact-details p, .contact-details a { 
  display: flex; 
  align-items: center; 
  gap: 0.8rem; 
  margin-bottom: 0.6rem; 
  color: var(--text-muted); 
  font-size: 1.125rem;
}
.contact-details a { margin-bottom: 0.6rem; }
.contact-details a:hover { color: var(--text-main); }
.contact-details i { width: 20px; text-align: center; }

/* Connect / Social Icons */
.social-icons { display: flex; gap: 1.2rem; }
.social-icons a {
  display: flex; justify-content: center; align-items: center;
  width: 45px; height: 45px; border-radius: 50%;
  background: rgba(255,255,255,0.05); /* Glass icon bg */
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
  font-size: 1.2rem; color: var(--text-main); transition: var(--transition);
}
.social-icons a:hover { background: var(--text-main); color: var(--bg-color); transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; align-items: center; font-size: 0.9rem; text-align: center; color: var(--text-muted); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollWrap { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 10px); opacity: 0; } }

/* Responsive */
/* Product Tile Layout & Transitions */
.product-card {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  height: 480px; 
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-sku {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.product-short {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Hover Details Expansion Effect */
.product-extra {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0);
}

.product-card:hover .product-extra {
  height: 60%; /* Rises up to cover the bottom 60% of the card */
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.product-extra h4 { 
  margin-bottom: 0.8rem; 
  font-size: 1.15rem; 
  color: var(--text-main); 
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.product-extra p { 
  font-size: 0.95rem; 
  line-height: 1.6; 
  color: #ddd; 
}

/* Fix mobile scaling for sidebar and layout */
@media (max-width: 1000px) {
  .products-layout {
    flex-direction: column;
  }
  .filter-sidebar {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    margin-bottom: 2rem;
  }
}

/* ========================================================= */
/* Google Translate Widget Glassmorphism Restyling Hacks */
/* ========================================================= */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
#google_translate_element { display: flex; align-items: center; }
#google_translate_element .goog-te-gadget { color: transparent !important; font-size: 0; }
#google_translate_element .goog-te-gadget .goog-logo-link { display: none !important; }

.goog-te-combo {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  padding: 0.6rem 1rem !important;
  border-radius: 20px !important;
  outline: none !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  margin: 0 !important;
}
.goog-te-combo:hover { background: rgba(255, 255, 255, 0.1) !important; }
.goog-te-combo option { background: #111 !important; color: #fff !important; }

/* Modal Styles */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); /* Deep dark overlay */
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
  background: rgba(10,10,10,0.9); border: 1px solid var(--glass-border);
  padding: 3rem 2.5rem; border-radius: 24px;
  width: 90%; max-width: 480px; position: relative;
  transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.close-modal {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 2.2rem; color: var(--text-muted); cursor: pointer; transition: 0.3s;
  line-height: 1;
}
.close-modal:hover { color: var(--accent-color); transform: scale(1.1); }

/* Skeleton Loader */
.skeleton-card {
    height: 420px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Product Hover Carousel */
.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.product-card {
  overflow: hidden;
}

/* Detail Gallery */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 500px;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.thumbnail-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  flex-shrink: 0;
  transition: 0.3s;
}

.thumb-item.active {
  border-color: var(--accent-color);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text-First Priority Loading Effects */
.delayed-load {
  transition: opacity 0.6s ease-in-out;
}

.shimmer {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.5s infinite linear;
}

@keyframes shimmerAnim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  .brand-logo { max-width: 130px !important; height: auto !important; }
  .navbar { padding: 0.8rem 5% !important; }
  .enquiry-grid { grid-template-columns: 1fr !important; }
  .nav-links, .search-container { display: none; }
  .mobile-menu { display: block; }
  .cta-group { flex-direction: column; }
  .quick-contact { flex-direction: column; }
  h1 { font-size: 2.2rem; }
  .hero-card { padding: 3rem 2rem; }
  .footer-content { grid-template-columns: 1fr; }
  .ambient-shape { opacity: 0.2; }
}

/* =========================================
   Luxury Filter Tiles (Industrial Dark UI)
   ========================================= */
.filter-tile {
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #888;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 1rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.filter-tile i {
  font-size: 1.1rem;
  color: #555;
  transition: color 0.4s ease;
}

/* Hover State */
.filter-tile:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
  transform: translateX(4px);
}

.filter-tile:hover i {
  color: #aaa;
}

/* Active State */
.filter-tile.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 3px solid var(--accent-color);
  color: #fff;
  font-weight: 500;
  transform: translateX(4px);
}

.filter-tile.active i {
  color: var(--accent-color);
}

/* ==== Mobile Drawer Styles ==== */
.drawer {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: var(--bg-dark);
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 2rem 1rem;
}
.drawer.active { left: 0; }
.drawer ul { list-style: none; padding: 0; margin: 0; }
.drawer li { margin: 1rem 0; }
.drawer a { color: var(--text-main); text-decoration: none; font-size: 1.2rem; }
.close-drawer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}
.drawer-overlay.active { display: block; }
@media (max-width: 768px) {
  /* Stack filter sidebar above product grid */
  .products-main .container {
    grid-template-columns: 1fr !important;
  }
  .sidebar-filters {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
  }
  .sidebar-filters > div {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-right: 0;
  }
  .filter-tile {
    flex: 0 0 auto;
  }
}
/* =========================================
   Luxury Product Detail Responsiveness
   ========================================= */

#detail-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding: 3rem;
  transition: all 0.4s ease;
}

@media (max-width: 900px) {
  #detail-card-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem 1.5rem !important;
    border-radius: 0 !important; /* Edge to edge on mobile */
    margin: 0 !important;
    width: 100% !important;
    border: none !important;
    backdrop-filter: none !important; /* Simplify for performance */
  }

  .detail-gallery {
    margin-bottom: 0 !important;
  }

  #main-product-img {
    aspect-ratio: 1/1 !important; /* Squares are better on mobile */
    border-radius: 12px !important;
  }

  h1 {
    font-size: 2rem !important;
    margin-top: 1rem !important;
  }

  .thumbnail-grid {
    justify-content: center !important;
    gap: 0.8rem !important;
  }

  /* Form inputs stacking */
  #detail-card-wrapper .glass-input {
    width: 100% !important;
  }
  
  .glass-input-row {
    grid-template-columns: 1fr !important;
  }
}
