/* CSS Variables */
:root {
    --primary-color: #1a365d;
    /* Navy Blue */
    --secondary-color: #2c5282;
    /* Deep Blue */
    --accent-color: #d4af37;
    /* Gold */
    --light-color: #e2e8f0;
    /* Darker Off-White/Gray for better contrast */
    --gray-color: #4a5568;
    /* Charcoal */
    --success-color: #38a169;
    /* Green */
    --dark-text: #1a202c;
    --light-text: #ffffff;

    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b5952f;
    /* Darker Gold */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--light-color);
    color: var(--light-color);
}

.btn-outline-light:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-gold:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Header */
#main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 80px;
    /* Increased for better visibility */
    width: auto;
    object-fit: contain;
}

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

#main-nav a {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    font-size: 1rem;
}

#main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

#main-nav a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.8) 100%), url('../assets/hero-bg.png');
    /* Fallback image needed or just remove url if pure gradient preferred */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    /* Header is fixed, but we might need padding-top if not transparent */
    padding-top: 80px;
    /* Offset fixed header */
}



.hero-content {
    max-width: 800px;
    text-align: left;
    color: var(--light-text);
    z-index: 1;
}

#hero h1 {
    font-size: 2.5rem;
    /* Smaller font for mobile baseline */
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 769px) {
    #hero h1 {
        font-size: 4rem;
        line-height: 1.1;
    }
}

.subheadline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #cbd5e0;
    letter-spacing: 1px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #main-nav {
        display: none;
        position: fixed;
        top: 70px;
        /* Below header */
        left: 0;
        width: 100%;
        height: auto;
        /* Hug content */
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 1000;
        flex-direction: column;
        border-top: 1px solid #eee;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #main-nav.active {
        display: flex;
        /* Show when active */
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
        /* Space between items */
    }

    #main-nav a {
        font-size: 1.2rem;
        /* Larger text for mobile touch */
    }

    .mobile-menu-toggle {
        display: block;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .subheadline {
        font-size: 1.2rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
    }
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

/* About Section */
#about {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.benefits-list {
    margin-bottom: 2rem;
}

.benefits-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.benefits-list li i {
    color: var(--success-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

.about-img-styled {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Services Section */
#services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* 280px fits comfortably on 375px screens */
    gap: 2rem;
}

.pricing-cta-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 0 0;
    /* Top margin 20px, others 0. Or just margin-top: 20px; */
    width: 100%;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 54, 93, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    min-height: 3rem;
    /* Align titles */
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-color);
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Pricing Section */
#pricing {
    background-color: var(--light-color);
}

.pricing-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.pricing-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.services-list {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pricing-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    box-shadow: var(--box-shadow);
    border-top: 3px solid var(--accent-color);
}

.pricing-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.category-icon {
    font-size: 1.2rem;
}

.pricing-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.4;
}

.pricing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Calculator Sidebar */
.project-calculator {
    flex: 1;
    position: sticky;
    top: 100px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    border: 1px solid #edf2f7;
    min-width: 300px;
}

.calculator-box h3 {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.empty-cart-msg {
    color: var(--gray-color);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}

.cart-item .remove-btn {
    color: #e53e3e;
    /* Red color */
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.8rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-top: 2px solid #edf2f7;
    color: var(--primary-color);
}

.total-price {
    color: var(--success-color);
}

.width-100 {
    width: 100%;
}

.text-small {
    font-size: 0.8rem;
}

.d-block {
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-layout {
        flex-direction: column;
    }

    .project-calculator {
        width: 100%;
        position: static;
        margin-top: 2rem;
    }
}

/* Packages Section */
#packages {
    background-color: #fff;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.package-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed);
    border: 1px solid #edf2f7;
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.package-card.popular {
    transform: scale(1.05);
    /* Make it stand out */
    border: 2px solid var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.package-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-bottom-left-radius: var(--border-radius);
}

.package-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.package-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.package-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-body ul {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.package-body li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.package-body li i {
    color: var(--success-color);
    margin-right: 10px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Why Choose Us */
#why-us {
    background-color: var(--project-bg-color, #f8fafc);
    /* Light background */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray-color);
}

/* Testimonials */
#testimonials {
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: -10px;
    left: 20px;
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.client-info strong {
    display: block;
    color: var(--primary-color);
}

.client-info span {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Contact Section */
#contact {
    background-color: var(--primary-color);
    color: #fff;
}

#contact .section-header h2 {
    color: #fff;
}

#contact .section-header p {
    color: #cbd5e0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack visually on mobile by default, override for desktop */
    gap: 4rem;
}

@media (min-width: 769px) {
    .contact-layout {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-item h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #e2e8f0;
}

.contact-form-wrapper {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    color: var(--dark-text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Footer */
footer {
    background-color: #11233d;
    /* Darker Navy */
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-container p {
    opacity: 0.7;
}

/* Responsive Final Polish */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .package-card.popular {
        transform: none;
    }

    .package-card.popular:hover {
        transform: translateY(-5px);
    }
}