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

:root {
    --primary: #b89b5e; /* Premium Gold from Logo */
    --primary-dark: #8d7442;
    --accent: #333b47; /* Logo Navy */
    --bg-light: #fdfaf3; /* Logo Background Beige */
    --bg-white: #ffffff;
    --text-dark: #333b47;
    --text-muted: #5a5f6a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(184, 155, 94, 0.2);
    --card-shadow: 0 10px 40px rgba(184, 155, 94, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    box-shadow: none !important; /* Global Kill for elusive blue glow artifacts */
    outline: none !important;
}

html {
    box-shadow: none !important;
    outline: none !important;
}

h1, h2, h3, .logo span {
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
}

/* --- Layout Components --- */

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

section {
    padding: 50px 0; /* Tightest spacing for a modern look */
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--glass-border);
    padding: 0.3rem 0; /* Ultra-sleek vertical padding */
    transition: var(--transition);
}

.navbar-scrolled {
    background: rgba(253, 250, 243, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Very subtle shadow */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.logo img {
    height: 48px;
    width: auto;
    mix-blend-mode: multiply; /* Standard multiply with boosted contrast */
    filter: contrast(1.5) brightness(1.2);
}

.logo span {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active-link {
    color: var(--primary);
}

.active-link {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

#mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent);
    z-index: 1001;
}

.desktop-only { display: flex; }

/* Hide social icons row on desktop — only visible in mobile menu */
.nav-social-row { display: none; }

.btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 155, 94, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/ai-hero.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-2%, -2%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72); /* Solid overlay to eliminate blue-shift rendering artifacts */
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 600px;
    z-index: 3;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* --- Features Section --- */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(184, 155, 94, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* --- Product Section --- */
.product-showcase {
    background: var(--bg-white);
}

.product-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-row:nth-child(even) {
    flex-direction: row-reverse;
}

.product-img {
    flex: 0.8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    max-height: 450px;
    display: flex;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.product-info li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* --- Form Section --- */
.contact-container {
    background: var(--bg-white);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

/* --- Map Container --- */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    margin-top: 3rem;
    box-shadow: var(--card-shadow);
}

.map-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-overlay-link:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Always-visible directions badge */
.map-overlay-link::before {
    content: '📍 Click Map for Directions';
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 11;
    animation: subtlePulse 2.5s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Larger hint on hover */
.map-overlay-link::after {
    content: '🗺️ Get Directions to Laxmi Nettings';
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.map-overlay-link:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    border-top: 4px solid var(--primary);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

footer .logo span {
    color: var(--accent);
}

footer .logo img {
    filter: none; /* Removed filter to keep original logo colors */
}

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

footer a:hover {
    color: var(--primary);
}

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

/* --- Swiper Customization --- */
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.imageSwiper .swiper-slide, .videoSwiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Gallery hover effect — hovered image zooms, others fade */
.imageSwiper:has(.swiper-slide:hover) .swiper-slide {
    opacity: 0.3;
    transform: scale(0.95);
}

.imageSwiper .swiper-slide:hover {
    opacity: 1 !important;
    transform: scale(1.06) !important;
    z-index: 10;
    position: relative;
    cursor: pointer;
}

.feature-card video {
    background: #000;
    cursor: pointer;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FAQ --- */
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    border-radius: 12px;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    #mobile-menu-btn {
        display: block;
    }

    .logo span {
        font-size: 1.2rem;
    }

    nav {
        background: #fdfaf3;
        padding: 0.3rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -101%;
        width: 85%;
        height: 100vh;
        background: #fdfaf3;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem; /* Push links down from navbar */
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: none !important;
    }

    .nav-links.active {
        right: 0;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links li {
        margin: 0.5rem 0; /* Reduced gap between menu items */
    }

    /* Social icons row inside mobile menu */
    .nav-social-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.5rem;
        margin-top: 1.2rem;
        padding-top: 1.2rem;
        border-top: 1px solid var(--glass-border);
        justify-content: center;
    }

    .nav-social-icon {
        font-size: 1.8rem;
        color: var(--primary) !important;
        transition: var(--transition);
    }

    .nav-social-icon:hover {
        transform: scale(1.2);
    }

    .logo-box {
        margin-right: 0.5rem;
    }

    .logo img {
        height: 32px; /* Smaller logo for mobile */
    }

    .logo span {
        font-size: 1.1rem; /* Smaller text size for mobile */
        white-space: nowrap;
        padding-right: 1.5rem; /* Ensure space before menu button */
    }

    #mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    nav .container {
        padding: 0 1rem;
        justify-content: flex-start; /* Better control of spacing */
        gap: 0;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem; /* Slightly smaller padding */
        font-size: 0.9rem; /* Reduced font size */
    }

    .hero h1 {
        font-size: 1.6rem !important; /* Reduced for better fit */
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.85rem !important; /* Reduced */
        margin-bottom: 1rem;
        padding-right: 1rem;
    }

    .product-row { 
        display: flex; /* Enforce flex for ordering */
        flex-direction: column !important; 
        gap: 1rem !important;
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: var(--bg-white);
        border-radius: 20px;
    }
    
    .product-img {
        order: -1; /* Always Force Image to Top */
        flex: 1;
        max-height: 280px;
    }

    .product-info h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .product-info p {
        font-size: 0.95rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .contact-container { padding: 1.2rem; }
}

/* Hide floating buttons when mobile menu is open */
body.menu-open .call-float,
body.menu-open .whatsapp-float,
body.menu-open .map-float {
    display: none !important;
}

/* ========== Floating Call Button ========== */
.call-float, .whatsapp-float {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
}

.call-float:hover, .whatsapp-float:hover, 
.call-float:active, .whatsapp-float:active,
.call-float:focus, .whatsapp-float:focus {
    text-decoration: none !important;
    color: inherit !important;
}

.wa-btn, .call-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.call-btn {
    background: var(--primary);
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(184, 155, 94, 0.4) !important;
    animation: floatingPopup 4s ease-in-out infinite, callPulse 3s infinite;
}

.wa-btn {
    background: #25D366;
    font-size: 1.8rem;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    animation: floatingPopup 4s ease-in-out infinite 0.5s, waPulse 3s infinite;
}

.call-float {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 9999;
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
}

@keyframes floatingPopup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .wa-btn, .call-btn {
        width: 48px;
        height: 48px;
    }
    .call-btn { font-size: 1.2rem; }
    .wa-btn { font-size: 1.5rem; }
    
    .call-float { bottom: 80px; right: 15px; }
    .whatsapp-float { bottom: 20px; right: 15px; }
    
    .wa-tooltip, .call-tooltip { display: none !important; }
}

.whatsapp-float:hover .wa-btn {
    transform: scale(1.1);
}

.wa-tooltip, .call-tooltip {
    background: #ffffff;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
    white-space: nowrap;
    animation: slideInLeft 0.5s ease;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55) !important; }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0) !important; }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0) !important; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- Toast Notification Component --- */
.custom-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 99999;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    white-space: nowrap;
    width: max-content;
    max-width: 90vw;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-toast.show {
    top: 30px;
}

@media (max-width: 768px) {
    .custom-toast {
        padding: 10px 18px;
        font-size: 0.85rem;
        border-radius: 30px;
    }
}

.toast-success i {
    color: #25D366;
    font-size: 1.25rem;
}


.toast-error i {
    color: #ff3333;
    font-size: 1.25rem;
}

/* --- Floating Directions Button --- */
.map-float {
    position: fixed;
    bottom: 172px; /* Positioned above call */
    right: 28px;
    z-index: 9999;
}

.map-btn {
    width: 58px;
    height: 58px;
    background: #4285F4; /* Google Maps Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4) !important;
    animation: floatingPopup 4s ease-in-out infinite 1s;
    transition: transform 0.3s ease;
}

.map-float:hover .map-btn {
    transform: scale(1.1);
}

.map-tooltip {
    background: #ffffff;
    color: #1a1a1a !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
    white-space: nowrap;
    animation: slideInLeft 0.5s ease;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(66, 133, 244, 0.2);
}

@media (max-width: 768px) {
    .map-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .map-float {
        bottom: 140px;
        right: 15px;
    }
    .map-tooltip { display: none !important; }
}
