/* --- CSS Variables & Resets --- */
:root {
    /* Primary Colors for Buttons & Navigation */
    --primary-color: #3e7459; 
    --secondary-color: #20b2aa; 
    
    /* Text and General Colors */
    --text-light: #ffffff;
    --text-dark: #333333; 
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Gradient Overlay for Hero Section (Green to Blue) */
    --gradient-left: rgba(36, 132, 84, 0.811); 
    --gradient-right: rgba(2, 130, 172, 0.815);  
    
    /* Gradient for the Explore Button (Lighter to Darker Teal) */
    --btn-gradient-start: rgba(25, 123, 107, 1); 
    --btn-gradient-end: rgba(10, 149, 177, 1); 

    /* Service Section Colors */
    --section-bg: #f7f7f7; 
    --card-bg: #ffffff;    
    --heading-color: #404040; 
    --subheading-color: #747373; 
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    /* Icon Colors (Using the primary gradient colors as background) */
    --icon-bg-start: #248454; 
    --icon-bg-end: #0282ac;   
    --icon-color: #ffffff;    
    
    /* About Section Color */
    --check-color: #539f56; 
    
    /* Stats Box Colors (For the inner white box) */
    --inner-text-color: var(--heading-color); 
    --inner-label-color: var(--subheading-color); 
    --border-color-subtle: rgba(0, 0, 0, 0.1); 
    
    /* Contact Section Variables */
    --contact-section-bg: #f7f7f7;
    --contact-card-bg: #ffffff;
    --contact-card-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --input-border-color: #e0e0e0;
    --input-focus-border-color: var(--primary-color);
    --input-placeholder-color: #a0a0a0;
    --contact-icon-bg: #e8f5e9; 
    --contact-icon-color: var(--primary-color); 
    
    /* Footer Section Variables */
    --footer-bg: #3d7140; 
    --footer-text-color: #ffffff;
    --footer-link-color: #ffffff;
    --footer-link-hover-color: var(--secondary-color); 
    --copyright-border-top: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark); 
    line-height: 1.6;
    padding-top: 65px; 
    background-color: #ffffff; 
}

/* Global Container for section content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navbar --- */
.header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); 
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

/* LOGO IMAGE ADJUSTMENT */
.header .logo img {
    height: 35px; 
    width: auto; 
    display: block;
}

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--text-dark); 
    margin-left: 30px;
    font-size: 16px;
    transition: color 0.3s;
    opacity: 0.9;
    font-weight: 500;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

/* --- Buttons (Shared Styles) --- */
.btn {
    text-decoration: none;
    border-radius: 5px; 
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: inline-block;
    cursor: pointer;
}

/* Primary (Get Started - Navigation) and Contact Form Submit */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light) !important; 
    border: 2px solid var(--primary-color);
    padding: 5px 10px; 
    font-size: 15px; 
}
.btn-primary:hover {
    background-color: #457447; 
    border-color: #457447;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.submit-btn {
    padding: 10px 30px; 
    font-size: 1em;
    width: 100%; 
    margin-top: 10px;
}

/* Hero Button Specific Styles */
.btn-secondary, .btn-outline {
    padding: 10px 30px; 
    font-size: 1em;
}

.btn-secondary {
    background-image: linear-gradient(to right, var(--btn-gradient-start), var(--btn-gradient-end)); 
    color: var(--text-light); 
    border: none; 
    box-shadow: none; 
    position: relative; 
    overflow: hidden; 
    display: inline-flex;
    align-items: center;
}

.btn-secondary .arrow-icon {
    display: inline-block; 
    margin-left: 8px; 
    transition: transform 0.3s ease-out; 
}

.btn-secondary:hover .arrow-icon {
    transform: translateX(5px); 
}

.btn-outline {
    background-color: rgba(151, 165, 165, 0.5); 
    color: var(--text-light) !important; 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

.btn-outline:hover {
    background-color: rgba(129, 156, 155, 0.8); 
}


/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -65px; 
    background-image: 
        linear-gradient(to right, var(--gradient-left), var(--gradient-right)), 
        url('images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

.hero-content {
    max-width: 1000px;
    padding: 0 5%;
    padding-top: 65px; 
    color: var(--text-light); 
}

.hero-content h1 {
    font-size: 4.5em; 
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
    cursor: default;
}

.hero-content p {
    font-size: 1.6em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse-icon {
    display: block;
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 50px;
    position: relative;
    opacity: 0.7;
}

.mouse-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 1.5s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* ---------------------------------------------------------------------- */
/* --- SERVICES SECTION STYLES --- */
/* ---------------------------------------------------------------------- */

.services-section {
    background-color: var(--section-bg);
    padding: 80px 0;
    text-align: center;
    color: var(--text-dark); 
}

.section-title {
    color: var(--heading-color);
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3em;
    cursor: default;
}

.section-subtitle {
    color: var(--subheading-color);
    font-size: 1.2em;
    margin-bottom: 50px;
    cursor: default;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--card-bg);
    color: var(--heading-color);
    padding: 30px;
    border-radius: 10px;
    border-top: 3px solid var(--primary-color); 
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left; 
    display: flex; 
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 10px;
}

/* Styling for the SVG wrapper div */
.service-icon > div { 
    width: 56px; 
    height: 56px; 
    border-radius: 8px; 
    background-image: linear-gradient(to right, var(--icon-bg-start), var(--icon-bg-end)); 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px; 
    transition: transform 0.3s; 
}

.service-card:hover .service-icon > div {
    transform: scale(1.1); 
}

/* Styling for the SVG itself */
.service-icon svg {
    width: 28px;    
    height: 28px;   
    stroke: var(--icon-color); 
    stroke-width: 2; 
}

.service-card h3 {
    color: var(--heading-color);
    font-size: 1.4em;
    margin-bottom: 20px;
    cursor: default;
}

.service-card p {
    color: var(--subheading-color);
    font-size: 1em;
    line-height: 1.5;
    cursor: default;
}

/* ---------------------------------------------------------------------- */
/* --- ABOUT SECTION STYLES (Why Choose Us) --- */
/* ---------------------------------------------------------------------- */

.about-section {
    background-color: var(--card-bg); 
    padding: 80px 0;
    color: var(--text-dark); 
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-content {
    flex: 3; 
}

.about-content p {
    color: var(--subheading-color);
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    cursor: default;
}

.about-content .section-title {
    color: var(--heading-color);
    text-align: left;
    margin-bottom: 30px;
    font-size: 3em;
    text-align: center;
}

/* Feature Lists (Checkmarks) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-left: 18%;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1em;
    font-weight: 500;
    cursor: default;
}

.check-icon {
    color: var(--check-color); 
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: 700;
    line-height: 1; 
}

/* --- Integrations Section Styles --- */

.integrations-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--section-bg); /* Light background for contrast */
}

.integration-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #4285f4; /* Primary blue for the subtitle */
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-subtitle-small {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
    cursor: default;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.integration-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    border-top: 3px solid var(--primary-color); 
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.integration-icon {
    width: 250px;
    height: 120px;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    background-color: white; 
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); /* Subtle border */
}

/* This is the crucial part for logos */
.integration-icon img {
    width: 80%; 
    height: 80%; 
    object-fit: contain; 
}

.integration-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    cursor: default;
}

.integration-card p {
    font-size: 15px;
    color: #555;
    cursor: default;
}

/* ---------------------------------------------------------------------- */
/* --- CONTACT SECTION STYLES --- */
/* ---------------------------------------------------------------------- */

.contact-section {
    background-color: var(--contact-section-bg);
    padding: 80px 0;
    text-align: center;
    color: var(--text-dark); 
}

.contact-section .section-title, 
.contact-section .section-subtitle {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    margin-top: 40px;
    /* Revert to flex-start so cards only take up content height by default */
    align-items: flex-start; 
}

/* Contact Info Card & Form Card */
.contact-form-card, .contact-info-card {
    background-color: var(--contact-card-bg);
    padding: 30px; 
    border-radius: 10px;
    box-shadow: var(--contact-card-shadow);
    text-align: left;
    /* Removed height: 100% to allow for specific height control on PC */
    display: flex;
    flex-direction: column;
}

.contact-info-card h3, .contact-form-card h3 {
    color: var(--heading-color);
    font-size: 1.8em;
    margin-bottom: 10px;
    cursor: default;
}

.contact-info-card p:first-of-type, .contact-form-card p:first-of-type {
    color: var(--subheading-color);
    margin-bottom: 10px;
    cursor: default;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--contact-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px; 
}

.contact-icon-wrapper svg {
    stroke: var(--contact-icon-color);
    width: 20px;
    height: 20px;
}

.contact-detail h4 {
    color: var(--heading-color);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-detail p {
    color: var(--subheading-color);
    font-size: 0.95em;
    line-height: 1.3;
    margin: 0;
}


/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 5px;
    font-size: 0.95em;
}
/* --- CSS for JS-Controlled Asterisk Removal --- */

/* Base style: Show asterisk (using label:after to keep it attached to the label text) */
.form-group.required-field-group label:after {
    content: "*";
    color: #ff4d4d; /* Red color for visibility */
    margin-left: 5px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* HIDE asterisk when parent div has the 'filled' class (applied by JavaScript) */
.form-group.required-field-group.filled label::after {
    opacity: 0; 
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--input-focus-border-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(82, 136, 84, 0.2); 
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--input-placeholder-color);
}

/* --- Modal Styles --- */

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important; 
}

.modal {
    display: flex; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow-y: hidden; 
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease-in-out;
}

/* State when the modal is visible */
.modal.active {
    opacity: 1;
    pointer-events: auto; 
}

/* --- Modal Content Box (The Popup) --- */
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 900px; 
    width: 90%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    
    /* Key Fixes: Fixed Size and Scroll */
    max-height: 85vh; /* Sets a max height relative to viewport height */
    margin: 5vh auto; 
    
    /* NEW: Use Flexbox to arrange header (fixed) and body (scrollable) */
    display: flex;
    flex-direction: column;
    padding: 0 0 14px 0; /* Remove padding here, apply padding inside header/body */

    /* Smooth Transition Properties */
    transform: scale(0.9); 
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

/* Smooth entry when active */
.modal.active .modal-content {
    transform: scale(1); 
}


/* --- Modal Header (FIXED) --- */
.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    /* NEW: Added padding and fixed border location */
    padding: 20px 30px; 
    border-bottom: 1px solid #eee;
    
    /* Ensure header remains at the top */
    flex-shrink: 0; /* Prevents header from shrinking */
    
    /* The close button's position needs adjustment because padding moved */
    position: relative;
}

.modal-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0;
}

#modal-icon {
    margin: 0; 
    flex-shrink: 0;
}

/* --- Close Button Adjustment (Relative to modal-content) --- */
.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    /* Position absolutely within modal-content */
    position: absolute; 
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001; /* Ensure it's always on top */
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
}

/* --- Modal Body (SCROLLABLE CONTENT AREA) --- */
#modal-body {
    /* NEW: This takes up all available height */
    flex-grow: 1; 
    /* NEW: Enables scrolling for the content area only */
    overflow-y: auto; 
    /* NEW: Apply vertical padding here (horizontal padding is applied to inner body-content) */
    padding-top: 10px;
    padding-bottom: 20px; 
}

/* --- Modal Body Content Layout --- */
/* The element inside #modal-body should have horizontal padding */
.modal-body-content {
    /* Added horizontal padding to align with header */
    padding: 0 30px; 
    
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}


/* --- Modal Detail Cards (Styling the Service Details) --- */
.modal-detail-card {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.modal-detail-card h4 {
    color: #38a169; 
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-detail-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

.modal-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-detail-card li {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.modal-detail-card li::before {
    content: "•"; 
    color: #38a169; 
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

/* ---------------------------------------------------------------------- */
/* --- FOOTER STYLES --- */
/* ---------------------------------------------------------------------- */

.footer {
    background-color: var(--primary-color);
    color: var(--footer-text-color);
    padding-top: 30px;
    font-size: 0.95em;
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr; 
    gap: 40px;
    padding-bottom: 20px;
    align-items: flex-start; 
}

.footer-logo-column .logo img {
    height: 80px; 
    filter: brightness(0) invert(1); 
    margin-bottom: 20px;
}

.footer-logo-column p {
    color: var(--footer-text-color);
    line-height: 1.8;
    max-width: 400px; 
    opacity: 0.8;
    cursor: default;
}

.footer-column h4 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--footer-text-color);
    cursor: default;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--footer-link-color);
    transition: color 0.3s ease;
    opacity: 0.9;
    display: block; 
}

.footer-column ul li a:hover {
    color: var(--footer-link-hover-color);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--copyright-border-top);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* --- TOAST NOTIFICATION STYLES --- */

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #388e3c; /* Success color */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    max-width: 300px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
}

.toast-notification.error {
    background-color: #d32f2f; /* Error color */
}

#toast-message {
    margin: 0;
    display: flex;
    align-items: center;
}

#toast-message::before {
    content: '✅'; /* Default success icon */
    margin-right: 10px;
    font-size: 20px;
}

.toast-notification.error #toast-message::before {
    content: '❌'; /* Error icon */
}


/* ---------------------------------------------------------------------- */
/* --- RESPONSIVENESS (Mobile/Tablet) --- */
/* ---------------------------------------------------------------------- */

.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    color: var(--text-dark); 
    font-size: 2em;
    cursor: pointer;
    z-index: 1001; 
}

body.nav-open {
    overflow: hidden; 
}

/* PC/Large Tablet View - Specific Height Control (min-width: 901px) */
@media (min-width: 901px) {
    /* * Target: Contact Info Card height should be ~70% of the Form Card height.
     * Approach: Define a fixed height for both based on the expected form size (550px) 
     * to make the two cards line up nicely with the desired proportion.
     */
    .contact-form-card {
        min-height: 550px; /* Ensure the form maintains a certain height on PC */
    }
}


@media (max-width: 1100px) {
    .about-flex {
        flex-direction: column;
        gap: 40px;
    }

    .about-content {
        flex: 1; 
        max-width: 100%;
    }
    
    .about-content .section-title {
        text-align: center;
    }

    .stats-box {
        flex: 1;
        min-width: unset;
        width: 100%;
        max-width: 500px;
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr; 
        gap: 30px;
    }
    .footer-content .footer-column:nth-child(3) { 
        grid-column: 1 / -1; 
    }
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3em; 
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact grid stacks on tablets (and mobile) */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer: Stack all columns on tablets */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center; 
    }
    .footer-logo-column p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .footer-logo-column .logo img {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-column ul {
        display: flex; 
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
    .footer-column ul li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    
    .header {
        padding: 15px 5%;
    }
    
    .hamburger-menu {
        display: block; 
    }

    /* --- MOBILE MENU FIX: Use transform for smooth slide --- */
    .navbar {
        position: fixed;
        top: 0;
        right: 0; 
        width: 65%;
        height: 100vh;
        background-color: #4f4f4f; 
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex; 
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        z-index: 999;
        overflow-y: auto; 
        opacity: 0.95;
    }
    
    .navbar.active {
        transform: translateX(0); 
    }

    .navbar ul {
        flex-direction: column;
        width: 80%; 
        padding: 0;
        margin-top: 50px;
    }
    
    .navbar ul li {
        width: 100%;
        text-align: center;
        margin: 20px 0; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar ul li:last-child {
        border-bottom: none;
    }

    .navbar ul li a {
        color: var(--text-light); 
        font-size: 1.5em;
        margin: 0; 
        padding: 10px 0;
        display: block;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content .section-title {
        font-size: 2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr; 
    }

    .integrations-section {
        padding: 50px 0;
    }
    
    /* --- CONTACT CARD MOBILE FIXES (Ensures content is covered) --- */
    /* On mobile, because contact-grid stacks (grid-template-columns: 1fr)
       and the specific PC height rules are outside of this block (or overridden),
       the cards will automatically stretch to cover all their content height. */
    
    .contact-info-card, .contact-form-card {
        padding: 20px; 
        height: auto; /* Ensure no fixed height prevents content from showing */
    }
    
    .contact-detail {
        align-items: center; 
        margin-bottom: 20px; 
        gap: 10px;
    }
    
    .contact-icon-wrapper {
        margin-top: 0; 
    }
    
    .contact-detail h4 {
        font-size: 1em;
    }
    
    .contact-detail p {
        font-size: 0.9em;
    }

    .modal-body-content {
        grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    }
    
    .footer-column ul {
        flex-direction: column; 
        align-items: center;
    }
}