/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
:root {
    /* Bright Color Palette */
    --primary-color: #00A896;
    --secondary-color: #FCA311;
    --accent-color: #F72585;
    --background-color: #F0F2F5; /* Light gray for Neuromorphism */
    --surface-color: #F0F2F5;

    /* Text Colors */
    --text-dark: #2d3436;
    --text-light: #FFFFFF;
    --text-muted: #636e72;

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

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Other Variables */
    --border-radius: 20px;
    --transition-bouncy: cubic-bezier(0.68, -0.6, 0.27, 1.65) 0.3s;
    --header-height: 80px;
}

/* ==========================================================================
   2. BASE & RESET STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #222222;
}

/* ==========================================================================
   4. LAYOUT & UTILITY
   ========================================================================== */
.main-container {
    width: 100%;
}

.content-section {
    padding: 6rem 2rem;
}

/* Hide scroll-animated elements initially */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   5. GLOBAL COMPONENTS
   ========================================================================== */
/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform var(--transition-bouncy), box-shadow 0.3s ease;
    box-shadow: var(--neu-shadow);
    background-color: var(--surface-color);
    color: var(--text-dark);
}

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

.btn:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(-2px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary-color), #007e70);
    color: var(--text-light);
}

.btn-secondary {
    background: linear-gradient(145deg, var(--secondary-color), #d98c0f);
    color: var(--text-light);
}

/* --- Cards --- */
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neu-shadow);
    transition: transform var(--transition-bouncy), box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

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

.card .card-image {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .card-image img {
    border-radius: 50%;
    object-fit: cover;
}

.card-content {
    flex-grow: 1;
}

/* --- Forms --- */
.neumorphic-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    border: none;
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--neu-shadow-inset);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 0 0 0 2px var(--primary-color);
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0 2rem;
}

.header.scrolled {
    background-color: rgba(240, 242, 245, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact-button {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}
.contact-button::after { display: none; }

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

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


/* ==========================================================================
   7. SECTION STYLES
   ========================================================================== */
/* --- Hero --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 1.5rem auto 2.5rem;
    max-width: 60ch;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- Mission & Curved Grid --- */
.curved-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.mission-content, .clientele-community-section .community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 50px;
}
.mission-text, .community-text { text-align: left; }
.mission-image-container img, .community-image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow);
}

/* --- Insights --- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-widget .stat-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}
.progress-indicator {
    width: 100%;
    height: 10px;
    background-color: #dfe6e9;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}
.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
}

/* --- Case Studies (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}
.timeline-item .timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 30px;
    background-color: var(--background-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}
.timeline-content {
    padding: 1.5rem;
    position: relative;
    border-radius: var(--border-radius);
    text-align: left;
}
.timeline-date {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}


/* --- Team --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.team-card .card-image img {
    width: 150px;
    height: 150px;
}
.team-title {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0.5rem 0;
}

/* --- Awards & Media --- */
#awards-media {
    text-align: center;
}
.awards-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}
.awards-grid span {
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: var(--surface-color);
    border-radius: 50px;
    box-shadow: var(--neu-shadow);
}
.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    filter: grayscale(100%);
    opacity: 0.7;
}

/* --- Clientele & Community --- */
.clientele-community-section .clientele-content {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 50px;
    text-align: center;
}
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    filter: grayscale(1);
    opacity: 0.6;
}
.clientele-community-section .community-content {
    grid-template-columns: 1fr 1.2fr;
}


/* --- Resources --- */
.resources-section .section-subtitle {
    text-align: center;
    max-width: 60ch;
    margin: -2rem auto 3rem;
    color: var(--text-muted);
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.resource-card {
    text-align: left;
}
.resource-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Contact --- */
.contact-section .curved-grid {
    grid-template-columns: 1fr 1fr;
    background: var(--surface-color);
    padding: 4rem;
    border-radius: 50px;
}
.contact-info { text-align: left; }
.contact-details { margin-top: 2rem; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
    background-color: #2d3436;
    color: #dfe6e9;
    padding: 4rem 2rem 2rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid #636e72;
}
.footer h4 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer p {
    color: #b2bec3;
}
.footer-links ul li, .footer-legal ul li, .footer-social ul li {
    margin-bottom: 0.75rem;
}
.footer-links a, .footer-legal a, .footer-social a {
    color: #b2bec3;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover, .footer-legal a:hover, .footer-social a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    color: #636e72;
}

/* ==========================================================================
   9. STATIC PAGES
   ========================================================================== */
.success-page, .static-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: var(--header-height) 2rem 2rem;
}
.success-page h1, .static-page h1 {
    color: var(--primary-color);
}
.static-page {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    min-height: auto;
}

.privacy-content, .terms-content {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
}
.privacy-content h2, .terms-content h2 {
    margin-top: 2rem;
}


/* ==========================================================================
   10. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .content-section { padding: 4rem 1.5rem; }

    .mission-content, .clientele-community-section .community-content, .contact-section .curved-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 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-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; align-items: center;}

    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px;}
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item .timeline-icon { left: 5px; }
    .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
    
    .footer-container { text-align: center; }
}