/* style.css */

/* --- CSS Variables --- */
:root {
    /* Color Palette - Gradient & Creative */
    --color-primary: #6a11cb;
    --color-secondary: #2575fc;
    --color-accent: #fa709a;
    --color-accent-dark: #f7941e;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);

    /* Typography */
    --color-text-dark: #212529;
    --color-text-light: #f8f9fa;
    --color-text-muted: #6c757d;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Layout & Spacing */
    --container-width: 1140px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.3s ease-in-out;
    --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

/* --- Layout & Utility --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

section {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

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

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.site-header__logo:hover {
    text-decoration: none;
}

.site-header__nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.site-header__nav a {
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-fast);
}

.site-header__nav a:hover::after {
    width: 100%;
}

.site-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}

.site-header__menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.site-header__menu-toggle span:nth-child(1) { top: 0; }
.site-header__menu-toggle span:nth-child(2) { top: 10px; }
.site-header__menu-toggle span:nth-child(3) { top: 20px; }


/* --- Global Components --- */

/* Buttons */
.cta-button, .cta-button-secondary {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button {
    background: var(--gradient-accent);
    color: var(--color-text-light);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--color-text-light);
    text-decoration: none;
}

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

.cta-button-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for image container */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to fill space */
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
}


/* --- Section Styles --- */

/* Hero Section */
.hero-section {
    min-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;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    padding: var(--spacing-xl) 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: var(--spacing-sm);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto var(--spacing-md);
    color: #FFFFFF;
}

/* Accolades Section */
.accolades-section {
    background-color: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.stat-widget__number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-widget__label {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

/* Process Section */
.process-section {
    background-color: #f8f9fa;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-step__number {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-accent);
    text-align: center;
    border-radius: 50%;
    z-index: 1;
    top: 20px;
}

.process-step:nth-child(odd) .process-step__number {
    right: -25px;
}
.process-step:nth-child(even) .process-step__number {
    left: -25px;
}

.process-step__content h4 { font-size: 1.3rem; }
.progress-indicator {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: var(--spacing-sm);
}
.progress-indicator__bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
}

/* External Resources Section */
.resources-section {
    background: var(--gradient-primary);
    color: var(--color-text-light);
}
.resources-section .section-title, .resources-section .section-subtitle {
    color: var(--color-text-light);
}
.resources-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}
.resource-link {
    display: block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-fast);
}
.resource-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Blog Section */
.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}
.read-more {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-weight: 700;
    color: var(--color-primary);
}

/* Careers Section */
.careers-section {
    background-color: #f8f9fa;
}
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border-bottom: 1px solid #dee2e6;
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: var(--spacing-sm) 0;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    position: relative;
    color: var(--color-text-dark);
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.accordion-header.active::after {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: var(--spacing-sm);
}
.accordion-content p { margin-bottom: var(--spacing-md); }

/* Contact CTA Section */
.contact-cta-section {
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-xl) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}
.contact-cta-section h2 {
    font-size: 2.8rem;
    color: #FFFFFF;
}
.contact-cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: #FFFFFF;
}

/* --- Contact Page Specific Styles --- */
.contact-form-section {
    padding: var(--spacing-lg) 0;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.form-group {
    margin-bottom: var(--spacing-sm);
}
.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: var(--spacing-lg) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
.footer-column h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: var(--spacing-sm);
}
.footer-column p {
    color: #adb5bd;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}
.footer-column a {
    color: #adb5bd;
    text-decoration: none;
}
.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid #495057;
    padding: var(--spacing-sm) 0;
    text-align: center;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* --- Special Page Styles --- */
/* For terms, privacy, etc. */
.page-content {
    padding: 120px var(--spacing-sm) var(--spacing-lg);
}
.page-content h1 {
    margin-bottom: var(--spacing-md);
}

/* Success page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--color-text-light);
}
.success-page h1 {
    font-size: 3rem;
    color: #fff;
}
.success-page p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}
.success-page .cta-button {
    background: #fff;
    color: var(--color-primary);
}

/* --- Barba.js Transitions --- */
.barba-leave-active,
.barba-enter-active {
    transition: opacity 0.5s;
}
.barba-leave-to,
.barba-enter-from {
    opacity: 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero-section h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .site-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .site-header__nav.is-open {
        display: flex;
    }
    .site-header__nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .site-header__nav li {
        width: 100%;
    }
    .site-header__nav a {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid #eee;
    }
    .site-header__menu-toggle {
        display: block;
    }
    .nav-open .site-header__menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .nav-open .site-header__menu-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .site-header__menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .process-timeline::after { left: 25px; }
    .process-step { width: 100%; padding-left: 70px; padding-right: 15px; margin-bottom: 30px; }
    .process-step:nth-child(odd), .process-step:nth-child(even) { left: 0; text-align: left; }
    .process-step__number { left: 0; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}