/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    /* Color Palette - Pastel & Neumorphism */
    --bg-color: #EBF2F7;
    --primary-color: #6D83F2;
    --accent-color: #A0C4FF;
    --text-color: #5B6478;
    --heading-color: #3D4451;
    --white-color: #FFFFFF;
    --success-color: #73C686;
    --error-color: #F26D6D;

    /* Neumorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --neumorphism-shadow: -8px -8px 16px var(--shadow-light), 8px 8px 16px var(--shadow-dark);
    --neumorphism-inset-shadow: inset -6px -6px 12px var(--shadow-light), inset 6px 6px 12px var(--shadow-dark);

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Dynamic Gradient */
    --dynamic-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    
    /* Spacing */
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent scrollbars from AOS animations */
}

/* Headings and Text */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--heading-color); }
ul { list-style: none; }

/* Layout Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ==========================================================================
   2. REUSABLE COMPONENTS (BUTTONS, CARDS, FORMS)
   ========================================================================== */

/* Buttons */
.cta-button, .submit-button, .read-more {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    background-color: var(--bg-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-out;
    box-shadow: var(--neumorphism-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover, .submit-button:hover, .read-more:hover {
    box-shadow: var(--neumorphism-inset-shadow);
    color: var(--heading-color);
}

/* Cards */
.card {
    background-color: var(--bg-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--neumorphism-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--neumorphism-inset-shadow);
}

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

.card-title {
    color: var(--heading-color);
    font-size: 1.5rem;
}

.card-subtitle {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* "Read more" links in cards */
.read-more {
    font-size: 0.9rem;
    padding: 10px 20px;
    margin-top: auto; /* Pushes the button to the bottom */
}


/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    height: var(--header-height);
    background: rgba(235, 242, 247, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--heading-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

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

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

.burger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   4. SECTION STYLES
   ========================================================================== */

/* General Section Styling */
.page-section {
    padding: 6rem 0;
}
.alternate-bg {
    background-color: #e2e9ef;
}
.section-title {
    text-align: center;
    color: var(--heading-color);
}
.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple parallax effect */
}
.hero-content {
    max-width: 900px;
}
.hero-content h1, .hero-content p {
    color: var(--white-color);
}
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Grid Layout for Services, Blog, etc. */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-color);
    position: relative;
    border-radius: 15px;
    box-shadow: var(--neumorphism-shadow);
}
.timeline-date {
    display: inline-block;
    margin-top: 1rem;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--neumorphism-shadow);
    text-align: center;
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--bg-color);
    box-shadow: var(--neumorphism-shadow);
}
.testimonial-carousel blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-carousel footer {
    font-weight: bold;
    color: var(--primary-color);
}

/* External Resources */
.external-links-list li {
    background-color: var(--bg-color);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--neumorphism-shadow);
    transition: all 0.3s ease;
}
.external-links-list li:hover {
    transform: translateX(10px);
    box-shadow: var(--neumorphism-inset-shadow);
}
.external-links-list a {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Careers Section */
.careers-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.careers-image {
    flex: 1 1 50%;
    max-width: 50%;
    border-radius: 20px;
    box-shadow: var(--neumorphism-shadow);
    object-fit: cover;
}
.careers-text {
    flex: 1 1 50%;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    position: relative;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 15px;
    background-color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: var(--neumorphism-inset-shadow);
    transition: box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: var(--neumorphism-inset-shadow), 0 0 0 2px var(--accent-color);
}
.contact-form label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: var(--text-color);
    pointer-events: none;
    transition: all 0.3s ease;
}
.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: var(--bg-color);
    padding: 0 5px;
    color: var(--primary-color);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.main-footer {
    background-color: #dde5ec;
    padding: 4rem 0 2rem;
    color: var(--text-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}
.footer-col p {
    font-size: 0.9rem;
}
.footer-col ul li {
    margin-bottom: 0.8rem;
}
.footer-col ul a {
    color: var(--text-color);
    font-size: 1rem;
}
.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #c8d0d8;
}

/* ==========================================================================
   6. OTHER PAGES (SUCCESS, PRIVACY, TERMS)
   ========================================================================== */
.static-page-container {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
}
.static-page-container h1 {
    margin-bottom: 2rem;
}
.static-page-container p, .static-page-container ul {
    margin-bottom: 1.5rem;
}
.static-page-container li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
    margin-left: 1.5rem;
}

.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-content {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--neumorphism-shadow);
    max-width: 600px;
}
.success-content h1 {
    color: var(--success-color);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
    .careers-content {
        flex-direction: column;
    }
    .careers-image {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .burger-menu {
        display: block;
    }
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Timeline Responsive */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }

    .page-section { padding: 4rem 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}