:root {
    /* QiA Official Palette */
    --gold: #C8A96A;
    /* Titles, buttons, accents */
    --dark-grey: #3A3F4A;
    /* Headers, menu main bg */
    --white: #FFFFFF;
    /* Base */
    --light-grey: #F2F2F2;
    /* Soft sections */
    --deep-petrol: #2E3A45;
    /* Subtitles, borders, secondary elements */

    /* Semantic Mappings */
    --primary-color: var(--dark-grey);
    --secondary-color: var(--deep-petrol);
    --accent-color: var(--gold);
    --text-color: #333333;
    --light-bg: var(--light-grey);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    /* Increased padding */
}

/* Specific container for wider services view */
.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
/* Header */
.header {
    background-color: #3A3F4A;
    /* Explicitly set as requested */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    z-index: 1000;
    padding: 20px 0;
    /* Increased padding per user request */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Explicit Header Alignment Lock */
.header .container {
    max-width: 1200px;
    padding: 0 40px;
    margin: 0 auto;
    width: 100%;
}

.logo img {
    height: 85px;
    width: auto;
    padding: 0;
    border-radius: 4px;
    background-color: transparent;
    /* Transparent for PNG */
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    position: relative;
    /* Anchor for absolute dropdown */
    margin-left: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--gold) !important;
    /* Force Gold Color */
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--white) !important;
}

.dropdown:hover>a {
    color: var(--white) !important;
    /* User requested to keep it white */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 4px;
    padding: 10px 0;
}

/* Dropdown visibility controlled by JS class 'show' now, OR hover for desktop */
.dropdown-menu.show,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #3A3F4A !important;
    /* Force specific dark grey override */
}

.dropdown-menu li a:hover {
    background-color: var(--white);
    /* Remove grey bg */
    color: #C8A96A !important;
    /* Gold text */
}

.arrow {
    font-size: 0.8em;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--gold);
    /* Gold for visibility on Dark Header */
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    /* User requested specific image */
    background: linear-gradient(rgba(46, 58, 69, 0.85), rgba(58, 63, 74, 0.9)), url('../images/hero-bg-final.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    display: none;
    /* Removed overlay as we are using a solid gradient now */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    /* More padding */
    border-radius: 30px;
    /* Rounded pill shape */
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b08d55;
    /* Darker gold */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    border-color: var(--gold);
    color: var(--dark-grey);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--white);
}

.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-email {
    background-color: var(--primary-color);
    color: #fff;
}

/* Sections */
.section {
    padding: 80px 0;
    /* Moderate vertical margins */
}

/* Background Variations for Rhythm */
.bg-light {
    background-color: var(--light-grey);
    /* #F2F2F2 */
    color: var(--text-color);
}

.bg-dark {
    background-color: var(--dark-grey);
    /* #3A3F4A */
    color: var(--white);
}

.bg-accent {
    background-color: var(--white);
    color: var(--text-color);
}

.section-title {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.bg-dark .section-title {
    color: var(--white);
    /* White title on dark bg */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* Intro */
.lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.vision-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    display: inline-block;
}

/* Services Grid */
/* Services Grid Refined */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns enforced */
    gap: 40px;
    /* Bigger gap */
    width: 90%;
    /* Occupy 90% of container */
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: var(--transition);
    border-top: 5px solid var(--gold);
    /* Gold top border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
/* Features (Why Choose Us) - Dark Theme */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.bg-dark .feature-item h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.bg-dark .feature-item p {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.icon-box {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--gold);
    /* Gold Icons */
}

/* CTA Strip */
/* CTA Strip - Light & Clean */
.cta-strip {
    background-color: var(--white);
    /* Clear strip */
    color: var(--dark-grey);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.cta-strip h3 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--dark-grey);
}

.cta-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* WhatsApp Float Adjustment */
.whatsapp-float {
    /* Previously fixed, verify placement */
    bottom: 80px;
    /* Slightly higher */
    right: 25px;
    width: 55px;
    height: 55px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    /* Dark Grey */
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 70px;
    /* Moved up 40px from 30px */
    right: 30px;
    width: 50px;
    /* Slightly smaller */
    height: 50px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--primary-color);
        /* Dark Bg for mobile menu */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        text-align: center;
        transition: var(--transition);
    }

    .nav-list.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        /* Slightly darker for contrast */
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu li a {
        color: var(--white);
        /* White text on mobile dark menu */
    }

    .dropdown-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--accent-color);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Service Detail Styles */
.service-detail {
    padding: 60px 0;
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-detail h2 {
    color: var(--accent-color);
    /* Gold titles */
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.service-detail p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        width: 100%;
    }

    .container {
        padding: 0 20px;
    }
}

/* Service Detail Page Layout */
.service-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.service-layout.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-text p {
    text-align: justify;
    line-height: 1.6;
}

.service-image {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Center the image */
}

.service-image img {
    width: 80%;
    /* Use 80% of container */
    max-width: 400px;
    /* Never exceed 400px to prevent pixelation */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 280px;
    /* Reduced height for better proportion */
}

@media (max-width: 768px) {

    .service-layout,
    .service-layout.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .service-image img {
        height: auto;
        max-height: 300px;
    }
}

/* Accordion Styles */
.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    transition: 0.4s;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header:hover {
    background-color: var(--light-grey);
}

.accordion-header.active {
    background-color: var(--light-grey);
    color: var(--gold);
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 15px 18px;
}

.accordion-header .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
}

/* About Section Text Styling */
.about-text h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-text p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* About Tech Section Text Styling */
.about-tech h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-tech p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
}