/* 1. Global Styles and Reset */
:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #2c3e50;
    --font-family: 'Inter', sans-serif;
    --whatsapp-color: #25d366;
}

html {
    scroll-behavior: smooth; 
}

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

body {
    font-family: var(--font-family);
    line-height: 1.4;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 2. Typography */
h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
}

/* 3. Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo { height: 40px; margin-right: 10px; }
.brand { display: flex; align-items: center; }
.brand-text { font-size: 1.2rem; font-weight: 700; color: var(--heading-color); }

.nav-links { list-style: none; display: flex; }
.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    transition: color 0.3s;
    font-weight: 600;
}
.nav-links li a:hover { color: var(--primary-color); }

/* 4. Hero Section */
.hero {
    background-color: #e9f9ff;
    padding: 100px 5%;
    text-align: center;
}

.hero-content { max-width: 800px; margin: 0 auto; }
.hero p { font-size: 1.15rem; margin: 20px 0 30px; }

/* 5. Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: #0056b3; transform: translateY(-2px); }

/* 6. Value Proposition Grid */
.value-prop-section { padding: 80px 0; background-color: #f7f7f7; text-align: center; }
.value-prop-section .subtitle { margin-bottom: 40px; color: #555; font-size: 1.1rem; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.benefit-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.benefit-card:hover { transform: translateY(-5px); }
.benefit-card .icon { font-size: 2.5em; margin-bottom: 15px; display: block; }

/* 7. Services */
#services { padding: 80px 0; }
.service-cards { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}
.card h3 { color: var(--primary-color); }
.card ul { list-style: none; margin-top: 15px; }
.card li { padding: 8px 0; border-bottom: 1px solid #f9f9f9; }

/* 8. How It Works */
#how-it-works { background: var(--secondary-color); padding: 80px 0; }
.steps { display: flex; gap: 20px; margin-top: 40px; }
.step { flex: 1; text-align: center; padding: 20px; position: relative; }
.step:not(:last-child)::after {
    content: '→'; position: absolute; top: 30%; right: -10px; font-size: 1.5rem; color: #ccc;
}

/* 9. Features List */
#why-choose-us { padding: 80px 0; }
.features-list { list-style: none; max-width: 700px; margin: 0 auto; }
.features-list li {
    background: #e9f5ff;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* --- CTA Section Buttons --- */
#cta {
    padding: 80px 0;
    text-align: center;
}

.cta-actions {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px;               
    flex-wrap: wrap;         
    margin-top: 30px;
}

/* 10. WhatsApp Modal Background */
.wa-modal {
    display: none; 
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center; 
    justify-content: center;
}

/* 1. The Background Overlay (The "Pop-up" container) */
.wa-modal {
    display: none; /* Hidden by default - JS will change this to 'flex' */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dims the rest of the screen */
    z-index: 20000; /* Must be higher than everything else */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 2. The Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* 3. The Unread Notification Badge */
.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4d;
    color: white;    font-size: 11px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10002;
    animation: bounce 2s infinite; 
}

/* 4. The White Box inside the Modal */
.wa-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    text-align: left;
}

.wa-modal-content h3 { margin-bottom: 10px; color: #128c7e; }
.wa-modal-content p { font-size: 0.9rem; margin-bottom: 20px; color: #666; }

/* 5. Form Elements */
#wa-form input, #wa-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px; /* Prevents auto-zoom on mobile */
}

#wa-form textarea { height: 80px; resize: none; }

.wa-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.wa-submit-btn:hover { background-color: #128c7e; }

/* 6. Close Button */
.wa-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-6px);}
    60% {transform: translateY(-3px);}
}

/* 11. Footer */
footer { 
    background: var(--heading-color); 
    color: white; 
    text-align: center; 
    padding: 40px 0; 
}

/* 12. Media Queries */
@media (max-width: 768px) {
    .navbar { flex-direction: column; text-align: center; }
    .nav-links { margin-top: 15px; }
    .steps, .service-cards { flex-direction: column; }
    .step:not(:last-child)::after { content: '↓'; top: auto; bottom: -10px; right: 45%; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    h1 { font-size: 1.8rem; }
}
