/* --- General Styling & Variables --- */
:root {
    --primary-color-light: #0a2e5c;
    --secondary-color-light: #28a745;
    --bg-color-light: #fff;
    --text-color-light: #333;
    --card-bg-light: #fff;
    --section-bg-light: #f8f9fa;
    --border-color-light: #ccc;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --header-shadow-light: 0 2px 5px rgba(0, 0, 0, 0.05);

    --primary-color-dark: #58a6ff;
    --secondary-color-dark: #3fb950;
    --bg-color-dark: #0d1117;
    --text-color-dark: #c9d1d9;
    --card-bg-dark: #161b22;
    --section-bg-dark: #010409;
    --border-color-dark: #30363d;
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.2);
    --header-shadow-dark: 0 2px 5px rgba(0, 0, 0, 0.2);
    
    --transition-speed: 0.3s ease;
    --border-radius: 8px;
}

/* Default to light theme */
body {
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --bg-color: var(--bg-color-light);
    --text-color: var(--text-color-light);
    --card-bg: var(--card-bg-light);
    --section-bg: var(--section-bg-light);
    --border-color: var(--border-color-light);
    --box-shadow: var(--shadow-light);
    --header-shadow: var(--header-shadow-light);
}

/* Dark theme overrides */
body.dark-mode {
    --primary-color: var(--primary-color-dark);
    --secondary-color: var(--secondary-color-dark);
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --card-bg: var(--card-bg-dark);
    --section-bg: var(--section-bg-dark);
    --border-color: var(--border-color-dark);
    --box-shadow: var(--shadow-dark);
    --header-shadow: var(--header-shadow-dark);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    padding-bottom: 65px; /* Space for sticky call bar */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Animation on Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.features-grid .reveal:nth-child(2),
.benefits-grid .reveal:nth-child(2),
.process-wrapper .reveal:nth-child(2) {
    transition-delay: 0.1s;
}
.features-grid .reveal:nth-child(3),
.benefits-grid .reveal:nth-child(3),
.process-wrapper .reveal:nth-child(3) {
    transition-delay: 0.2s;
}
.features-grid .reveal:nth-child(4),
.process-wrapper .reveal:nth-child(4) {
    transition-delay: 0.3s;
}


/* --- Header & Navigation --- */
.header {
    background-color: var(--card-bg);
    box-shadow: var(--header-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust height as needed */
    width: auto;
    transition: transform 0.3s ease;
}

.logo .logo-dark {
    display: none; /* Hide dark logo by default */
}

body.dark-mode .logo .logo-light {
    display: none; /* Hide light logo in dark mode */
}

body.dark-mode .logo .logo-dark {
    display: block; /* Show dark logo in dark mode */
}

.logo img:hover {
    transform: scale(1.05);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color var(--transition-speed);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all var(--transition-speed);
}

.nav-cta {
    display: block;
}

/* --- Buttons --- */
.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--card-bg);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- General Section Styling --- */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* --- Hero Section & Slider --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transform: scale(1.05);
    transition: transform 7s ease-out;
}

.slide.active .hero-background {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color var(--transition-speed);
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.dot.active {
    background-color: #fff;
}


/* --- About & Benefits Sections --- */
.about-section, .benefits-section {
    background-color: var(--section-bg);
    transition: background-color var(--transition-speed);
}

.features-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card, .benefit-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}

.feature-card:hover, .benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-title, .benefit-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.benefit-description {
    flex-grow: 1;
    margin-bottom: 25px;
}

.benefit-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--secondary-color);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}


/* --- Services Section --- */
.services-section {
    background-color: var(--bg-color);
}

.process-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
    flex-wrap: wrap;
}

.process-wrapper::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    width: 90%;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.process-step {
    flex-basis: 23%;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--bg-color);
    padding: 0 15px;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 4px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.step-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--primary-color-light);
    color: #fff;
}
body.dark-mode .contact-section {
    background-color: var(--section-bg-dark);
}
body.dark-mode .contact-section .section-title,
body.dark-mode .contact-section .section-intro {
    color: var(--primary-color-dark);
}

.contact-section .section-title,
.contact-section .section-intro {
    color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 20%, transparent);
}

.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 20px;
}

.contact-info-text {
    margin-bottom: 25px;
}
.contact-info-text p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.contact-info-text i {
    color: var(--secondary-color);
    margin-right: 15px;
    width: 20px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: 2px solid;
    text-align: center;
}

.btn-contact.whatsapp {
    background-color: #25D366;
    color: #fff;
    border-color: #25D366;
}
.btn-contact.whatsapp:hover {
    background-color: #1EBE57;
    border-color: #1EBE57;
    transform: translateY(-2px);
}

.btn-contact.email {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-contact.email:hover {
    background-color: #fff;
    color: var(--primary-color-light);
    transform: translateY(-2px);
}

body.dark-mode .btn-contact.email {
    color: var(--text-color-dark);
    border-color: var(--text-color-dark);
}
body.dark-mode .btn-contact.email:hover {
    background-color: var(--text-color-dark);
    color: var(--bg-color-dark);
}

#form-status {
    margin-top: 15px;
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background-color: #061e3c;
    color: #ccc;
    padding: 30px 0;
    transition: background-color var(--transition-speed);
}
body.dark-mode .footer {
    background-color: #161b22;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a, .footer-credit a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-speed);
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-credit a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-credit {
    font-size: 0.9rem;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color var(--transition-speed), filter var(--transition-speed);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Specific color for Facebook icon */
.social-links a[href*="facebook.com"] {
    color: #1877F2; /* Official Facebook Blue */
}

/* Keep the brand color on hover for Facebook icon */
.social-links a[href*="facebook.com"]:hover {
    color: #1877F2;
    filter: brightness(1.15); /* Make it slightly brighter on hover */
}


/* --- Theme Switcher --- */
.theme-switcher {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle-checkbox {
    display: none;
}
.theme-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 50px;
    height: 26px;
    background: #2b354b;
    border-radius: 50px;
    position: relative;
    transition: background-color 0.2s;
}
.theme-toggle-label .fa-moon {
    color: #f1c40f;
    padding-left: 5px;
}
.theme-toggle-label .fa-sun {
    color: #f39c12;
    padding-right: 5px;
}
.theme-toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.theme-toggle-checkbox:checked + .theme-toggle-label::after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}
body.dark-mode .theme-toggle-label .fa-sun { display: none; }
body:not(.dark-mode) .theme-toggle-label .fa-moon { display: none; }

/* --- Sticky Call Bar --- */
.sticky-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: #fff;
    z-index: 999;
    display: flex;
    align-items: stretch; /* Make children fill the height */
    justify-content: space-between;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    transition: background-color var(--transition-speed);
}

.sticky-call-bar a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.sticky-call-bar .call-action {
    flex-grow: 1; /* Takes up most of the space */
    padding: 15px 10px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    gap: 10px;
}

.sticky-call-bar .whatsapp-icon {
    flex-basis: 20%;
    max-width: 80px; /* Max width for the icon area */
    font-size: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
}

.sticky-call-bar .call-action:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 90%, #000);
}

.sticky-call-bar .whatsapp-icon:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 85%, #000);
}

/* --- Generic Page Styling --- */
.page-section {
    padding: 120px 0 80px 0; /* Extra padding top for fixed header */
    min-height: 70vh;
    background-color: var(--bg-color);
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.page-container h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-container p, .page-container li {
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-container ul {
    list-style-position: inside;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-card {
        margin-bottom: 30px;
    }
    .benefit-card.popular {
        transform: scale(1);
    }
    .process-wrapper::before {
        display: none;
    }
    .process-step {
        flex-basis: 48%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Smaller logo on mobile */
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s, left var(--transition-speed);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 20px;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
        line-height: 1.4;
        text-align: center; /* Ensure text is centered when it wraps */
    }

    .section-title, .page-container h1 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        margin-top: 40px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-section {
        padding: 10px 0;
    }

    .footer-grid .footer-section:nth-child(2) {
        order: -1; /* Move links to the top on mobile */
    }
    
    /* Hide footer when keyboard is likely open on mobile to save space */
    body:has(input:focus, textarea:focus) .footer {
        display: none;
    }

    .sticky-call-bar .call-action {
        font-size: 1rem;
        padding: 12px 5px;
        gap: 5px;
    }

    .sticky-call-bar .whatsapp-icon {
        font-size: 1.5rem;
        padding: 12px 15px;
    }

    body {
        padding-bottom: 54px; /* Adjust for smaller sticky bar on mobile */
    }
}

@media (max-width: 576px) {
    .process-step {
        flex-basis: 100%;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 35px; /* Even smaller logo on very small screens */
    }
    .hero-section .btn-lg {
        padding: 12px 15px;
        font-size: 0.95rem; /* Slightly smaller font for the button */
    }
}

