/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
    overflow-x: hidden;
}

/* Chameleon Color System */
:root {
    --chameleon-general: #0F172A;
    --chameleon-healthcare: #14B8A6;
    --chameleon-ayurveda: #15803D;
    --chameleon-realestate: #9F1239;
    --chameleon-logistics: #F97316;
    --chameleon-fashion: #D97706;
    --chameleon-makeup: #EC4899;
    --chameleon-tourism: #0EA5E9;
    --chameleon-artists: #18181B;
    --chameleon-techaudit: #6366F1;
    --current-chameleon: var(--chameleon-general);
}

/* Industry-Specific Chameleon Colors */
body.industry-healthcare { --current-chameleon: var(--chameleon-healthcare); }
body.industry-ayurveda { --current-chameleon: var(--chameleon-ayurveda); }
body.industry-realestate { --current-chameleon: var(--chameleon-realestate); }
body.industry-logistics { --current-chameleon: var(--chameleon-logistics); }
body.industry-fashion { --current-chameleon: var(--chameleon-fashion); }
body.industry-makeup { --current-chameleon: var(--chameleon-makeup); }
body.industry-tourism { --current-chameleon: var(--chameleon-tourism); }
body.industry-artists { --current-chameleon: var(--chameleon-artists); }
body.industry-techaudit { --current-chameleon: var(--chameleon-techaudit); }

/* Container */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar - SEO Strip */
.top-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #64748b;
    display: none; /* Hidden on mobile by default */
}

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

.verified-text {
    font-weight: 500;
}

.local-phone {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.local-phone:hover {
    color: #047857;
}

/* Main Header Bar */
.main-header-bar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px; /* Mobile first - 60px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
    font-size: 1.125rem;
    transition: color 0.3s;
}

.header-logo:hover {
    color: var(--current-chameleon);
}

.header-logo img {
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Inter', sans-serif;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.desktop-nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--current-chameleon);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--current-chameleon);
    transition: width 0.3s;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.book-audit-btn {
    background: var(--current-chameleon);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
    border: 1px solid var(--current-chameleon);
}

.book-audit-btn:hover {
    background: white;
    color: var(--current-chameleon);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.call-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s;
    border: 2px solid #10b981;
}

.call-action:hover {
    background: white;
    color: #10b981;
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    margin: 3px 0;
    border-radius: 1px;
    transition: all 0.3s;
}

/* Industry Slider */
.industry-slider {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    overflow: hidden;
}

/* Location Slider */
.location-slider {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    overflow: hidden;
}

.location-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
}

.location-pills::-webkit-scrollbar {
    display: none;
}

.slider-container {
    position: relative;
}

.industry-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
}

.industry-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
    scroll-snap-align: start;
    flex-shrink: 0;
    white-space: nowrap;
}

.pill:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.pill.active {
    background: var(--current-chameleon);
    color: white;
    border-color: var(--current-chameleon);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-drawer.active {
    opacity: 1;
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.close-drawer:hover {
    background: #f3f4f6;
    color: #374151;
}

.drawer-nav {
    padding: 20px;
    flex: 1;
}

.drawer-nav a {
    display: block;
    padding: 16px 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.drawer-nav a:hover {
    color: var(--current-chameleon);
    padding-left: 12px;
}

.drawer-cta {
    background: var(--current-chameleon) !important;
    color: white !important;
    padding: 16px !important;
    border-radius: 8px !important;
    text-align: center !important;
    margin-top: 20px !important;
    border: none !important;
    font-weight: 600 !important;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.local-office h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.local-office p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.local-office p:last-child {
    margin-bottom: 0;
}

/* Dynamic Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: white;
}

#industryPlayer {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.background-image-mobile {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: none;
}

.background-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 120px 20px 40px; /* Account for header */
}

.hero-left {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-left p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background: var(--current-chameleon);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    border: 2px solid var(--current-chameleon);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse-cta 3s infinite;
}

.cta-btn:hover {
    background: white;
    color: var(--current-chameleon);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Ayurveda Spa Premium Glow */
body.industry-ayurveda .cta-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(217, 119, 6, 0.5);
}

body.industry-ayurveda .cta-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(217, 119, 6, 0.7);
}

/* Tech Audit Cyber Glow */
body.industry-techaudit .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
}

body.industry-techaudit .cta-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.5);
}

body.industry-techaudit .cta-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.7);
}

/* Responsive Design - Desktop Enhancements */
@media (min-width: 768px) {
    .top-bar {
        display: block;
    }

    .main-header-bar {
        height: 80px; /* Desktop height */
    }

    .header-logo {
        font-size: 1.25rem;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .industry-pills,
    .location-pills {
        justify-content: center;
        padding: 0;
    }

    .pill {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .desktop-nav {
        display: none;
    }

    .book-audit-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 4px;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-right: 0;
    }

    .sticky-contact-footer {
        display: block;
    }

    .call-action {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .header-actions {
        gap: 8px;
    }

    .header-container {
        padding-right: 15px;
    }

    .header-logo {
        margin-left: -10px;
    }

    #industryPlayer {
        display: none;
    }

    .background-image-mobile {
        display: block;
    }

    .hero-container {
        flex-direction: column;
        padding: 80px 20px 40px; /* Mobile header height */
        text-align: center;
    }

    .hero-left {
        flex: none;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-left p {
        font-size: 1.125rem;
    }

    .hero-right {
        flex: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

}

@media (max-width: 479px) {
    .book-audit-btn {
        padding: 4px 8px;
        font-size: 0.625rem;
    }
}

/* Chameleon Animation & Industry Classes */
.chameleon-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Industry-specific body classes for chameleon effect */
.industry-general { --current-chameleon: var(--chameleon-general); }
.industry-healthcare { --current-chameleon: var(--chameleon-healthcare); }
.industry-ayurveda { --current-chameleon: var(--chameleon-ayurveda); }
.industry-realestate { --current-chameleon: var(--chameleon-realestate); }
.industry-logistics { --current-chameleon: var(--chameleon-logistics); }
.industry-fashion { --current-chameleon: var(--chameleon-fashion); }
.industry-makeup { --current-chameleon: var(--chameleon-makeup); }
.industry-tourism { --current-chameleon: var(--chameleon-tourism); }
.industry-artists { --current-chameleon: var(--chameleon-artists); }
.industry-techaudit { --current-chameleon: var(--chameleon-techaudit); }

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

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.exit-popup.show {
    display: flex;
}

.exit-popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.exit-popup h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.exit-popup form {
    margin-bottom: 20px;
}

.exit-popup input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.exit-popup input[type="email"]:focus {
    outline: none;
    border-color: var(--current-chameleon);
}

.exit-popup button[type="submit"] {
    background: var(--current-chameleon);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.exit-popup button[type="submit"]:hover {
    background: white;
    color: var(--current-chameleon);
    border: 2px solid var(--current-chameleon);
}

.exit-popup .close-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 15px;
    transition: color 0.3s;
}

.exit-popup .close-btn:hover {
    color: #374151;
}

/* Certificates Section */
.certificates-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 20px;
    color: white;
}

.certificates-header {
    text-align: center;
    margin-bottom: 60px;
}

.certificates-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certificates-header p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.certificate-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

@media (max-width: 768px) {
    .certificates-section {
        padding: 60px 16px;
    }
    
    .certificates-header h2 {
        font-size: 2rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .certificate-card {
        padding: 24px;
    }
    
    .certificate-image {
        max-width: 100%;
    }
}