/* --- CSS RESET AND GLOBAL STYLES --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    /* Colors */
    --color-text: #333333;
    --color-text-light: #FFFFFF;
    --color-heading: #222222;
    --color-primary: #6a11cb;
    --color-secondary: #2575fc;
    --color-accent: #ff6b6b;
    --color-dark: #121223;
    --color-light-gray: #f4f4f9;
    --color-border: rgba(255, 255, 255, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    --gradient-dark-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    --gradient-light-overlay: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));

    /* Shadows & Effects */
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-3d: 0 5px 15px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-3d-inset: inset 0 2px 2px rgba(255, 255, 255, 0.3), inset 0 -2px 2px rgba(0, 0, 0, 0.3);
    --blur-effect: blur(10px);
}

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

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

/* --- LAYOUT & UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    overflow: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

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

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

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    text-shadow: none;
}

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

.nav-link {
    font-family: var(--font-primary);
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.burger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- BUTTONS & FORMS --- */
.button-3d, .button-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-3d);
    transform: perspective(1px) translateZ(0);
}

.button-3d {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.button-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    color: var(--color-text-light);
}

.button-secondary {
    background: #ffffff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button-secondary:hover {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    border-color: transparent;
    transform: scale(1.05);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.25);
}

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

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    background: #f0f4f8;
    padding: 0 0.25rem;
    color: var(--color-primary);
}

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

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
}

/* --- CARD STYLES --- */
.card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px rgba(31, 38, 135, 0.45);
}

.card-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-image img {
    margin: 0 auto;
}

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

/* --- STATISTICS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-widget {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.stat-widget:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- HISTORY SECTION --- */
.history-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.history-image-container {
    flex: 1;
}
.history-image-container img {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
.history-text-container {
    flex: 1;
}

/* --- CLIENTELE & PARTNERS SECTIONS --- */
.gallery-grid, .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}
.partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
#clientele .card {
    padding: 2.5rem;
}
#partners .card-image {
    height: 150px; /* Fixed height for image container */
    width: 100%;
    object-fit: contain; /* Use contain to see the whole logo */
}
#partners .card-image img {
    max-height: 100%;
    width: auto;
}

/* --- RESOURCES SECTION --- */
.resource-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}
.resource-list li {
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.resource-list li a {
    display: block;
    padding: 1.5rem 2rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 1.1rem;
}
.resource-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* --- CAREERS SECTION --- */
#careers {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.job-listings {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}
.job-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-radius: 15px;
    border: 1px solid var(--color-border);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}
.job-card h3 {
    margin-bottom: 0.5rem;
}
.job-card p {
    margin-bottom: 1.5rem;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--color-dark);
    color: #a9a9b3;
    padding: 4rem 0 2rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.8rem;
}
.footer-column ul a {
    color: #a9a9b3;
    transition: all 0.3s ease;
}
.footer-column ul a:hover {
    color: var(--color-text-light);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animations */
.animate-on-scroll[data-delay] {
    transition-delay: var(--delay, 0s);
}

/* --- BARBA.JS TRANSITIONS --- */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* --- OTHER PAGES (Privacy, Terms, Success) --- */
.content-page, .success-page {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 6rem;
}
.content-page .container h1 {
    margin-bottom: 2rem;
}
.content-page .container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: var(--gradient-background);
}

.success-content {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
}
.success-content h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.4rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .history-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: var(--blur-effect);
        -webkit-backdrop-filter: var(--blur-effect);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        gap: 2.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--color-dark);
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger-menu.toggle .line2 {
        opacity: 0;
    }
    .burger-menu.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    section {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}