/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #EF476F; /* Paradise Pink - Bright & Energetic */
    --primary-color-dark: #D83C60;
    --secondary-color: #FFD166; /* Sunglow Yellow - Contrasting Bright */
    --secondary-color-dark: #E5B950;
    --accent-color: #06D6A0; /* Caribbean Green - Vibrant Accent */
    --accent-color-dark: #05B084;
    --neutral-color: #118AB2; /* Blue Sapphire - Calming Neutral */
    --neutral-color-light: #62B9D3;

    --background-color: #F8F9FA; /* Very light grey, almost white */
    --card-background-color: #FFFFFF;
    --text-color: #212529; /* Dark grey for high contrast on light backgrounds */
    --text-color-light: #495057; /* Slightly lighter grey */
    --light-text-color: #FFFFFF; /* For dark backgrounds */
    --border-color: #DEE2E6;

    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;

    --biomorphic-radius-small: 15px;
    --biomorphic-radius: 25px;
    --biomorphic-radius-large: 50px;

    --soft-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --strong-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    --retro-glow-primary: 0 0 15px var(--primary-color);
    --retro-glow-accent: 0 0 15px var(--accent-color);

    --navbar-height: 0px; /* Bulma's default navbar height */
    --section-padding: 4rem 1.5rem;
    --content-max-width: 1100px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;

    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-color); /* Ensure high contrast */
    font-weight: 700;
}

.title {
    color: #222222; /* Darker titles */
}
.subtitle {
    color: var(--text-color-light);
}

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

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

p {
    margin-bottom: 1rem;
    color: var(--text-color-light); /* Slightly softer text for paragraphs */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space */
}

.container {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Override Bulma's primary color if needed or use Bulma's variables */
.has-text-primary { color: var(--primary-color) !important; }
.has-background-primary { background-color: var(--primary-color) !important; }


/*--------------------------------------------------------------
# Header / Navbar
--------------------------------------------------------------*/
.header.is-fixed-top .navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--soft-shadow);
}

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

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
}

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

.navbar-burger span {
    background-color: var(--primary-color);
    height: 3px; /* Thicker burger lines */
    width: 24px;
}
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/*--------------------------------------------------------------
# Global Button Styles
--------------------------------------------------------------*/
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-heading);
    border-radius: var(--biomorphic-radius-large); /* Pill shape */
    padding: 0.8em 1.8em;
    font-weight: 700; /* Bulma uses 500, making it bolder */
    transition: all 0.3s ease-in-out;
    border-width: 2px; /* Ensure border is visible for outlined */
    border-style: solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5; /* Ensure text is centered vertically */
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--strong-shadow);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(-1px) scale(1);
    box-shadow: var(--soft-shadow);
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text-color);
}
.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--light-text-color);
}

.button.is-secondary { /* Example for another button type */
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
}
.button.is-secondary:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    color: var(--text-color);
}

.button.is-link.is-outlined { /* For "Read More" style links */
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
    padding: 0.6em 1.5em;
    font-size: 0.9rem;
}
.button.is-link.is-outlined:hover {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.button.is-biomorphic { /* This class enhances any button */
    /* Add specific biomorphic flair, e.g. more pronounced radius or subtle gradient */
    /* Example: border-radius: 20px 50px 20px 50px / 50px 20px 50px 20px; */
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden; /* For particles */
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)); /* Darker overlay */
    z-index: 1;
}

#particles-js-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Particles above overlay, below content */
}

#hero .hero-body {
    position: relative;
    z-index: 3; /* Content above particles and overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-title {
    color: var(--light-text-color); /* Explicitly white as requested */
    font-size: 3rem; /* Adjust as needed */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

#hero .hero-subtitle {
    color: var(--light-text-color); /* Explicitly white */
    font-size: 1.5rem; /* Adjust as needed */
    margin-bottom: 2rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
#hero .hero-text {
    color: var(--light-text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

#hero .button.is-primary {
    padding: 1em 2.5em;
    font-size: 1.1rem;
    box-shadow: var(--retro-glow-primary);
}
#hero .button.is-primary:hover {
    box-shadow: 0 0 25px var(--primary-color);
}

.parallax-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%; /* Example height */
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: 2; /* Same as particles */
    opacity: 0.7;
}


/*--------------------------------------------------------------
# General Section Styling
--------------------------------------------------------------*/
.section {
    padding: var(--section-padding);
    position: relative; /* For potential particle backgrounds in other sections */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color); /* Dark color for titles */
    text-align: center;
}
.section .subtitle { /* Subtitle for section heading */
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-color-light);
}

/*--------------------------------------------------------------
# Card Styling (General)
--------------------------------------------------------------*/
.card {
    background-color: var(--card-background-color);
    border-radius: var(--biomorphic-radius);
    box-shadow: var(--soft-shadow);
    transition: all 0.3s ease-in-out;
    overflow: hidden; /* Ensures content respects border-radius */
    display: flex; /* Bulma default */
    flex-direction: column; /* Bulma default */
    height: 100%; /* For consistent card heights in a row */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--strong-shadow);
}

.card .card-image, /* Bulma class for image container */
.card .image-container /* Custom class if used */ {
    overflow: hidden; /* Important for child img object-fit */
    position: relative;
    /* Fixed height for image area - adjust as needed. Bulma's aspect ratio classes are good too. */
    /* height: 200px; */
}

.card .card-image img,
.card .image-container img {
    width: 100%;
    height: 100%; /* Fill the container, works with fixed height or aspect ratio */
    object-fit: cover; /* Crucial for responsive, non-distorted images */
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-image img,
.card:hover .image-container img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to push footer down if card has one */
    /* text-align: center; /* As per strict rule for content centering */
}
.card .card-content .title,
.card .card-content .subtitle {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}
.card .card-content .title.is-4 {
    font-size: 1.25rem;
}
.card .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color-light);
}

/* Biomorphic card variation */
.card.is-biomorphic {
    border-radius: var(--biomorphic-radius-small) var(--biomorphic-radius-large) var(--biomorphic-radius-small) var(--biomorphic-radius-large);
    /* background: linear-gradient(135deg, var(--card-background-color) 0%, var(--background-color) 100%); */
}


/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features-section .feature-card .card-content {
    text-align: center;
}
.features-section .feature-card .title.is-4 {
    color: var(--neutral-color);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-section .service-card .card-image {
    /* height: 220px; /* Example fixed height */
}
.services-section .service-card .title.is-4 {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Methodology Section (Timeline)
--------------------------------------------------------------*/
.methodology-section .timeline {
    max-width: 800px; /* Or adjust based on content */
    margin: 0 auto;
}
.timeline .timeline-header .tag {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-size: 1rem;
    padding: 0.5em 1em;
    border-radius: var(--biomorphic-radius-large);
}
.timeline .timeline-item .timeline-marker {
    background-color: var(--secondary-color) !important; /* Override Bulma */
    border: 3px solid var(--background-color) !important;
}
.timeline .timeline-item .timeline-marker.is-primary { /* If used for current/active */
    background-color: var(--primary-color) !important;
}
.timeline .timeline-item .timeline-marker.is-biomorphic-marker {
    width: 20px;
    height: 20px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic shape */
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--secondary-color-rgb, 255,209,102), 0.7); } /* Define --secondary-color-rgb if using this */
    70% { box-shadow: 0 0 0 10px rgba(var(--secondary-color-rgb, 255,209,102), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--secondary-color-rgb, 255,209,102), 0); }
}
.timeline .timeline-content {
    padding: 1em 2em;
    background-color: var(--card-background-color);
    border-radius: var(--biomorphic-radius-small);
    box-shadow: var(--soft-shadow);
}
.timeline .timeline-content .heading {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.timeline .timeline-content p:not(.heading) {
    font-size: 0.95rem;
}

/*--------------------------------------------------------------
# Insights Section
--------------------------------------------------------------*/
.insights-section .insight-card .card-image {
    /* height: 250px; */
}
.insights-section .insight-card .title.is-4 {
    color: var(--neutral-color);
}
.insights-section .button.is-link.is-outlined { /* "Read More" links */
    margin-top: 1rem;
}
.insights-carousel { /* For JS driven carousel */
    /* Basic styling for structure, JS will handle items */
}
.carousel-prev, .carousel-next {
    margin: 0.5rem;
    background-color: var(--accent-color) !important;
    color: var(--light-text-color) !important;
}
.carousel-prev:hover, .carousel-next:hover {
    background-color: var(--accent-color-dark) !important;
}


/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery-section .gallery-card {
    border-radius: var(--biomorphic-radius-small);
    box-shadow: var(--strong-shadow); /* More emphasis for gallery items */
}
.gallery-section .gallery-card .card-image figure.is-1by1 {
    /* Bulma handles aspect ratio. Image should fill. */
}
.gallery-section .gallery-card .card-image img {
    border-radius: var(--biomorphic-radius-small); /* If card is just image */
}

/*--------------------------------------------------------------
# Clientele Section
--------------------------------------------------------------*/
.clientele-section .client-logos-carousel img {
    max-height: 60px; /* Control logo size */
    width: auto;
    margin: 1rem auto; /* Center logos */
    filter: grayscale(80%);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.clientele-section .client-logos-carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
.clientele-section .client-logos-carousel .column p {
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-align: center;
    margin-top: -0.5rem;
}


/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.external-resources-section .resource-card {
    background-color: var(--neutral-color-light); /* Different background */
    border-left: 5px solid var(--neutral-color);
}
.external-resources-section .resource-card .card-content .title a {
    color: var(--light-text-color);
    font-weight: 700;
}
.external-resources-section .resource-card .card-content .title a:hover {
    color: var(--secondary-color);
}
.external-resources-section .resource-card .card-content .subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
    background-color: var(--neutral-color-light); /* Light blue tint */
}
.contact-section .section-title, .contact-section .subtitle, .contact-section .label {
    color: var(--light-text-color);
}
.contact-section p {
    color: var(--light-text-color);
}

.input.is-biomorphic-input,
.textarea.is-biomorphic-input,
.select.is-fullwidth select.is-biomorphic-input {
    border-radius: var(--biomorphic-radius);
    border: 2px solid var(--border-color);
    box-shadow: none; /* Remove Bulma's default focus shadow if we add our own */
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.9);
    color: var(--text-color);
}
.input.is-biomorphic-input:focus,
.textarea.is-biomorphic-input:focus,
.select.is-fullwidth select.is-biomorphic-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color-rgb, 239,71,111), 0.25); /* Define --primary-color-rgb */
}
.select.is-fullwidth::after { /* Arrow for select */
    border-color: var(--primary-color) !important;
}
.contact-section .checkbox input[type="checkbox"] {
    margin-right: 0.5em;
}
.contact-section .checkbox a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.contact-section .checkbox a:hover {
    color: var(--secondary-color-dark);
}
.contact-section .contact-info strong {
    color: var(--light-text-color);
}
.contact-section .contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background-color: #2c3e50; /* Dark Blue/Grey - Retro Consoles */
    color: rgba(255,255,255,0.7);
    padding: 3rem 1.5rem 2rem; /* Less bottom padding for copyright */
}
.footer .title.is-5.footer-title {
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}
.footer ul {
    list-style: none;
    margin-left: 0;
}
.footer ul li {
    margin-bottom: 0.75rem;
}
.footer ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}
.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
    text-decoration: none;
}
.footer ul li a:hover::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}
.footer .content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer .content p#currentYear {
    /* Span itself, nothing specific */
}
.footer .column p a { /* For social media text links */
    color: rgba(255,255,255,0.7);
    font-weight: bold;
}
.footer .column p a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/*--------------------------------------------------------------
# Animations on Scroll (Basic Setup)
--------------------------------------------------------------*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/
/* success.html */
body.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--neutral-color-light);
    color: var(--light-text-color);
    padding-top: 0; /* Override body padding-top if header is not on this page */
}
.success-container {
    padding: 2rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: var(--biomorphic-radius);
    box-shadow: var(--strong-shadow);
}
.success-container h1 {
    color: var(--light-text-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.success-container p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.success-container .button {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border-color: var(--accent-color);
}
.success-container .button:hover {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}


/* privacy.html, terms.html */
body.privacy-page main, body.terms-page main,
body.about-page main, body.contacts-page main { /* Added about and contacts as they are separate pages */
    padding: var(--section-padding);
    background-color: var(--card-background-color); /* Lighter background for content pages */
    min-height: calc(100vh - var(--navbar-height) - 150px); /* 150px approx footer height */
}

body.privacy-page .container, body.terms-page .container,
body.about-page .container, body.contacts-page .container {
    max-width: 800px; /* Narrower for text-heavy pages */
}

body.privacy-page h1, body.terms-page h1, body.about-page h1, body.contacts-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}
body.privacy-page h2, body.terms-page h2, body.about-page h2, body.contacts-page h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--neutral-color);
}
body.privacy-page p, body.terms-page p, body.about-page p, body.contacts-page p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}
body.privacy-page ul, body.terms-page ul, body.about-page ul, body.contacts-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}
body.privacy-page ul li, body.terms-page ul li, body.about-page ul li, body.contacts-page ul li {
    margin-bottom: 0.5rem;
}


/*--------------------------------------------------------------
# Cookie Consent Popup
--------------------------------------------------------------*/
#cookieConsentPopup {
    /* Inline styles take precedence, but good to have defaults here */
    /* background-color: rgba(0,0,0,0.9) !important; */ /* Ensure dark if overriding */
    /* color: var(--light-text-color) !important; */
}
#cookieConsentPopup p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: var(--light-text-color); /* Ensures it uses variable if not overridden by inline */
}
#cookieConsentPopup a {
    color: var(--secondary-color); /* Use theme color */
    text-decoration: underline;
}
#cookieConsentPopup button#acceptCookieButton {
    background-color: var(--secondary-color);
    color: var(--text-color); /* Good contrast with bright yellow */
    border-radius: var(--biomorphic-radius);
    padding: 8px 18px;
    font-size: 0.9rem;
    border: none;
}
#cookieConsentPopup button#acceptCookieButton:hover {
    background-color: var(--secondary-color-dark);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media screen and (max-width: 1023px) { /* Bulma's $desktop breakpoint */
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0 0 var(--biomorphic-radius-small) var(--biomorphic-radius-small);
    }
    .navbar-item, .navbar-link {
        padding: 0.75rem 1rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    #hero .hero-title {
        font-size: 2.5rem;
    }
    #hero .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) { /* Bulma's $tablet breakpoint */
    body {
        padding-top: var(--navbar-height); /* Already set, but ensure it's fine */
    }
    .columns.is-multiline .column {
        margin-bottom: 1.5rem; /* Add space between cards when they stack */
    }
    .section {
        padding: 2.5rem 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    #hero .hero-title {
        font-size: 2rem;
    }
    #hero .hero-subtitle {
        font-size: 1.1rem;
    }
    #hero .hero-text {
        font-size: 1rem;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 2rem;
    }
    .footer .title.is-5.footer-title {
        margin-bottom: 1rem;
    }
    .input.is-biomorphic-input,
    .textarea.is-biomorphic-input,
    .select.is-fullwidth select.is-biomorphic-input {
        font-size: 1rem; /* Ensure readability on mobile */
    }
}

/* Utility to define RGB versions of colors for RGBA usage if needed by JS/CSS that can't parse hex in rgba() */
:root {
    --primary-color-rgb: 239, 71, 111; /* For #EF476F */
    --secondary-color-rgb: 255, 209, 102; /* For #FFD166 */
    --accent-color-rgb: 6, 214, 160; /* For #06D6A0 */
}