/* style.css */

/* -------------------------------------------------------------------------- */
/*                               CSS Variables                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Analogous Color Scheme (Orange-centric) */
    --primary-color: #F97316; /* Vibrant Orange */
    --primary-color-darker: #DD6B20; /* Darker Orange for hover/active */
    --secondary-color: #EA580C; /* Reddish Orange */
    --accent-color: #F59E0B; /* Amber / Yellowish Orange */

    /* Neutral Colors */
    --text-color: #374151; /* Gray 700 - Main body text */
    --text-light: #FFFFFF;
    --heading-color: #111827; /* Gray 900 - Headings */
    --background-light: #FDF6E3; /* Creamy light background for warmth */
    --background-section-alt: #FFFBEB; /* Slightly different light for section variation */
    --card-background: #FFFFFF;
    --border-color: #E5E7EB; /* Gray 300 */
    --input-focus-border: var(--primary-color);
    --input-background: #FFFFFF;

    /* Fonts */
    --font-family-headings: 'Inter', BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --font-family-body: 'IBM Plex Sans', BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;

    /* Transitions & Animations */
    --transition-speed: 0.3s ease-in-out;
    --animation-duration: 0.5s;

    /* Spacing & Sizing */
    --section-padding: 4rem 1.5rem;
    --container-max-width: 1152px; /* Bulma's $desktop */
    --navbar-height: 52px; /* Default Bulma navbar height */
}

/* -------------------------------------------------------------------------- */
/*                               Global Styles                                */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    font-size: 100%; /* Corresponds to 16px */
    background-color: var(--background-light);
    color: var(--text-color);
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 0px !important;
}

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

/* Headings - Adaptive Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em; /* Default spacing */
}

.title.is-1 { font-size: clamp(2.5rem, 5vw, 3.75rem); } /* 40px to 60px */
.title.is-2 { font-size: clamp(2rem, 4vw, 3rem); text-shadow: 1px 1px 2px rgba(0,0,0,0.1); } /* 32px to 48px */
.title.is-3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); } /* 28px to 40px */
.title.is-4 { font-size: clamp(1.25rem, 3vw, 1.75rem); } /* 20px to 28px */
.title.is-5 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); } /* 18px to 20px */

.subtitle.is-4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--text-color); } /* 18px to 24px */
.subtitle.is-5 { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-color); } /* 16px to 20px */
.subtitle.is-6 { font-size: clamp(0.875rem, 1.8vw, 1rem); color: var(--text-color); } /* 14px to 16px */

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); /* Adaptive body text */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Styling */
.section {
    padding: var(--section-padding);
}
.section:nth-of-type(even) { /* Alternate section background for visual rhythm */
    background-color: var(--background-section-alt);
}

.section-title {
    margin-bottom: 1rem;
    color: var(--heading-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}
.section-title.has-text-centered + .subtitle.has-text-centered {
    margin-bottom: 2.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                  Buttons                                   */
/* -------------------------------------------------------------------------- */
.button, button, input[type="submit"], input[type="button"], input[type="reset"] {
    font-family: var(--font-family-headings);
    font-weight: 500;
    padding: 0.75em 1.5em;
    border-radius: 8px; /* Softer, modern corners */
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    cursor: pointer;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:focus, button:focus, input[type="submit"]:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-color), 0.2);
}

.button.is-link.is-light { /* For "Read Full Story" type links */
    background-color: var(--accent-color);
    color: var(--heading-color);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}
.button.is-link.is-light:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-1px);
}


/* -------------------------------------------------------------------------- */
/*                                Form Elements                               */
/* -------------------------------------------------------------------------- */
.input, .textarea {
    font-family: var(--font-family-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75em 1em;
    background-color: var(--input-background);
    color: var(--text-color);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}
.input:focus, .textarea:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color), 0.25);
    outline: none;
}
.label {
    color: var(--heading-color);
    font-weight: 500;
    font-family: var(--font-family-headings);
    margin-bottom: 0.5em;
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                                   Header                                   */
/* -------------------------------------------------------------------------- */
.header {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.navbar {
    background-color: transparent; /* Handled by .header */
    min-height: var(--navbar-height);
}
.navbar-brand .site-title {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--heading-color);
}
.navbar-brand .site-title .has-text-primary {
    color: var(--primary-color) !important;
}
.navbar-item {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--text-color);
    transition: color var(--transition-speed), background-color var(--transition-speed);
    padding: 0.5rem 1rem;
}
.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent;
    color: var(--primary-color);
}
.navbar-burger {
    color: var(--heading-color);
}
.navbar-burger span {
    background-color: var(--heading-color);
    height: 2px; /* Thinner lines for modern look */
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
    }
    .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}


/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-light); /* Enforced by prompt */
    position: relative;
}
.hero-section .hero-body {
    padding: 6rem 1.5rem; /* More padding for impact */
    position: relative;
    z-index: 1; /* Above the ::before pseudo-element if used for overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - var(--navbar-height)); /* Ensure it's substantial */
}
.hero-section .hero-title {
    color: var(--text-light) !important; /* Ensure white text */
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-section .hero-subtitle {
    color: var(--text-light) !important; /* Ensure white text */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
.hero-section .button {
    font-size: 1.1rem;
    padding: 1em 2em;
}

/* -------------------------------------------------------------------------- */
/*                               Card Styling                                 */
/* -------------------------------------------------------------------------- */
.card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden; /* To ensure child elements with radius also clip */
    display: flex; /* For STROGO requirements */
    flex-direction: column;
    /* height: 100%; */
    min-height: 350px;
    
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.card .card-image { /* Bulma's .card-image */
    overflow: hidden; /* For image zoom effect if added */
    display: flex; /* For STROGO */
    align-items: center; /* For STROGO */
    justify-content: center; /* For STROGO */
    max-height: 250px; /* Example fixed height for image containers */
}
.card .card-image img {
    width: 100%;
    height: 100%; /* For STROGO */
    object-fit: cover; /* For STROGO */
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}
.card .card-content {
    padding: 1.75rem;
    text-align: left; /* Default text alignment */
    flex-grow: 1; /* Allows content to fill space if card heights are matched */
    display: flex;
    flex-direction: column;
}
.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: 0.5rem;
}
.card .card-content .content {
    margin-top: 0.75rem;
    flex-grow: 1; /* Pushes button to bottom if card content varies */
}
.card .card-content .button {
    margin-top: auto; /* Pushes button to the bottom of card-content */
    align-self: flex-start; /* Align button to the start of the cross axis */
}
/* For centered content cards (like statistics) */
.card.has-text-centered .card-content {
    text-align: center;
}
.card.has-text-centered .card-content .button {
    align-self: center;
}


/* -------------------------------------------------------------------------- */
/*                            Statistics Section                            */
/* -------------------------------------------------------------------------- */
.statistics-section .statistic-card .title.is-1 {
    color: var(--primary-color) !important;
    font-weight: 900;
    margin-bottom: 0.25rem;
}
.statistics-section .statistic-card .subtitle.is-4 {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.statistics-section .statistic-card p:not(.title):not(.subtitle) {
    font-size: 0.95rem;
    color: var(--text-color);
}


/* -------------------------------------------------------------------------- */
/*                         Success Stories Section                          */
/* -------------------------------------------------------------------------- */
.success-stories-section .success-story-card .title.is-4 {
    margin-bottom: 0.25rem;
}
.success-stories-section .success-story-card .subtitle.is-6 {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                             Innovation Section                             */
/* -------------------------------------------------------------------------- */
.innovation-section .content.is-medium p {
    font-size: 1.15rem;
    line-height: 1.7;
}
.innovation-section figure.is-square img {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------------- */
/*                             Portfolio Section                              */
/* -------------------------------------------------------------------------- */
.portfolio-section .custom-slider { /* Basic styling, JS would enhance this */
    display: flex;
    overflow-x: auto; /* Simple horizontal scroll for now */
    gap: 1.5rem;
    padding-bottom: 1rem; /* For scrollbar */
}
.portfolio-section .slider-item {
    min-width: 70%; /* Adjust as needed */
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}
.portfolio-section .slider-item img {
    width: 100%;
    height: auto; /* Or fixed height with object-fit: cover */
    display: block;
}
.portfolio-section .slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: var(--text-light);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}
.portfolio-section .slider-caption p {
    margin: 0;
    font-size: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                              Partners Section                              */
/* -------------------------------------------------------------------------- */
.partners-section img {
    max-height: 60px; /* Control logo size */
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
}
.partners-section img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                         Behind the Scenes (Accordion)                        */
/* -------------------------------------------------------------------------- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background-color: var(--card-background);
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
.accordion-header {
    background-color: transparent;
    color: var(--heading-color);
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    font-family: var(--font-family-headings);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed);
}
.accordion-header:hover {
    background-color: var(--background-section-alt);
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-speed);
    color: var(--primary-color);
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion-content p {
    margin: 0;
    padding: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
}
.accordion-item.active .accordion-content {
    /* max-height will be set by JS, but provide a large enough fallback */
    max-height: 500px; /* Adjust if content is larger */
    padding: 0 1.5rem; /* Match header padding for content block */
}


/* -------------------------------------------------------------------------- */
/*                              Gallery Section                               */
/* -------------------------------------------------------------------------- */
.gallery-section .image.is-4by3 {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.gallery-section .image.is-4by3 img {
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-section .image.is-4by3:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* -------------------------------------------------------------------------- */
/*                            Testimonials Section                            */
/* -------------------------------------------------------------------------- */
.testimonials-section .testimonial-card {
    border-left: 5px solid var(--primary-color);
}
.testimonials-section .testimonial-card .media-left img.is-rounded {
    border: 3px solid var(--accent-color);
}
.testimonials-section .testimonial-card .title.is-5 {
    font-weight: 600;
}
.testimonials-section .testimonial-card .subtitle.is-6 {
    color: var(--secondary-color);
    font-style: italic;
}
.testimonials-section .testimonial-card .content {
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-color); /* Darker than default paragraph for emphasis */
}

/* -------------------------------------------------------------------------- */
/*                             Resources Section                              */
/* -------------------------------------------------------------------------- */
.resources-section .resource-card {
    border-top: 4px solid var(--accent-color);
}
.resources-section .resource-card .title.is-5 a {
    color: var(--heading-color);
    font-weight: 600;
}
.resources-section .resource-card .title.is-5 a:hover {
    color: var(--primary-color);
}
.resources-section .resource-card .content {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* -------------------------------------------------------------------------- */
/*                              Contact Section                               */
/* -------------------------------------------------------------------------- */
.contact-section .contact-form-styled {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.contact-section .contact-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--background-section-alt);
    border-radius: 8px;
}
.contact-section .contact-details p {
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--heading-color); /* Dark background for footer */
    color: #A0AEC0; /* Light gray text for footer */
    padding: 3rem 1.5rem 2rem;
}
.footer .title.is-5 {
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer p, .footer ul li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.footer a {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}
.footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.footer hr {
    background-color: #4A5568; /* Slightly darker gray for HR */
    height: 1px;
    margin: 1.5rem 0;
}
.footer .content.has-text-centered p {
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*                            Specific Page Styles                            */
/* -------------------------------------------------------------------------- */
/* For success.html page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-page .success-container {
    background-color: var(--card-background);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
}
.success-page .success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* For privacy.html, terms.html, about.html, contacts.html (content pages) */
.page-content-section {
    padding-top: calc(var(--navbar-height) + 2rem); /* Ensure content below fixed header */
    padding-bottom: 3rem;
    min-height: calc(100vh - var(--navbar-height) - 150px); /* Approximate footer height */
}
.page-content-section .content h1,
.page-content-section .content h2,
.page-content-section .content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}
.page-content-section .content p,
.page-content-section .content ul,
.page-content-section .content ol {
    margin-bottom: 1em;
    line-height: 1.7;
}
.page-content-section .content ul,
.page-content-section .content ol {
    padding-left: 1.5em;
}


/* -------------------------------------------------------------------------- */
/*                         Animation Helper Classes                           */
/* -------------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--animation-duration) cubic-bezier(0.175, 0.885, 0.32, 1.275), transform var(--animation-duration) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* For staggered animations */
.stagger-card-animation .column { /* Or .card directly if not in columns */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* -------------------------------------------------------------------------- */
/*                              Cookie Consent                                */
/* -------------------------------------------------------------------------- */
/* Styles for #cookieConsentPopup are inline in HTML as per prompt */


/* -------------------------------------------------------------------------- */
/*                             Responsive Adjustments                         */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .title.is-1 { font-size: 2rem; }
    .title.is-2 { font-size: 1.75rem; }
    .hero-section .hero-body {
        padding: 4rem 1rem;
        min-height: 60vh;
    }
    .columns.is-multiline .column {
        margin-bottom: 1.5rem; /* Space between stacked cards */
    }
    .portfolio-section .slider-item {
        min-width: 85%;
    }
    .contact-section .contact-form-styled {
        padding: 1.5rem;
    }
    .footer {
        text-align: center;
    }
    .footer .columns > .column {
        margin-bottom: 1.5rem;
    }
}
*{
    opacity: 1 !important;
}
figure{
    width: 100%;
}
.title.is-4{
    margin-bottom: 20px !important; 
}
.subtitle.is-6{
    margin-top: 20px !important;
}