/* style.css */

/* --------------------------------
   0. CSS Variables & Global Setup
   -------------------------------- */
:root {
    --primary-rojo: #DA0037; /* Vivid Red */
    --primary-rojo-dark: #A9002A; /* Darker Red for hover/active */
    --accent-color-1: #FFD700; /* Gold/Yellow Accent - for contrast if needed, or stick to red shades */
    --accent-color-2: #FF6B6B; /* Lighter, softer red */

    --text-color-light: #FFFFFF;
    --text-color-medium: #E0E0E0; /* Lighter grey for less emphasis */
    --text-color-dark: #333333;
    --text-color-headings: #222222; /* Extra dark for section titles */

    --background-light: #F9F9F9;
    --background-medium: #ECECEC;
    --background-dark: #1A1A1A;
    --background-footer: #111111;

    --glass-bg: rgba(255, 255, 255, 0.05); /* Subtle for dark backgrounds */
    --glass-bg-light: rgba(255, 255, 255, 0.65); /* More opaque for light backgrounds if text is dark */
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-light: rgba(200, 200, 200, 0.3);


    --shadow-color-light: rgba(0, 0, 0, 0.1);
    --shadow-color-medium: rgba(0, 0, 0, 0.2);
    --shadow-color-strong: rgba(0, 0, 0, 0.3);

    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;

    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 15px;

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* --------------------------------
   1. Base & Reset Styles
   -------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family-body);
    color: var(--text-color-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* --------------------------------
   2. Typography
   -------------------------------- */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.75em; /* Bulma default is 0.5em, increasing for more space */
}
.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 1em; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

a {
    color: var(--primary-rojo);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--primary-rojo-dark);
    text-decoration: underline;
}

.link-rojo {
    color: var(--primary-rojo) !important;
    font-weight: 600;
}
.link-rojo:hover {
    color: var(--primary-rojo-dark) !important;
    text-decoration: underline !important;
}

.section-title {
    color: var(--text-color-headings);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1rem !important; /* for .title class */
}
.section-subtitle {
    color: #555555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem !important; /* for .subtitle class */
}

/* --------------------------------
   3. Layout (Header, Footer, Container)
   -------------------------------- */
.container {
    max-width: 1140px; /* Standard container width */
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 4rem 1.5rem; /* More padding than Bulma default */
}

/* Header */
.header {
    background-color: rgba(26, 26, 26, 0.85); /* Dark, slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px var(--shadow-color-light);
}
.header .navbar {
    background-color: transparent; /* Navbar itself is transparent */
}
.header .navbar-item, .header .navbar-link {
    color: var(--text-color-medium);
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
}
.header .navbar-item:hover, .header .navbar-link:hover,
.header .navbar-item.is-active, .header .navbar-link.is-active {
    color: var(--primary-rojo);
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-light) !important;
}
.logo-accent {
    color: var(--primary-rojo) !important;
}

/* Burger menu for mobile */
.navbar-burger {
    color: var(--text-color-light);
}
.navbar-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-rojo);
}
.navbar-menu {
    background-color: rgba(26, 26, 26, 0.98); /* Solid on mobile dropdown */
}
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .header .navbar-item {
        padding: 0.75rem 1rem;
    }
}


/* Footer */
.footer.footer-rojo {
    background-color: var(--background-footer);
    color: var(--text-color-medium);
    padding: 3rem 1.5rem 2rem;
}
.footer-title {
    color: var(--text-color-light) !important;
    margin-bottom: 1rem;
    font-weight: 500;
}
.footer-text {
    color: #AAAAAA;
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-link {
    color: var(--text-color-medium);
    font-size: 0.95rem;
    transition: color var(--transition-speed) var(--transition-timing);
}
.footer-link:hover {
    color: var(--primary-rojo);
    text-decoration: none;
}
.footer ul {
    list-style: none;
    padding-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer .social-links-text a {
    display: inline-block;
    margin-right: 10px; /* If needed, otherwise handled by li */
}

/* --------------------------------
   4. Global Components
   -------------------------------- */

/* Buttons */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 500;
    border-radius: var(--border-radius-medium);
    padding: 0.75em 1.5em;
    transition: all var(--transition-speed) var(--transition-timing);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent; /* Default border */
}

.is-rojo-button.button.is-primary, .is-rojo-button.button { /* More specific to override Bulma */
    background-color: var(--primary-rojo);
    border-color: var(--primary-rojo);
    color: var(--text-color-light);
}
.is-rojo-button.button.is-primary:hover, .is-rojo-button.button:hover {
    background-color: var(--primary-rojo-dark);
    border-color: var(--primary-rojo-dark);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rojo), 0.4);
}
.is-rojo-button.button.is-primary.is-outlined, .is-rojo-button.button.is-outlined {
    background-color: transparent;
    border-color: var(--primary-rojo);
    color: var(--primary-rojo);
}
.is-rojo-button.button.is-primary.is-outlined:hover, .is-rojo-button.button.is-outlined:hover {
    background-color: var(--primary-rojo);
    color: var(--text-color-light);
    border-color: var(--primary-rojo);
}

/* Volumetric UI Elements */
.volumetric-button, .volumetric-input, .volumetric-element {
    border-radius: var(--border-radius-medium);
    transition: all 0.2s ease-out;
    box-shadow:
        0px 3px 5px rgba(0,0,0,0.1), /* Main shadow */
        inset 0px 1px 0px rgba(255,255,255,0.2), /* Top inner highlight */
        inset 0px -2px 1px rgba(0,0,0,0.1); /* Bottom inner shadow */
}
.volumetric-button:hover, .volumetric-input:focus, .volumetric-element:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0px 5px 10px rgba(0,0,0,0.15),
        inset 0px 1px 1px rgba(255,255,255,0.25),
        inset 0px -2px 2px rgba(0,0,0,0.15);
}
.volumetric-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0px 1px 2px rgba(0,0,0,0.1),
        inset 0px 2px 3px rgba(0,0,0,0.2), /* Pressed in look */
        inset 0px -1px 0px rgba(255,255,255,0.1);
}

/* Apply volumetric to Bulma inputs */
.input.volumetric-input, .textarea.volumetric-input {
    background-color: #fff; /* Ensure background for volumetric effect */
    border: 1px solid #dbdbdb; /* Bulma's default, can be adjusted */
}
.input.volumetric-input:focus, .textarea.volumetric-input:focus {
    border-color: var(--primary-rojo);
    box-shadow: /* Existing volumetric hover + Bulma's focus glow */
        0px 5px 10px rgba(0,0,0,0.15),
        inset 0px 1px 1px rgba(255,255,255,0.25),
        inset 0px -2px 2px rgba(0,0,0,0.15),
        0 0 0 0.125em rgba(var(--primary-rojo), 0.25);
}


/* Cards (General Styling) */
.card { /* Bulma base card */
    background-color: var(--text-color-light);
    box-shadow: 0 5px 15px var(--shadow-color-light);
    border-radius: var(--border-radius-large);
    overflow: hidden; /* Ensures child elements respect border radius */
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in columns */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color-medium);
}
.card .card-image { /* Bulma card image container */
    position: relative; /* For potential overlays */
}
.card .card-image .image-container { /* Custom container for img */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 220px; /* Standard height for card images */
    background-color: #f0f0f0; /* Placeholder bg */
}
.card .card-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.card:hover .card-image .image-container img {
    transform: scale(1.05);
}
.card .card-content {
    padding: 1.5rem;
    text-align: left; /* Default content alignment */
    flex-grow: 1; /* Allows content to fill space for equal height */
    display: flex;
    flex-direction: column;
}
.card .card-content .title.card-title { /* Specific for card titles */
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--text-color-headings);
}
.card .card-content .content {
    font-size: 0.95rem;
    color: #555555;
    flex-grow: 1;
}
/* For cards that need centered content */
.card.has-text-centered .card-content {
    text-align: center;
}

/* Glassmorphism Effect */
.glassmorphism-card {
    background: var(--glass-bg-light); /* For light theme, text is dark */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 8px 25px 0 var(--shadow-color-light);
    color: var(--text-color-dark); /* Ensure text is readable */
}
.glassmorphism-card-light { /* For use on darker backgrounds or when light text is needed */
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 20px 0 rgba(0,0,0,0.1);
    color: var(--text-color-dark); /* Text on lighter glass background */
}
.glassmorphism-form { /* For contact form */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(200, 200, 200, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}
.glassmorphism-form .label {
    color: var(--text-color-headings) !important;
    font-weight: 600;
}

/* Forms */
.label {
    color: var(--text-color-dark);
    font-weight: 600; /* Nunito bold */
}
.input, .textarea {
    border-radius: var(--border-radius-medium);
    border: 1px solid #D1D1D1;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.input:focus, .textarea:focus {
    border-color: var(--primary-rojo);
    box-shadow: 0 0 0 0.125em rgba(218, 0, 55, 0.25), inset 0 1px 3px rgba(0,0,0,0.06);
}
.control.has-icons-left .icon {
    color: #bdbdbd;
}

/* Timeline (Bulma extension) */
.timeline .timeline-header {
    background-color: var(--primary-rojo);
    color: var(--text-color-light);
}
.timeline .timeline-item .timeline-marker.is-primary-rojo {
    background-color: var(--primary-rojo);
    border-color: var(--primary-rojo);
}
.timeline .timeline-item .timeline-marker.is-primary-rojo:before {
    background-color: var(--primary-rojo);
}
.timeline .timeline-item .timeline-content {
    background-color: #fdf6f7; /* Very light red tint */
    border-left: 3px solid var(--primary-rojo);
    padding: 1em 1.5em;
    border-radius: var(--border-radius-medium);
}
.timeline .timeline-item .timeline-content .heading {
    color: var(--primary-rojo-dark);
    font-family: var(--font-family-headings);
    font-weight: 500;
}

/* --------------------------------
   5. Section Specific Styles
   -------------------------------- */

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For parallax shapes */
}
.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    color: var(--text-color-light) !important; /* IMPORTANT OVERRIDE */
    margin-bottom: 0.5em !important;
}
.hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    margin-bottom: 1.5em !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light) !important; /* IMPORTANT OVERRIDE */
}
.hero-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-color-light) !important; /* IMPORTANT OVERRIDE */
}
.has-text-primary-rojo {
    color: var(--primary-rojo) !important;
}
.hero-shape { /* Example for parallax shapes */
    position: absolute;
    background-color: rgba(var(--primary-rojo), 0.3);
    border-radius: 50%;
    opacity: 0; /* Hidden, shown by AOS/ScrollReveal */
}
.hero-shape-1 { width: 150px; height: 150px; bottom: 10%; left: 5%; }
.hero-shape-2 { width: 100px; height: 100px; top: 20%; right: 10%; }

/* Services Section */
.services-section .service-card {
    /* Specific service card styles if different from general .card */
}

/* Statistics Section */
#statistics {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.statistics-section .stat-item {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    border-radius: var(--border-radius-large);
    margin: 0.5rem;
    min-width: 200px; /* Ensure items have some width */
}
.statistics-section .stat-item .heading {
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.statistics-section .stat-item .title.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-rojo);
    margin-bottom: 0 !important;
}

/* Portfolio Section */
.portfolio-section .portfolio-card {
    /* Styles specific to portfolio cards */
}

/* External Resources Section */
.external-links-section .resource-card {
    margin-bottom: 1rem; /* Space between cards */
}
.external-links-section .resource-card .card-content {
    padding: 1rem 1.25rem;
}
.external-links-section .resource-card .title.is-5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.external-links-section .resource-card .content.is-small {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}


/* Careers Section */
.careers-section .image img {
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 20px var(--shadow-color-medium);
}
.careers-section .timeline-container {
    margin-top: 3rem;
}

/* Contact Section */
.contact-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color-dark);
}
.contact-details p i {
    margin-right: 10px;
    color: var(--primary-rojo);
}


/* --------------------------------
   6. Page Specific Styles
   -------------------------------- */
/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
    padding: 2rem;
}
.success-page .success-container {
    background: var(--text-color-light);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px var(--shadow-color-medium);
    max-width: 600px;
}
.success-page .success-icon {
    font-size: 4rem;
    color: var(--primary-rojo);
    margin-bottom: 1rem;
}

/* Privacy Policy & Terms Pages */
body.privacy-page main > .container,
body.terms-page main > .container {
    padding-top: calc(52px + 4rem); /* Navbar height (approx 52px) + extra space */
    padding-bottom: 4rem;
}
.privacy-page .content h2, .terms-page .content h2 { margin-top: 2rem; }
.privacy-page .content h3, .terms-page .content h3 { margin-top: 1.5rem; }


/* --------------------------------
   7. Utility Classes
   -------------------------------- */
.has-text-primary-rojo {
    color: var(--primary-rojo) !important;
}
.has-background-light-rojo {
    background-color: #FFF5F5 !important; /* Very light red/pink tint */
}
.has-background-grey-lighter-rojo {
    background-color: #f7f7f7 !important; /* Slightly off-white */
}
.has-background-light-rojo-gradient {
    /* Handled by inline style in HTML, but could be defined here if static */
}
.is-primary-rojo { /* For Bulma components like tags, timeline markers */
    background-color: var(--primary-rojo) !important;
    color: var(--text-color-light) !important;
}

/* Read More Links */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--primary-rojo);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative; /* For pseudo-element underline */
    padding-bottom: 3px;
}
.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-rojo-dark);
    transition: width var(--transition-speed) var(--transition-timing);
}
.read-more-link:hover::after {
    width: 100%;
}
.read-more-link:hover {
    color: var(--primary-rojo-dark);
    text-decoration: none;
}


/* --------------------------------
   8. Animations (AOS/ScrollReveal will handle most)
   -------------------------------- */
/* Example of a morphing hover for cards - subtle */
.card.morph-hover:hover {
    border-radius: 25px 5px 25px 5px; /* Example morph */
}

/* Animation for number counters (JS will trigger this by adding a class or changing value) */
.stat-number {
    transition: all 1.5s ease-out;
}

/* --------------------------------
   9. Responsive Adjustments
   -------------------------------- */
@media screen and (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .title.is-2, .section-title { font-size: 2rem; }
    .columns.is-reversed-mobile { flex-direction: column-reverse; }
    .section { padding: 3rem 1rem; }

    .statistics-section .level-item {
        margin-bottom: 1.5rem;
    }
    .statistics-section .level {
        display: block; /* Stack level items */
    }
     .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 2rem;
    }
}

/* Cookie Popup styles from HTML, slightly enhanced */
#cookie-popup {
    font-family: var(--font-family-body);
}
#cookie-popup p a:hover {
    text-decoration: underline;
}
#cookie-popup button#accept-cookie:hover {
    background-color: var(--primary-rojo-dark) !important;
}
#cookie-popup button#close-cookie-popup:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* Ensure Font Awesome icons are sized correctly if used */
.fas, .fab, .far, .fal { /* Generic Font Awesome classes */
    line-height: inherit; /* Prevent alignment issues */
}