/* ==========================================================================
   1. CSS Variables & Global Styles
   ========================================================================== */

:root {
    /* Analogous Color Scheme */
    --bg-color: #eaf0f7; /* Light blue-gray for the base */
    --primary-color: #0d47a1; /* Deep Blue */
    --primary-color-dark: #002171;
    --secondary-color: #1565c0; /* Medium Blue */
    --accent-color: #42a5f5; /* Light Blue */

    /* Text Colors */
    --heading-color: #1a2333;
    --text-color: #333745;
    --light-text-color: #FFFFFF;
    --link-color: var(--primary-color);
    --link-hover-color: var(--primary-color-dark);

    /* Neumorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(181, 196, 217, 0.7);
    --neumorphic-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neumorphic-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);

    /* Typography */
    --font-family-heading: 'Poppins', sans-serif;
    --font-family-body: 'Work Sans', sans-serif;

    /* Spacing & Borders */
    --container-width: 1140px;
    --section-padding: 6rem 0;
    --border-radius: 15px;
}

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

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

body {
    font-family: var(--font-family-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}


/* ==========================================================================
   2. Layout & Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: #dbe4f1;
}

.section-title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 4rem;
    text-shadow: 1px 1px 2px var(--shadow-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: -3rem auto 2rem;
    color: #555;
}

/* Columns System (Flexbox-based) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0.75rem;
}

.column.is-two-thirds {
    flex: none;
    width: 66.6666%;
}

.column.is-one-third {
    flex: none;
    width: 33.3333%;
}

.columns.is-centered {
    justify-content: center;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* ==========================================================================
   4. Global Components (Buttons, Forms, Cards)
   ========================================================================== */

/* Buttons */
.btn, button, input[type='submit'] {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    background-color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
}

.btn:hover, button:hover, input[type='submit']:hover {
    color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.btn:active, button:active, input[type='submit']:active {
    box-shadow: var(--neumorphic-shadow-inset);
    transform: translateY(1px);
}

.btn.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    box-shadow: none;
}

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

/* Forms */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset);
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -1.5rem;
    left: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Cards */
.card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.card-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px; /* Fixed height for image container */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(234, 240, 247, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}
.nav-logo:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    font-family: var(--font-family-body);
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}


/* ==========================================================================
   6. Section Specific Styles
   ========================================================================== */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-text-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* --- Our Process Section --- */
.process-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    padding: 2rem;
    text-align: left;
}

.process-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow);
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.process-step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.progress-indicator-wrapper {
    width: 100%;
    height: 8px;
    background-color: #dbe4f1;
    border-radius: 4px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* --- Insights Section --- */
.insights-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
    box-shadow: var(--neumorphic-shadow-inset);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.insight-post img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Testimonials / Customer Stories Section --- */
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.testimonial-slide {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--neumorphic-shadow);
    text-align: center;
}
.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1.5rem;
    box-shadow: var(--neumorphic-shadow);
}
.testimonial-author span {
    font-weight: 600;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--neumorphic-shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- External Resources Section --- */
.resource-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.resource-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
    transition: all 0.3s ease;
    font-weight: 500;
}
.resource-link:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

/* --- Contact Section --- */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
}
.btn-submit {
    width: 100%;
}


/* ==========================================================================
   7. Footer
   ========================================================================== */

.footer {
    background-color: #dbe4f1;
    padding: 4rem 0 2rem;
    color: var(--text-color);
    border-top: 4px solid #cad5e5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--text-color);
}

.footer-col ul a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #c2cde0;
}


/* ==========================================================================
   8. Other Pages (Success, Privacy, Terms)
   ========================================================================== */

.success-page, .legal-page {
    display: flex;
    flex-direction: column;
}

.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.legal-page-content {
    padding: 140px 0 60px; /* 100px for header + extra space */
}
.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}


/* ==========================================================================
   9. Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .columns {
        display: block;
        margin: 0;
    }
    .column {
        width: 100% !important;
        padding: 0;
        margin-bottom: 2rem;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px; /* Header height */
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 1.5rem 0;
    }
    .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);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .process-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding-left: 0;
    }
}