/*
    YPF Argentina - Neumorphism Style Sheet
    -------------------------------------------
    Design System: Neumorphism & Hyperrealistic Textures
    Color Scheme:  Split-Complementary
    Animation:     Morphing
    Fonts:         Oswald (Headings), Nunito (Body)
*/

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

:root {
    /* Color Palette (Split-Complementary: Blue base) */
    --primary-color: #0077C8;  /* YPF Blue */
    --primary-color-dark: #005a9c;
    --accent-color-1: #FFB74D; /* Yellow-Orange */
    --accent-color-2: #F06292; /* Red-Pinkish */
    --background-color: #E0E5EC; /* Light Grey for Neumorphism */
    --text-color: #363636;
    --text-color-dark: #222222;
    --text-color-light: #F5F5F5;
    --white-color: #FFFFFF;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --inset-shadow-light: inset 7px 7px 15px var(--shadow-dark), inset -7px -7px 15px var(--shadow-light);
    --outset-shadow: 7px 7px 15px var(--shadow-dark), -7px -7px 15px var(--shadow-light);

    /* Typography */
    --font-headings: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Sizing & Radius */
    --border-radius-soft: 15px;
    --border-radius-round: 50%;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------------------------------- */
/*          Typography                */
/* ---------------------------------- */

h1, h2, h3, h4, h5, h6, .title {
    font-family: var(--font-headings);
    color: var(--text-color-dark);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    margin-bottom: 2.5rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

/* General Button Style */
.button.is-primary.neumorphic-button, 
button.neumorphic-button, 
input[type='submit'].neumorphic-button {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--outset-shadow);
    color: var(--white-color);
    font-weight: 700;
    transition: all var(--transition-speed) ease;
}

.button.is-primary.neumorphic-button:hover, 
button.neumorphic-button:hover, 
input[type='submit'].neumorphic-button:hover {
    background: var(--primary-color-dark);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 9px 9px 18px var(--shadow-dark), -9px -9px 18px var(--shadow-light);
}

.button.is-primary.neumorphic-button:active, 
button.neumorphic-button:active, 
input[type='submit'].neumorphic-button:active {
    box-shadow: var(--inset-shadow-light);
    transform: translateY(2px);
}

/* General Card Style */
.card.neumorphic-card {
    background: var(--background-color);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--outset-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card.neumorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.card.neumorphic-card .card-content {
    text-align: center;
    padding: 1.5rem;
}

/* Card Image Container */
.card .card-image .image-container {
    height: 250px; /* Fixed height for uniformity */
    overflow: hidden;
    border-top-left-radius: var(--border-radius-soft);
    border-top-right-radius: var(--border-radius-soft);
}

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

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

/* Form Inputs */
.input.neumorphic-input,
.textarea.neumorphic-input {
    background-color: var(--background-color);
    border: none;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--inset-shadow-light);
    color: var(--text-color);
    transition: box-shadow var(--transition-speed) ease;
}

.input.neumorphic-input::placeholder,
.textarea.neumorphic-input::placeholder {
    color: #8899b3;
}

.input.neumorphic-input:focus,
.textarea.neumorphic-input:focus {
    outline: none;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

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

/* Header & Navbar */
.header.is-fixed-top .navbar {
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(163, 177, 198, 0.6);
}

.navbar-item, .navbar-link {
    font-family: var(--font-headings);
    font-weight: 500;
}

.navbar-burger span {
    background-color: var(--primary-color);
    height: 2px;
}

/* Hero Section */
.hero#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .hero-body .title {
    color: var(--white-color);
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

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

/* Statistics Section */
#statistics {
    padding: 4rem 1.5rem;
}
.neumorphic-widget {
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--outset-shadow);
    text-align: center;
}
.stat-number {
    font-family: var(--font-headings);
    color: var(--primary-color);
    font-size: 3rem;
}
.progress.neumorphic-progress {
    height: 8px;
    border-radius: 8px;
    background-color: #d1d9e6;
}
.progress.neumorphic-progress::-webkit-progress-value {
    background-color: var(--primary-color);
    border-radius: 8px;
}
.progress.neumorphic-progress::-moz-progress-bar {
    background-color: var(--primary-color);
    border-radius: 8px;
}

/* Testimonials Section */
.testimonial-slide .card {
    box-shadow: var(--outset-shadow);
}
.testimonial-slide .media-content .title {
    color: var(--text-color-dark);
}
.testimonial-slide .media-content .subtitle {
    color: var(--primary-color);
}
.slider-controls button {
    margin: 0 0.5rem;
}

/* Community (Timeline) */
.timeline .timeline-item .timeline-marker {
    background-color: var(--background-color);
    border: 3px solid var(--primary-color);
    box-shadow: var(--outset-shadow);
}
.timeline .timeline-item .timeline-content {
    background: var(--background-color);
    border-radius: var(--border-radius-soft);
    padding: 1.5rem;
    box-shadow: var(--outset-shadow);
}

/* Blog Section */
#blog .card .button.is-link.is-outlined {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#blog .card .button.is-link.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* External Resources Section */
.resource-item.neumorphic-inset-box {
    background: var(--background-color);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--inset-shadow-light);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow var(--transition-speed) ease;
}
.resource-item.neumorphic-inset-box:hover {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}
.resource-title {
    font-family: var(--font-headings);
    font-weight: bold;
    font-size: 1.2rem;
}
.resource-url {
    font-size: 0.9rem;
    color: #8899b3;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer.neumorphic-footer {
    background-color: #2c2c2c;
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    padding: 3rem 1.5rem 3rem;
    border-top: 5px solid var(--primary-color);
}
.footer .title {
    color: var(--white-color);
}
.footer p, .footer a {
    color: var(--text-color-light);
}
.footer a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}

/* ---------------------------------- */
/*       Page-specific Styles         */
/* ---------------------------------- */

/* Content pages like Privacy and Terms */
.content-page {
    padding-top: 100px; /* Offset for fixed header */
    padding-bottom: 3rem;
}
.content-page .container {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--outset-shadow);
}

/* Success page */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
}
.success-box {
    background: var(--background-color);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--outset-shadow);
}
.success-box .icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/*         Animations & Effects       */
/* ---------------------------------- */

/* Scroll-triggered reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/*          Responsive Styles         */
/* ---------------------------------- */

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: var(--background-color);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
        border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
    }
}

@media screen and (max-width: 768px) {
    .hero .hero-body .title {
        font-size: 2.5rem;
    }
    .hero .hero-body .subtitle {
        font-size: 1.2rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .columns.is-multiline .column {
        margin-bottom: 1.5rem;
    }
    #statistics .column {
        margin-bottom: 2rem;
    }
}