/*
* Design System: Futuristic
* Trend: Dynamic Color Transitions
* Color Scheme: Triad
* Animation Style: Smooth Transitions
* Fonts: Archivo Black (Headings), Roboto (Body)
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
    /* Triad Color Palette */
    --primary-color: #4f46e5;      /* Vivid Indigo */
    --secondary-color: #db2777;    /* Vibrant Pink */
    --accent-color: #14b8a6;       /* Bright Teal */
    --primary-darker: #4338ca;

    /* Neutral Colors */
    --background-dark: #0f172a;    /* Slate 900 */
    --background-light: #f8fafc;   /* Slate 50 */
    --text-light: #e2e8f0;         /* Slate 200 */
    --text-dark: #020617;          /* Slate 950 */
    --text-muted: #64748b;         /* Slate 500 */
    --border-color: #334155;      /* Slate 700 */

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

    /* Transitions & Borders */
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-dark);
    color: var(--text-light);
}

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--background-dark);
}

/* ---------------------------------- */
/*          Typography                */
/* ---------------------------------- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.title {
    color: var(--text-light);
}

.subtitle {
    color: var(--text-muted);
    font-family: var(--font-body);
}

.section-title {
    margin-bottom: 3rem !important;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--text-light);
}

/* ---------------------------------- */
/*          Layout & Sections         */
/* ---------------------------------- */
.section {
    padding: 6rem 1.5rem;
}

.has-background-light {
    background-color: var(--background-light) !important;
}

.has-background-light .title,
.has-background-light p,
.has-background-light .heading {
    color: var(--text-dark);
    text-shadow: none;
}
.has-background-light a {
    color: var(--primary-color);
}
.has-background-light a:hover {
    color: var(--primary-darker);
}

/* ---------------------------------- */
/*       Header & Navigation          */
/* ---------------------------------- */
.header.is-fixed-top {
    background: #000;
    backdrop-filter: blur(10px);
    transition: background-color var(--transition-speed) ease;
}

.navbar {
    background-color: #000 !important;
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-light);
    transition: color var(--transition-speed) ease;
}

.navbar-item:hover, .navbar-item:focus {
    background-color: transparent !important;
    color: var(--accent-color) !important;
}

.navbar-item.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
}

.navbar-burger {
    color: var(--text-light);
}

/* ---------------------------------- */
/*           Hero Section             */
/* ---------------------------------- */
.hero.is-fullheight {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
}

.is-parallax {
    background-attachment: fixed;
}

.hero-title, .hero-subtitle {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* ---------------------------------- */
/*         Buttons & Forms            */
/* ---------------------------------- */
.button.futuristic-button, button[type='submit'] {
    font-family: var(--font-heading);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 0.8rem 2.5rem;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button.futuristic-button:hover, button[type='submit']:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(219, 39, 119, 0.4);
    color: #FFFFFF;
}

.input, .textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.input::placeholder, .textarea::placeholder {
    color: var(--text-muted);
}

.input:focus, .textarea:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.125em rgba(20, 184, 166, 0.25);
    color: var(--text-light);
}

.label {
    color: var(--text-light);
    font-weight: 700;
}

/* ---------------------------------- */
/*        Card Component              */
/* ---------------------------------- */
.card.futuristic-card {
    background: rgba(30, 41, 59, 0.5); /* Slate 800 with transparency */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card.futuristic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.card.futuristic-card .card-image {
    width: 100%;
}

.card.futuristic-card .card-image img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.card.futuristic-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.card.futuristic-card .title {
    color: var(--text-light);
}

.card.futuristic-card .content {
    color: var(--text-muted);
}

/* ---------------------------------- */
/*         Timeline Section           */
/* ---------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-marker {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}
.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: #1e293b; /* Slate 800 */
    border-radius: var(--border-radius);
}
.timeline-content .heading {
    color: var(--accent-color);
    font-weight: 700;
}
.timeline-content p {
    color: var(--text-muted);
    margin: 0;
}

/* ---------------------------------- */
/*        Contact Section             */
/* ---------------------------------- */
.contact-section {
    position: relative;
    overflow: hidden;
}
.contact-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}
.contact-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
}
.contact-form {
    background: rgba(30, 41, 59, 0.7);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

/* ---------------------------------- */
/*       External Links Section       */
/* ---------------------------------- */
.external-links-list li {
    margin-bottom: 1rem;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}
.external-links-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ---------------------------------- */
/*              Footer                */
/* ---------------------------------- */
.footer {
    background-color: var(--background-dark);
    padding: 3rem 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
}
.footer .title {
    color: var(--text-light);
}
.footer p, .footer a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer a:hover {
    color: var(--accent-color);
}
.footer ul {
    list-style: none;
    margin: 0;
}
.footer li {
    margin-bottom: 0.5rem;
}

/* ---------------------------------- */
/*      Barba.js Transitions          */
/* ---------------------------------- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-dark);
    transform: translateY(100%);
    z-index: 9999;
}
.page-transition.is-active {
    transform: translateY(0);
}

/* ---------------------------------- */
/*   Specific Page Styles (Legal/Success) */
/* ---------------------------------- */
.legal-page, .success-page {
    padding-top: 100px;
    padding-bottom: 5rem;
    background-color: var(--background-light);
}

.legal-page h1, .legal-page h2, .legal-page p,
.success-page h1, .success-page h2, .success-page p {
    color: var(--text-dark);
    text-shadow: none;
}

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

.success-icon {
    width: 100px;
    height: 100px;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/*       Responsive Design            */
/* ---------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }

    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-marker {
        left: 21px !important; /* Override inline/JS styles if any */
        right: auto !important;
    }
    .contact-form {
        padding: 1.5rem;
    }
}