/*
*  File: style.css
*  Project: YPF Argentina Website
*  Design System: Modern, Dynamic Color Transitions
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */

:root {
    /* Fonts */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Colors (Monochromatic Blue/Dark Theme) */
    --primary-color: #0073e6;
    --primary-color-dark: #005bb5;
    --primary-color-light: #3399ff;

    --dark-bg: #121212;
    --dark-card-bg: #1e1e1e;
    --dark-element-bg: #2a2a2a;
    --border-color: #444444;

    --text-light: #f4f4f4;
    --text-medium: #cccccc;
    --text-dark: #222222;
    --text-heading: #ffffff;

    /* Gradients */
    --gradient-dynamic: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color), var(--primary-color-light));
    --gradient-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    
    /* Sizing & Spacing */
    --border-radius: 12px;
    --spacing-unit: 1rem;
    --transition-speed: 0.3s;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-medium);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 800;
}

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

.subtitle {
    color: var(--text-medium);
}

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

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

.section {
    padding: 6rem 1.5rem;
}

/* ---------------------------------- */
/*          Header & Navbar           */
/* ---------------------------------- */

.navbar.is-fixed-top {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-item, .navbar-link {
    color: var(--text-medium);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--text-light) !important;
}

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--dark-bg);
    }
}

/* ---------------------------------- */
/*           Global Buttons           */
/* ---------------------------------- */

.button, button, input[type='submit'] {
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    transform: perspective(1px) translateZ(0); /* Fix for jittery animations */
}

.button.is-primary {
    background: var(--gradient-dynamic);
    border: none;
    color: var(--text-light);
}

.button.is-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 115, 230, 0.4);
    color: var(--text-light);
}

/* ---------------------------------- */
/*            Hero Section            */
/* ---------------------------------- */

.hero.is-fullheight {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .title {
    color: var(--text-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .subtitle {
    color: var(--text-light);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------- */
/*           Card Components          */
/* ---------------------------------- */

.card {
    background-color: var(--dark-card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left; /* Default text-align for card content */
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 15px 35px rgba(0, 115, 230, 0.2);
}

.card .card-image {
    position: relative;
    overflow: hidden;
}

.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.card .card-content .title {
    color: var(--text-heading);
}

/* ---------------------------------- */
/*         Timeline Section           */
/* ---------------------------------- */

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

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

.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(--primary-color);
    border: 3px solid var(--dark-bg);
    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: var(--dark-card-bg);
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-content .heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color-light);
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
        text-align: left !important;
    }
    .timeline-marker {
        left: 10px !important;
    }
}

/* ---------------------------------- */
/*      External Resources Section    */
/* ---------------------------------- */

#external-resources .box.resource-link {
    background-color: var(--dark-card-bg);
    color: var(--text-medium);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    height: 100%;
}

#external-resources .box.resource-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 115, 230, 0.15);
}

#external-resources .box.resource-link .title {
    color: var(--text-heading);
}

/* ---------------------------------- */
/*          Contact Form              */
/* ---------------------------------- */

#contact .card {
    background: var(--dark-card-bg);
}

.label {
    color: var(--text-medium);
    font-weight: 500;
}

.input, .textarea {
    background-color: var(--dark-element-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.input::placeholder, .textarea::placeholder {
    color: #888;
}

.input:focus, .textarea:focus, .input:active, .textarea:active {
    background-color: var(--dark-element-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 115, 230, 0.25);
    color: var(--text-light);
}

/* ---------------------------------- */
/*              Footer                */
/* ---------------------------------- */

.footer {
    background-color: #0a0a0a;
    color: var(--text-medium);
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

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

.footer li {
    margin-bottom: 0.75rem;
}

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

.footer a:hover {
    color: var(--primary-color-light);
}

/* ---------------------------------- */
/*       Specific Page Styles         */
/* ---------------------------------- */

/* For success.html */
.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}

/* For privacy.html, terms.html */
.content-page {
    padding-top: 100px; /* Avoid header overlap */
    padding-bottom: 4rem;
}

.content-page .container .content h1 {
    margin-bottom: 2rem;
}

.content-page .container .content p, .content-page .container .content li {
    color: var(--text-medium);
}