:root {
    --navy: #0A192F;
    --navy-light: #112240;
    --orange: #FF5722;
    --orange-glow: rgba(255, 87, 34, 0.4);
    --white: #FFFFFF;
    --light-gray: #F4F7F6;
    --dark-gray: #333333;
    --success: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

/* --- Sticky Glassmorphism Header --- */
header {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span {
    color: var(--orange);
}

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

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}
nav ul li a:hover {
    color: var(--orange);
}

.call-btn {
    background: var(--orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--orange-glow);
    border: 2px solid transparent;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--orange-glow);
    background: transparent;
    border-color: var(--orange);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    background: radial-gradient(circle at 10% 20%, rgba(255,87,34,0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(10, 25, 47, 0.8) 0%, transparent 40%),
                var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 0;
}

.hero h1 { 
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    margin-bottom: 20px; 
    line-height: 1.1; 
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero h1 span {
    color: var(--orange);
}

.hero p { 
    font-size: clamp(1rem, 2vw, 1.3rem); 
    margin-bottom: 40px; 
    max-width: 700px; 
    color: #b0b8c4;
}

.hero-cta {
    font-size: 1.3rem;
    padding: 20px 50px;
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 var(--orange-glow); }
    70% { box-shadow: 0 0 0 20px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-badges {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Animated Stats Section --- */
.stats-bar {
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 60px 5%;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.stat-item h2 {
    font-size: 3rem;
    color: var(--orange);
    font-weight: 800;
    margin-bottom: 5px;
}
.stat-item p {
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* --- Advanced Services --- */
.services-section {
    padding: 100px 5%;
    background: var(--light-gray);
    scroll-margin-top: 80px;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 800;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255, 87, 34, 0.1);
    padding: 15px;
    border-radius: 12px;
}
.service-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.service-card ul {
    list-style: none;
    margin-bottom: 25px;
}
.service-card ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}
.service-card ul li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

/* --- Interactive Service Areas --- */
.areas-section {
    padding: 80px 5%;
    background: var(--white);
    scroll-margin-top: 80px;
}
.areas-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.areas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.area-btn {
    background: var(--light-gray);
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.area-btn:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}
.area-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--orange);
}
.area-btn::after {
    content: "→";
    font-size: 1.2rem;
}
.area-btn.active::after {
    content: "📍";
}

.area-display {
    background: var(--navy);
    padding: 30px;
    border-radius: 16px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.area-display h3 {
    color: var(--orange);
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.area-display p {
    margin-bottom: 20px;
    color: #b0b8c4;
}
.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Exit Intent Popup --- */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}
.popup-overlay.active {
    display: flex;
    opacity: 1;
}
.popup-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
}
.popup-overlay.active .popup-content {
    transform: scale(1);
}
.popup-content h2 {
    color: var(--orange);
    margin-bottom: 15px;
    font-size: 2rem;
}
.popup-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
}
.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}
.close-popup:hover {
    color: var(--navy);
}

/* --- Floating Mobile CTA --- */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--orange);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px var(--orange-glow);
    z-index: 999;
    text-decoration: none;
    animation: float-pulse 2s infinite;
    display: none; /* Hidden on desktop */
}
@keyframes float-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Contact Form Section --- */
.contact-section {
    padding: 100px 5%;
    background: var(--navy);
    color: white;
    scroll-margin-top: 80px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--orange);
}
.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #b0b8c4;
}
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-top: 30px;
}

.modern-form {
    background: var(--navy-light);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.modern-form h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b8c4;
    font-weight: 600;
}
.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    transition: border 0.3s;
}
.form-group textarea {
    resize: vertical;
}
.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.submit-btn:hover {
    background: #e64a19;
}

footer {
    background: #060f1d;
    color: #555;
    text-align: center;
    padding: 30px 5%;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navy-light);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    nav ul.active {
        display: flex;
    }
    .call-btn span {
        display: none;
    } /* Show only icon on very small screens */
    .call-btn {
        padding: 10px 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .floating-cta {
        display: flex;
    }
    .areas-container {
        grid-template-columns: 1fr;
    }
}

/* --- About Section --- */
.about-section {
    padding: 100px 5%;
    background: var(--white);
    scroll-margin-top: 80px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.about-title {
    font-size: 2.5rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 20px;
}
.about-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.about-text strong {
    color: var(--orange);
}
.about-points {
    display: grid;
    gap: 16px;
}
.about-point {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--light-gray);
    padding: 18px 22px;
    border-radius: 12px;
    border-left: 4px solid var(--orange);
}
.about-point > span {
    font-size: 1.8rem;
}
.about-point h4 {
    color: var(--navy);
    margin-bottom: 2px;
}
.about-point p {
    color: #666;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- Fix: call buttons on white backgrounds (popup, service cards) --- */
.popup-content .call-btn,
.service-card .call-btn {
    justify-content: center;
    background: var(--orange);
    color: var(--white);
}
.popup-content .call-btn:hover,
.service-card .call-btn:hover {
    background: #e64a19;
    border-color: #e64a19;
    color: var(--white);
}
.popup-content .call-btn {
    display: flex;
    animation: none;
    padding: 18px 20px;
    text-align: center;
}
.contact-call {
    display: inline-flex;
    font-size: 1.2rem;
}
.map-container {
    margin-top: 0;
}

.contact-call {
    display: flex;
    width: fit-content;
    max-width: 100%;
}

/* --- Services grid: 2x2 on desktop, no empty gap; equal-height cards --- */
.services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
}
.service-card {
    display: flex;
    flex-direction: column;
}
.service-card .call-btn {
    margin-top: auto;
}
.service-icon {
    align-self: flex-start;
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
