/*
 * YPF Argentina Website Styles
 *
 * Design System: Minimalist with Curved Grids elements
 * Color Scheme: Split-Complementary
 * Animation Style: Particle Animation
 * Framework: Bulma
*/

/* --- CSS Variables --- */
:root {
    /* Color Palette (Split-Complementary based on YPF Blue) */
    --primary-color: #0057b8; /* YPF Blue */
    --primary-color-dark: #00418a;
    --accent-color-1: #ffab00; /* Yellow-Orange Accent */
    --accent-color-2: #40a9ff; /* Light Blue Accent */
    
    /* Neutral Colors */
    --text-dark: #222222;
    --text-light: #f4f7f6;
    --text-body: #333333;
    --background-light: #ffffff;
    --background-light-alt: #f8f9fa;
    --background-dark: #1c1e21;
    --border-color: #dee2e6;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing & Radius */
    --section-padding: 6rem 1.5rem;
    --card-radius: 8px;
    --button-radius: 5px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.title, .subtitle, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.title {
    color: var(--text-dark);
    text-shadow: none; /* Override any potential default */
}

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

a:hover {
    color: var(--primary-color-dark);
}

.section {
    padding: var(--section-padding);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

/* --- Bulma Overrides & Extensions --- */
.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    border-radius: var(--button-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.3s ease-in-out;
}

.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.3);
}

.button.is-primary:active {
    transform: translateY(0);
}

.input, .textarea {
    border-radius: var(--button-radius);
    border-color: var(--border-color);
    transition: all 0.3s ease;
    box-shadow: none;
}

.input:focus, .textarea:focus,
.input:active, .textarea:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 87, 184, 0.25);
}

.label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

.content h1, .content h2, .content h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

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

/* --- Header & Navigation --- */
.navbar.is-fixed-top {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.is-transparent {
    background-color: transparent;
}

.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar.is-scrolled {
    background-color: var(--background-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.is-scrolled .navbar-item,
.navbar.is-scrolled .navbar-link {
    color: var(--text-dark);
}

.navbar.is-scrolled .navbar-item:hover,
.navbar.is-scrolled .navbar-link:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.navbar.is-transparent .navbar-item,
.navbar.is-transparent .navbar-link {
    color: var(--text-light);
}

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

.navbar.is-scrolled .navbar-burger {
     color: var(--text-dark);
}

/* Mobile Menu */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(28, 30, 33, 0.95);
        backdrop-filter: blur(5px);
        padding-bottom: 1rem;
    }
    .navbar-menu .navbar-item {
        color: var(--text-light);
    }
    .navbar-menu .navbar-item:hover {
        background-color: var(--primary-color);
    }
}


/* --- Page Transition --- */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}


/* --- Hero Section --- */
#hero-section {
    position: relative;
    overflow: hidden;
}

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

.hero-background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 40, 85, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.hero .hero-body {
    position: relative;
    z-index: 4;
}

#hero-section .title.has-text-white,
#hero-section .subtitle.has-text-white {
    color: #FFFFFF !important; /* STROGO */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* --- Cards Styling (Global) --- */
.card {
    background-color: var(--background-light);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex; /* STROGO */
    flex-direction: column; /* STROGO */
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card .card-image {
    padding: 0;
    margin: 0;
}

.card .image-container {
    width: 100%;
    height: 200px; /* STROGO */
    overflow: hidden;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
    text-align: center;
}

.card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STROGO */
    object-position: center;
    margin: 0 auto;
}

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

.card .card-content .title {
    margin-bottom: 0.75rem;
}

.card .card-content .button {
    margin-top: auto; /* Push button to the bottom */
}


/* --- Statistics Section --- */
#statistics .level-item .title {
    font-size: 3rem;
    color: var(--primary-color);
}

#statistics .level-item .heading {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1rem;
}


/* --- Our Process Section --- */
.process-card {
    border: none;
    box-shadow: none;
    background: transparent;
}
.process-card:hover {
    transform: none;
    box-shadow: none;
}
.process-card .card-image img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary-color);
    padding: 5px;
}
.process-card .card-content {
    padding: 1rem 0;
}


/* --- External Resources Section --- */
#external-resources .box {
    transition: all 0.3s ease;
    border-left: 5px solid var(--border-color);
}
#external-resources .box:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateX(5px);
}
#external-resources .box a {
    font-weight: bold;
    font-family: var(--font-heading);
}

/* --- Contact Section --- */
.contact-form {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}


/* --- Footer --- */
.footer {
    background-color: var(--background-dark);
    padding: 4rem 1.5rem;
}

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

.footer, .footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--text-light);
    text-decoration: none;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* --- Special Pages (About, Privacy, Terms, Success) --- */
#about-hero {
    position: relative;
}

#about-hero .hero-background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

#about-hero .title, #about-hero .subtitle {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Padding for content pages */
body.page-privacy main,
body.page-terms main {
    padding-top: 100px;
}

/* Success page centering */
body.page-success main,
body.page-success section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-box {
    padding: 3rem;
    text-align: center;
}

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

    #hero-section .title {
        font-size: 2.5rem;
    }

    #hero-section .subtitle {
        font-size: 1.1rem;
    }
    
    #statistics .level-item {
        margin-bottom: 2rem;
    }
}