/* Global Variables and Mixins */
:root {
    --color-primary: #212529; /* Deep Text/Dark Element */
    --color-accent: #3A4E7A; /* Corporate Blue Accent */
    --color-text-light: #6c757d;
    --color-background-soft: #f4f5f8;
    --color-background-white: #ffffff;
    --color-footer-bg: #161616;
    --color-highlight-text: #ffffff;
    --max-width: 1280px;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-highlight: 0 15px 40px rgba(58, 78, 122, 0.25);
}

/* General Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background-white);
    color: var(--color-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 120px 0;
}

.section.light {
    background-color: var(--color-background-soft);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.left-aligned {
    text-align: left;
    margin-left: 0;
}

/* Button Styling (CTA) */
.btn {
    display: inline-block;
    padding: 16px 36px;
    margin-top: 40px;
    background-color: var(--color-accent);
    color: var(--color-highlight-text);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
}

.btn:hover {
    background-color: #2F4269;
    transform: translateY(-3px);
    box-shadow: var(--shadow-highlight);
}

/* 1. HEADER / NAVBAR */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-background-white);
    box-shadow: var(--shadow-subtle);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
}

/* 2. HERO SECTION */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero .container {
    padding-top: 50px; /* Adjust for sticky header */
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 950px;
    margin: auto;
}

.hero p {
    margin: 30px auto 0;
    max-width: 700px;
    font-size: 1.3rem;
    color: var(--color-text-light);
}

/* 3. OUR WORK */
.work-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.work-link {
    text-decoration: none;
    color: inherit;
}

.work-card {
    padding: 40px;
    border: 1px solid var(--color-background-soft);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.4, 1);
    box-shadow: var(--shadow-subtle);
    min-height: 180px;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.work-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-card p {
    color: var(--color-text-light);
}

/* 4. WHO WE ARE */
.about-section {
    background-color: var(--color-background-soft);
}

.about-content {
    max-width: 850px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--color-primary);
}


/* 5. SERVICES (PRICING CARDS) */
.pricing-grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    padding: 40px;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-card span {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 10px 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-card ul {
    flex-grow: 1;
}

.pricing-card ul li {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--color-text-light);
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.pricing-card.popular {
    /* Removed highlight styling as per feedback */
}

/* 8. HOW WE WORK (PROCESS) */
.process-section .container {
    max-width: 1000px;
}

.c4-grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.c4-card {
    background-color: var(--color-background-white);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.4, 1);
    box-shadow: var(--shadow-subtle);
    text-align: center;
}

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

.c4-step {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.2;
    margin-bottom: 5px;
    display: block;
}

.c4-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.c4-card p {
    color: var(--color-text-light);
}

/* 9. FOOTER */
.footer {
    padding: 40px 0;
    background-color: var(--color-footer-bg);
    color: #b0b0b0;
    text-align: center;
}

/* Scroll Reveal Base State */
[data-reveal] {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}


/* Responsiveness */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    .hero {
        padding: 120px 0 80px;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero p {
        font-size: 1.15rem;
    }
    .section-title {
        font-size: 2.2rem;
    }

    /* Navbar */
    .header-inner {
        height: 70px;
    }
    .nav {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 14px 30px;
        margin-top: 30px;
    }

    /* Mobile Nav Toggle */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        background: var(--color-background-white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav.open {
        transform: translateY(0);
    }
    .nav-link {
        padding: 15px 30px;
        border-bottom: 1px solid var(--color-background-soft);
    }
    .nav-link::after {
        content: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 20px;
        cursor: pointer;
    }
    .nav-toggle span {
        display: block;
        height: 2px;
        background: var(--color-primary);
        transition: all 0.3s ease-in-out;
    }
    /* Simple toggle animation */
    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .pricing-card.popular {
        transform: scale(1.0); /* Remove scale effect on mobile */
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .container {
        padding: 0 20px;
    }
    .work-card, .pricing-card, .c4-card {
        padding: 25px;
    }
}
