:root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-card: #ffffff;
    --primary: #022c22; /* Deep Forest Green */
    --primary-light: #064e3b;
    --primary-glow: rgba(16, 185, 129, 0.08); /* Emerald Glow */
    --accent: #10b981; /* Light Emerald */
    --success: #059669;
    --text-main: #064e3b; /* Match primary for consistency */
    --text-muted: #4b5563;
    --border: #e2e8f0;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px -10px rgba(16, 185, 129, 0.1);
    --contact-bg: #f8fafc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 2px 2px, var(--border) 1px, transparent 0);
    background-size: 40px 40px;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    border-bottom: 2px solid var(--primary);
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: var(--primary);
    line-height: 1;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.accent {
    color: var(--accent);
    font-weight: 800;
}

/* Decorative Orbs */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: -150px;
    right: -150px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--primary-glow);
    bottom: 5%;
    left: -100px;
    opacity: 0.15;
    animation-delay: -7s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 60px) scale(1.15); }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--success);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Services */
.services {
    padding: 10rem 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 62, 145, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 62, 145, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-category {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 32px;
    padding: 3.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.bento-large {
    grid-column: span 3;
    grid-row: span 3;
    border-bottom: 4px solid var(--primary);
}

.bento-medium {
    grid-column: span 3;
    grid-row: span 3;
}

.bento-full {
    grid-column: span 6;
    background: var(--primary) !important;
    color: white;
    border: none;
}

.bento-full h3, .bento-full .icon, .bento-full .service-item span {
    color: white !important;
}

.bento-full .badge-sm {
    color: var(--primary) !important;
    background: white;
}

.bento-full .service-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-category:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 80px -15px rgba(0, 62, 145, 0.15);
    border-color: var(--primary);
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

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

.service-category:hover::before {
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.bento-full .category-header::after {
    background: var(--accent);
}

.badge-sm {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    background: white;
    border: 1px solid var(--primary-glow);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.icon {
    background: var(--primary);
    color: white !important;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    box-shadow: 0 8px 16px rgba(0, 62, 145, 0.2);
}

.icon svg {
    width: 32px;
    height: 32px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.service-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 62, 145, 0.08);
}

.bento-full .service-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.bento-full .service-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.service-item span {
    font-weight: 600;
    color: var(--text-main);
}

.more-info {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.service-item:hover .more-info {
    color: white;
    opacity: 1;
}

.service-item .arrow {
    font-weight: 700;
}

/* Trust Bar */
.trust-bar {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
}

.trust-item {
    text-align: center;
}

.rating {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #facc15;
}

.stat {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

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

/* Modern Contact Section (Anti-Blue) */
.contact {
    background: var(--contact-bg);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.accent-emerald {
    color: var(--contact-accent);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.info-item-new {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-emerald {
    width: 56px;
    height: 56px;
    background: var(--contact-accent-glow);
    color: var(--contact-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-new strong {
    display: block;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-item-new p, .info-item-new a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.info-item-new a:hover {
    color: var(--contact-accent);
}


.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    padding: 6rem 0 4rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Cookie Banner - Fixed & Premium */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    display: none; /* Hidden by default to prevent flicker */
    flex-direction: column;
    gap: 1.2rem;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-left: 5px solid var(--accent); /* Updated from --primary to --accent to match Green theme */
}

/* Added visibility class for JS injection */
.cookie-banner.visible {
    display: flex !important;
}

.cookie-banner.hidden {
    display: none !important;
}

.cookie-banner .btn-mini {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
}

.cookie-banner .btn-mini:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 62, 145, 0.2);
}

.cookie-banner p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large, .bento-medium, .bento-full {
        grid-column: span 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }

    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Extremely high to be above everything */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1.5rem;
}

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

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--surface);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-body h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.modal-body p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
