/* 
    TrueCycle India - Modern Industrial Eco-Tech Design System
    Vanilla CSS 
    Force Update: 2026-04-19 11:20
*/

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

:root {
    /* Emerald Tech Color Palette */
    --primary: #10B981; /* Emerald 500 */
    --primary-hover: #059669; /* Emerald 600 */
    --primary-glow: rgba(16, 185, 129, 0.2);
    --secondary: #06B6D4; /* Cyan 500 */
    --accent: #34D399; /* Emerald 400 */
    
    /* Backgrounds & Glass (Light Mode) */
    --bg-main: #F9FAFB;
    --bg-card: #FFFFFF;
    --bg-darker: #F3F4F6;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(0, 0, 0, 0.05);
    
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-white: #FFFFFF; /* Use for dark backgrounds only */
    --text-heading: #111827; /* Dark Slate for headers in Lite mode */
    
    --header-bg: rgba(249, 250, 251, 0.8);
    
    /* Layout & Soft Metrics */
    --header-height: 80px;
    --section-padding: 100px 8%;
    --radius: 16px; /* Modern Roundedness */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --mono-font: 'JetBrains Mono', 'Courier New', monospace;
}

[data-theme="dark"] {
    --bg-main: #0F172A; /* Slate 900 */
    --bg-card: #1E293B; /* Slate 800 */
    --bg-darker: #111827; /* Slate 950 */
    --bg-glass: rgba(15, 23, 42, 0.7);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --primary: #10B981;
    --primary-glow: rgba(16, 185, 129, 0.1);
    
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    --text-heading: #FFFFFF; /* White for headers in Dark mode */
    
    --header-bg: rgba(15, 23, 42, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 10000; /* Extremely high to ensure it's always on top */
    pointer-events: auto; /* Ensure header captures clicks */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--text-main);
}

.theme-toggle:hover {
    background: var(--border-glass);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #FFF;
    font-family: var(--mono-font);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 991px) {
    header nav, .desktop-only { display: none; }
    .mobile-only { display: block; }
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    z-index: 10001; /* Above header background */
}

nav ul li a:hover {
    color: var(--primary);
}

.cta-btn {
    padding: 14px 32px;
    background: var(--primary);
    color: #FFF;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.cta-btn:hover::after {
    left: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--section-padding);
    padding-top: calc(var(--header-height) + 40px);
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero-decorative-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.15;
    animation: blob-float 10s infinite alternate ease-in-out;
}

[data-theme="dark"] .hero-decorative-blob {
    opacity: 0.1;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: 10%;
    animation-delay: -5s;
}

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

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-glow);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-outline {
    padding: 12px 28px;
    background: transparent;
    color: var(--text-heading);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    font-weight: 700;
    font-family: var(--mono-font);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: var(--text-white);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10002;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--text-heading);
    transition: var(--transition);
}

@media (max-width: 991px) {
    .menu-toggle { display: flex; }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 10005;
    padding: 40px 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.2);
    display: block !important;
}

#nav-drawer-main.active {
    transform: translateX(-320px);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-menu-links {
    display: block !important;
    margin-top: 20px;
    visibility: visible !important;
}

.drawer-menu-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    visibility: visible !important;
    opacity: 1 !important;
}

.drawer-menu-links ul li {
    display: block !important;
    visibility: visible !important;
}

.drawer-menu-links ul li a {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading) !important;
    transition: var(--transition);
    display: block;
    padding: 10px 0;
    visibility: visible !important;
}

.drawer-menu-links ul li a.primary-link {
    color: var(--primary) !important;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

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

/* Section Styling */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 50px 40px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-glow);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.advantage-list {
    list-style: none;
}

.advantage-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.advantage-list li::before {
    content: "●";
    color: var(--primary);
    font-size: 0.6rem;
    padding-top: 4px;
}

/* Recovery Rates Section */
.recovery-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.recovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.recovery-item {
    padding: 20px;
}

.recovery-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    font-family: var(--mono-font);
    letter-spacing: -2px;
}

.recovery-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing / Requirements */
.details-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.requirements-box, .pricing-box {
    flex: 1;
    min-width: 350px;
    background: var(--bg-darker);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: var(--radius);
}

.pricing-box {
    border-left: 4px solid var(--primary);
}

.pricing-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 20px 0;
    font-family: var(--mono-font);
}

/* New Component Styles */
.highlight-box {
    border-radius: 8px;
    margin-top: 15px;
}

.premium-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-card {
    border-style: dashed;
}

.tech-card:hover {
    border-style: solid;
}

/* Section specific backgrounds */
#policies {
    position: relative;
    overflow: hidden;
}

#policies::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(244, 81, 30, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

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

.footer-links ul li a:hover {
    color: var(--text-white);
}

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

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 6%;
    }
    
    header {
        height: 70px;
        padding: 0 5%;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        text-align: center;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-card {
        width: 100%;
        padding: 35px 25px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Single column force */
    }

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

    .details-flex > div {
        min-width: 100%;
        padding: 25px;
    }

    .pricing-value {
        font-size: 2.2rem;
    }

    .recovery-number {
        font-size: 2.5rem;
    }
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

[data-reveal="slide-right"] {
    transform: translateX(100px);
}

[data-reveal="slide-left"] {
    transform: translateX(-100px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Delay Utilities */
[data-reveal][data-delay="100"] { transition-delay: 0.1s; }
[data-reveal][data-delay="200"] { transition-delay: 0.2s; }
[data-reveal][data-delay="300"] { transition-delay: 0.3s; }
[data-reveal][data-delay="400"] { transition-delay: 0.4s; }

/* Micro-interactions */
.btn-inline:hover {
    color: var(--secondary) !important;
    padding-left: 5px;
    transition: var(--transition);
}

/* Glassmorphism Refinements */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

/* Map Mapping UI */
.map-wrapper {
    position: relative;
    width: 100%;
}

.map-search-bar {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.map-search-input-container {
    flex: 1;
    position: relative;
}

.map-search-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: var(--radius);
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-hover);
    display: none;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-darker);
    color: var(--primary);
}

.locate-me-btn {
    position: absolute;
    bottom: 25px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
}

.locate-me-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

