/* =========================================
   1. CSS VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #0e2b48; /* Dark Navy Blue */
    --accent-color: #d6b996;  /* Beige/Gold */
    --bg-light: #f4f4f4;
    --text-dark: #333;
    --white: #ffffff;
    --transition: all 0.4s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevents side-scrolling */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: visible; 
    padding: 0 15px;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
    background: transparent; 
    box-shadow: none; 
}

/* Scrolled State */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo a { display: flex; align-items: center; text-decoration: none; }
.logo img {
    height: 75px; width: auto; display: block;
    background-color: #ffffff; padding: 5px 10px;
    border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

@media screen and (max-width: 480px) {
    .logo img { height: 55px; padding: 4px 8px; }
}

/* NAVBAR */
.navbar-center {
    background-color: var(--primary-color);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.nav-links { list-style: none; display: flex; margin: 0; padding: 0; align-items: center; }

.nav-pill {
    text-decoration: none; color: var(--white); font-weight: 500;
    padding: 8px 25px; display: flex; align-items: center;
    border-radius: 40px; transition: all 0.3s ease; font-size: 0.95rem; cursor: pointer;
}
.nav-pill:hover { color: var(--accent-color); }
.nav-pill.active { background-color: var(--white); color: var(--primary-color); font-weight: 700; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* HEADER RIGHT */
.header-right { display: flex; align-items: center; gap: 15px; }

.btn-outline {
    text-decoration: none; color: var(--white); border: 2px solid var(--white); 
    padding: 8px 20px; border-radius: 50px; font-weight: 600;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 10px;
}
.btn-outline:hover { background: var(--white); color: var(--primary-color); }

/* Pulse Animation */
.btn-pulse { animation: btnHeartbeat 2s infinite; }
@keyframes btnHeartbeat {
    0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); }
}

header.scrolled .btn-outline { color: var(--primary-color); border-color: var(--primary-color); }
header.scrolled .btn-outline:hover { background: var(--primary-color); color: var(--white); }

.menu-toggle { display: none; color: var(--white); font-size: 1.8rem; cursor: pointer; }
header.scrolled .menu-toggle { color: var(--primary-color); }

/* =========================================
   3. DROPDOWN MENU (Desktop)
   ========================================= */
.dropdown { position: relative; display: block; height: 100%; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background-color: #ffffff; min-width: 280px; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 8px; padding: 10px 0; list-style: none; z-index: 99999; margin-top: 15px;
}
/* Invisible bridge to prevent closing */
.dropdown-menu::before {
    content: ""; display: block; position: absolute; top: -20px; left: 0;
    width: 100%; height: 20px; background: transparent; z-index: 1;
}
.dropdown:hover .dropdown-menu { display: block; animation: slideUp 0.3s ease forwards; }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

.dropdown-menu li { margin: 0; width: 100%; }
.dropdown-menu a {
    display: block; padding: 12px 20px; color: #0e2b48; text-decoration: none;
    font-size: 0.95rem; border-bottom: 1px solid #f4f4f4; transition: all 0.2s ease;
    text-align: left; white-space: nowrap;
}
.dropdown-menu a:hover { background-color: #fcfcfc; color: #d6b996; padding-left: 25px; }

/* =========================================
   4. HERO & PAGE HEADER
   ========================================= */
/* Home Page Hero (Video) */
.hero {
    width: 100%; height: 100vh; position: relative; display: flex; align-items: center;
    justify-content: center; overflow: hidden; color: var(--white); text-align: center;
}
.back-video {
    position: absolute; right: 0; bottom: 0; min-width: 100%; min-height: 100%;
    width: auto; height: auto; z-index: -2; object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14, 43, 72, 0.75); z-index: -1;
}
.hero-content { position: relative; z-index: 1; padding-top: 60px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin: 0 auto 30px auto; }

/* Other Pages Header (Image) */
.page-header {
    background: linear-gradient(rgba(14, 43, 72, 0.9), rgba(14, 43, 72, 0.9)), url('https://images.unsplash.com/photo-1595311019672-03f446055d04?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
    height: 45vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; color: var(--white); padding-top: 80px; 
}
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }

/* =========================================
   5. PRODUCTS SECTION
   ========================================= */
.products { padding: 80px 0; background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; color: var(--primary-color); font-size: 2.2rem; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent-color); margin: 15px auto; border-radius: 2px; }

.product-grid {
    display: grid;
    /* Responsive Grid: Cards auto-fit based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white); border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px; text-align: center; transition: var(--transition);
    position: relative; overflow: hidden; transform-style: preserve-3d; cursor: pointer;
}
.product-card::before {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 5px;
    background: var(--accent-color); transform: scaleX(0); transition: transform 0.4s ease;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover { box-shadow: 0 25px 50px rgba(0,0,0,0.2); }

.icon-placeholder { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; transition: transform 0.4s ease; transform: translateZ(20px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; transform: translateZ(20px); }
.product-card:hover .icon-placeholder, .product-card:hover img { transform: scale(1.1) translateZ(20px); }
.product-card h3 { margin-bottom: 10px; color: var(--primary-color); font-size: 1.4rem; transform: translateZ(20px); }
.product-card p { transform: translateZ(20px); }

/* =========================================
   6. HOW WE WORK
   ========================================= */
.how-we-work { padding: 80px 0; background-color: var(--white); text-align: center; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.work-item { display: flex; flex-direction: column; align-items: center; padding: 20px; transition: var(--transition); }
.hexagon {
    width: 100px; height: 110px; background-color: var(--primary-color); display: flex; align-items: center; justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); margin-bottom: 25px; transition: all 0.4s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hexagon i { font-size: 2.5rem; color: var(--white); }
.work-item:hover .hexagon { background-color: var(--accent-color); transform: translateY(-10px) rotate(360deg); }
.work-item h3 { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; }
.work-item:hover h3 { color: var(--accent-color); }
.work-item p { color: #555; font-size: 1rem; line-height: 1.6; max-width: 350px; }

/* =========================================
   7. TESTIMONIALS (AUTO SCROLL)
   ========================================= */
.testimonials { padding: 80px 0; background-color: #f8f9fa; overflow: hidden; }
.marquee { width: 100%; overflow: hidden; position: relative; }
.marquee-content { display: flex; width: max-content; gap: 30px; animation: scrollLeft 30s linear infinite; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-content:hover { animation-play-state: paused; }

.testimonial-card {
    background: var(--white); padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    width: 400px; flex-shrink: 0; border-left: 5px solid var(--accent-color);
    display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-card p { font-style: italic; color: #555; font-size: 1rem; margin-bottom: 20px; }
.quote-icon { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 15px; }
.client-info h4 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 2px; }
.client-info span { font-size: 0.85rem; color: #888; }

/* =========================================
   8. CONTACT & FOOTER
   ========================================= */
.contact { padding: 80px 0; }
.contact-container { display: flex; flex-wrap: wrap; gap: 30px; }
.contact-card { flex: 1; min-width: 300px; background: var(--primary-color); color: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.location-card { background: #1a3c5e; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 25px; font-size: 1.1rem; }
.contact-icon { font-size: 1.5rem; color: var(--accent-color); margin-right: 15px; margin-top: 4px; }
.contact-link { color: var(--white); text-decoration: none; transition: color 0.3s; }
.contact-link:hover { color: var(--accent-color); }
.map-btn { background: var(--white); color: var(--primary-color) !important; margin-top: 10px; }

/* Footer */
footer { background-color: #05121e; color: #b0b0b0; padding-top: 70px; font-size: 0.95rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 50px; }
.footer-col h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background-color: var(--accent-color); }
.footer-links li { border-bottom: 1px dashed rgba(255, 255, 255, 0.1); padding: 12px 0; transition: var(--transition); }
.footer-links a { color: #b0b0b0; text-decoration: none; transition: var(--transition); display: block; }
.footer-links a:hover, .footer-links li:hover { color: var(--accent-color); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.footer-contact-item a { color: #b0b0b0; text-decoration: none; transition: 0.3s; }
.footer-contact-item a:hover { color: var(--accent-color); }
.accent-text { color: var(--accent-color); margin-top: 5px; }
.connect-with-us h4 { color: var(--white); margin: 25px 0 15px 0; font-size: 1rem; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--white); text-decoration: none; transition: var(--transition); }
.social-icons a:hover { background-color: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); }
.footer-bottom { background-color: #020b12; text-align: center; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.85rem; }

/* Buttons */
.btn { display: inline-block; background: var(--accent-color); color: var(--primary-color) !important; padding: 12px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: var(--transition); border: none; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn:hover { background: #e5cdad; transform: translateY(-3px); }

/* =========================================
   9. WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-btn {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10000;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    transition: all 0.3s ease; animation: whatsapp-pulse 2s infinite;
}
.whatsapp-btn:hover { background-color: #128C7E; transform: scale(1.1); box-shadow: 0 8px 15px rgba(0,0,0,0.4); }
@keyframes whatsapp-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* =========================================
   10. PAGE SPECIFIC STYLES
   ========================================= */
/* Contact Page */
.contact-page-section { padding-top: 80px; padding-bottom: 80px; background-color: var(--white); }
.contact-intro { text-align: center; margin: 60px 0 40px 0; }
.pill-badge { display: inline-block; background-color: #e8f5e9; color: #2e7d32; padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-bottom: 15px; border: 1px solid #c8e6c9; }
.contact-intro h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 50px; margin-bottom: 80px; }
.contact-form-area { flex: 2; background: #fff; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 8px; color: #555; font-size: 0.95rem; }
.contact-form-area input, .contact-form-area textarea { padding: 15px 20px; border-radius: 50px; border: 1px solid #ddd; font-size: 1rem; outline: none; transition: 0.3s; background-color: #fcfcfc; }
.contact-form-area textarea { border-radius: 20px; resize: none; }
.contact-form-area input:focus, .contact-form-area textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 8px rgba(14, 43, 72, 0.1); }
.btn-submit { width: 100%; margin-top: 20px; font-size: 1.1rem; }
.contact-info-area { flex: 1; background-color: #f9f9f9; padding: 30px; border-radius: 15px; height: fit-content; }
.contact-info-area h3 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 25px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.info-item i { font-size: 1.2rem; color: var(--primary-color); margin-right: 15px; margin-top: 5px; }
.info-item p { color: #666; line-height: 1.5; margin: 0; }
.map-preview iframe { border-radius: 10px; margin-top: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Product Details Page */
.product-details-section { padding: 80px 0; background-color: var(--white); }
.details-wrapper { display: flex; flex-wrap: wrap; gap: 50px; align-items: flex-start; }
.product-image-col { flex: 1; min-width: 300px; text-align: center; }
.main-product-img { width: 100%; max-width: 450px; height: auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 5px solid #fff; background-color: #eee; object-fit: cover; display: inline-block; }
.product-info-col { flex: 1; min-width: 300px; }
.product-info-col h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.product-desc { color: #555; font-size: 1.1rem; margin-bottom: 25px; line-height: 1.7; }
.feature-list { list-style: none; margin-bottom: 30px; }
.feature-list li { margin-bottom: 10px; font-size: 1.05rem; color: #333; display: flex; align-items: center; }
.feature-list li i { color: var(--accent-color); margin-right: 10px; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; background: #f9f9f9; border-radius: 8px; overflow: hidden; }
.specs-table td { padding: 12px 15px; border-bottom: 1px solid #eee; color: #444; }
.specs-table tr:last-child td { border-bottom: none; }
.action-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.product-card { cursor: pointer; }

/* =========================================
   11. MOBILE RESPONSIVENESS (THE MASTER FIX)
   ========================================= */
@media screen and (max-width: 900px) {
    /* Navbar Positioning */
    .navbar-center { position: absolute; top: 80px; right: 0; width: 100%; background: transparent; box-shadow: none; pointer-events: none; }
    .nav-links { flex-direction: column; background-color: var(--primary-color); width: 90%; margin: auto; border-radius: 15px; padding: 20px; align-items: center; opacity: 0; transform: translateY(-20px); transition: all 0.3s ease; pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
    .nav-links.active { opacity: 1; transform: translateY(0); }
    .nav-pill { width: 100%; justify-content: center; margin-bottom: 5px; background: transparent; }

    /* Dropdown Fix for Mobile */
    .dropdown-menu { position: relative; width: 100%; min-width: auto; left: 0; top: 0; transform: none !important; background-color: transparent; box-shadow: none; margin-top: 0; padding: 0; display: none; border-radius: 0; }
    .dropdown-menu::before { display: none; }
    .dropdown:hover .dropdown-menu { display: block; animation: none; }
    .dropdown-menu a { color: var(--white); text-align: center; border: none; white-space: normal; padding: 10px 0; font-size: 0.95rem; }
    .dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); padding-left: 0; color: var(--accent-color); }

    .menu-toggle { display: block; }
    .btn-outline { display: none; }
    .hero h1, .page-header h1 { font-size: 2.2rem; }
    .hero p, .page-header p { font-size: 1rem; padding: 0 15px; }
    
    /* Reviews Card Size */
    .testimonial-card { width: 300px; }
    
    /* Stack Contact Form & Product Details Vertically */
    .contact-wrapper, .details-wrapper { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
    .form-group { margin-bottom: 20px; }
    
    /* WhatsApp Button Size */
    .whatsapp-btn { width: 50px; height: 50px; font-size: 28px; bottom: 20px; right: 20px; }
}