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

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

:root {
  --primary: #0A2E5C;
  --primary-light: #134074;
  --accent: #00B4D8;
  --accent-glow: rgba(0,180,216,0.3);
  --cta: #FF6B35;
  --cta-hover: #e55a28;
  --bg: #F8FAFB;
  --bg-dark: #0D1B2A;
  --text: #1B2A4A;
  --text-light: #5A6B8A;
  --white: #ffffff;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --shadow: 0 8px 32px rgba(10,46,92,0.12);
  --shadow-lg: 0 20px 60px rgba(10,46,92,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary { background: var(--cta); color: var(--white); border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,107,53,0.35); }
.btn-outline { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: #009bb8; border-color: #009bb8; transform: translateY(-2px); }

/* ===== Header / Navigation ===== */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 14px 0; transition: var(--transition); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(0,0,0,0.06); }
header.scrolled { padding: 8px 0; background: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links li a { color: rgba(27, 42, 74, 0.75); font-weight: 600; font-size: 0.95rem; padding: 8px 16px; border-radius: 8px; position: relative; transition: var(--transition); }
.nav-links li a::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.nav-links li a:hover { color: var(--primary); background: rgba(10, 46, 92, 0.05); }
.nav-links li a.active { color: var(--primary); background: rgba(10, 46, 92, 0.08); }
.nav-links li a:hover::after, .nav-links li a.active::after { transform: scaleX(1); }
.nav-cta { background: var(--cta) !important; color: var(--white) !important; border-radius: 50px !important; padding: 10px 24px !important; font-weight: 600 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--cta-hover) !important; transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; color: var(--primary); font-size: 1.6rem; cursor: pointer; padding: 8px; }

/* ===== Hero Section ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,46,92,0.85) 0%, rgba(10,46,92,0.65) 45%, rgba(13,27,42,0.15) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; color: #ECF2F9; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.2rem; color: #D5E2F1; margin-bottom: 2rem; line-height: 1.8; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-indicators { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 15; pointer-events: auto; }
.hero-indicators button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); background: transparent; cursor: pointer; padding: 0; transition: var(--transition); }
.hero-indicators button.active { background: var(--accent); border-color: var(--accent); width: 32px; border-radius: 6px; }
.hero-indicators button:hover { border-color: var(--white); }
.hero-stats { display: flex; gap: 40px; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stats .stat h3 { font-size: 2rem; font-weight: 800; color: var(--accent); }
.hero-stats .stat p { font-size: 0.85rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Section Padding & Titles ===== */
.section-padding { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 1.8rem; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.4rem; }
.section-title p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== Product Cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card-img { height: 260px; overflow: hidden; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card { display: flex; flex-direction: column; }
.product-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; min-height: 2.6rem; }
.product-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; flex: 1; }
.product-card-body .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.85rem; margin-top: auto; }

/* ===== Why Choose Us / Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.8rem; font-size: 1.5rem; color: var(--white); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.feature-card p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ===== CTA Banner ===== */
.cta-banner { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); text-align: center; padding: 50px 0; }
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.6rem; }
.cta-banner p { font-size: 1rem; opacity: 0.9; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-col h4 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* ===== WhatsApp Float ===== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 999; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ===== Page Banner (inner pages) ===== */
.page-banner { padding: 110px 0 30px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); text-align: center; }
.page-banner h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.3rem; }
.page-banner p { font-size: 1rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* ===== About Page ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.about-stat { text-align: center; padding: 20px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.about-stat h3 { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.about-stat p { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #e8ecf0; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; transition: var(--transition); background: var(--bg); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start; }
.contact-info-card .icon { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--white); flex-shrink: 0; }
.contact-info-card h4 { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { color: var(--text-light); font-size: 0.9rem; }
.contact-info-card a:hover { color: var(--accent); }

/* ===== Product Detail Page ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.product-gallery .main-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.product-gallery .main-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-gallery .thumb-row { display: flex; gap: 10px; }
.product-gallery .thumb-row img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 3px solid transparent; transition: var(--transition); }
.product-gallery .thumb-row img:hover, .product-gallery .thumb-row img.active { border-color: var(--accent); }
.product-info h1 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.product-info .tagline { color: var(--accent); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.product-info p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.8; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.spec-table th { background: var(--bg); font-weight: 700; color: var(--primary); width: 40%; }
.spec-table td { color: var(--text-light); }

/* ===== Gallery Page ===== */
.gallery-viewer { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-bottom: 3rem; }
.gallery-main-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-sidebar { display: flex; flex-direction: column; gap: 12px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; }
.gallery-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 3px solid transparent; transition: var(--transition); flex-shrink: 0; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-description { padding: 10px 0; }
.gallery-description h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.gallery-description p { color: var(--text-light); font-size: 0.9rem; }
.gallery-description .more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.gallery-description .more-link:hover { gap: 12px; }
@media (max-width: 900px) {
  .gallery-viewer { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: visible; }
  .gallery-thumb { width: 60px; height: 60px; }
  .gallery-description { padding: 0; }
}

/* ===== Product Nav Dropdown ===== */
.nav-links li.has-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 8px 30px rgba(0,0,0,0.1); min-width: 220px; padding: 8px 0; z-index: 1001; border: 1px solid rgba(0,0,0,0.06); }
.dropdown-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; background: transparent; } /* Transparent bridge */
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; color: var(--text) !important; font-size: 0.9rem; font-weight: 500; border-bottom: none !important; }
.dropdown-menu li a::after { display: none !important; }
.dropdown-menu li a:hover { background: var(--bg); color: var(--accent) !important; padding-left: 26px; }
.dropdown-section { padding: 6px 20px 2px; font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.dropdown-menu hr { border: none; border-top: 1px solid #eee; margin: 6px 0; }
@media (max-width: 768px) {
  .dropdown-menu { position: static; box-shadow: none; background: var(--bg); border-radius: 0; padding: 0; }
  .dropdown-menu::before { display: none; }
  .dropdown-menu li a { padding: 10px 30px; border-bottom: 1px solid #eee; }
  .has-dropdown:hover .dropdown-menu { display: none; }
  .has-dropdown.open .dropdown-menu { display: block; }
}

/* ===== Color Grid (reflective fire glass) ===== */
.color-grid-section { padding: 60px 0; background: #fff; }
.color-grid-title { text-align: center; font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.color-grid-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; }
.size-group { margin-bottom: 3rem; }
.size-group-label { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 1.2rem; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.color-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.color-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.color-cell-img { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 3px solid #eee; transition: var(--transition); }
.color-cell:hover .color-cell-img { border-color: var(--accent); transform: scale(1.05); }
.color-cell-img img { width: 100%; height: 100%; object-fit: cover; }
.color-cell-label { font-size: 0.75rem; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; }

/* ===== Fade-in Animation ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--primary); padding: 20px; gap: 0; }
  .nav-links.active { display: flex; }
  .nav-links li a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 90px 0 24px; }
  .page-banner h1 { font-size: 1.6rem; }
  .section-padding { padding: 36px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
}