/* style.css */

/* -------------------------------------------------------------------------- */
/*                                  VARIABLES                                 */
/* -------------------------------------------------------------------------- */
:root {
    --primary-color: #3B82F6; /* Vivid Blue */
    --primary-color-dark: #2563EB; /* Darker Blue for hover/active */
    --secondary-color: #2DD4BF; /* Teal - Analogous */
    --accent-color: #8B5CF6; /* Violet - Analogous */

    --text-color: #363636; /* Bulma default text, good contrast */
    --text-color-light: #ffffff;
    --text-color-medium: #4A4A4A; /* For subtitles, less emphasis text */
    --text-color-subtle: #7A7A7A; /* For muted text, placeholders */
    --text-color-headings: #222222; /* Darker for strong headings */

    --background-color: #ffffff;
    --background-light-section: #F7F9FC; /* Very light, slightly cool gray */
    --card-background-color: #ffffff;
    --footer-background-color: #1A1A1A; /* Very dark gray for footer */
    --border-color: #DBDBDB; /* Bulma's default border */

    --font-family-headings: 'Roboto', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;
    --border-radius-rounded: 9999px;

    /* Volumetric Shadows */
    --shadow-volumetric-idle: 0 4px 10px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0,0,0,0.06);
    --shadow-volumetric-hover: 0 7px 14px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0,0,0,0.08);
    --shadow-volumetric-active: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0,0,0,0.05);

    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --navbar-height: 52px; /* Default Bulma navbar height for padding adjustments */
}

/* -------------------------------------------------------------------------- */
/*                                GLOBAL STYLES                               */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700;
}

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

.section {
    padding: 4rem 1.5rem; /* Increased padding for more space */
}
.section.has-background-light {
    background-color: var(--background-light-section);
}

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

/* Ensure Bulma container doesn't get too wide on very large screens */
.container {
    max-width: 1152px; /* Bulma's $desktop width, can be $widescreen (1344px) too */
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 2.5rem !important; /* Spacing below section titles */
    color: var(--text-color-headings) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Content specific pages padding (Privacy, Terms) */
.page-content-container {
    padding-top: calc(var(--navbar-height) + 40px); /* Navbar height + extra space */
    padding-bottom: 40px;
    min-height: calc(100vh - var(--navbar-height) - 180px); /* Adjust 180px based on footer height */
}
.page-content-container .content h1,
.page-content-container .content h2,
.page-content-container .content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}


/* -------------------------------------------------------------------------- */
/*                                  HEADER & NAV                              */
/* -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar {
    min-height: var(--navbar-height);
}

.navbar-item, .navbar-link {
    font-family: var(--font-family-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color-medium);
}
.navbar-item:hover, .navbar-link:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}
.navbar-item.is-active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.navbar-burger {
    color: var(--text-color-medium);
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.03);
}

/* Adjust main content to not be hidden by fixed navbar */
body {
    padding-top: var(--navbar-height);
}


/* -------------------------------------------------------------------------- */
/*                                HERO SECTION                                */
/* -------------------------------------------------------------------------- */
.hero-background {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
/* Linear gradient is applied inline in HTML, which is good for dynamic images */

.hero .title, .hero .subtitle {
    color: var(--text-color-light) !important; /* Ensure white text */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Stronger shadow for readability */
}

/* -------------------------------------------------------------------------- */
/*                               BUTTONS & FORMS                              */
/* -------------------------------------------------------------------------- */
.button {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius-rounded); /* Rounded by default for modern look */
    transition: var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    padding-left: 1.5em;
    padding-right: 1.5em;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: transparent;
    transform: translateY(-2px);
}
.button.is-primary:active {
    background-color: var(--primary-color-dark);
    transform: translateY(0px);
}

.volumetric-button {
    box-shadow: var(--shadow-volumetric-idle);
}
.volumetric-button:hover {
    box-shadow: var(--shadow-volumetric-hover);
    transform: translateY(-3px) scale(1.02);
}
.volumetric-button:active {
    box-shadow: var(--shadow-volumetric-active);
    transform: translateY(-1px) scale(0.98);
}

.input, .textarea, .select select {
    font-family: var(--font-family-body);
    border-radius: var(--border-radius-medium);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    background-color: var(--background-color);
    color: var(--text-color);
}
.input:focus, .textarea:focus, .select select:focus,
.input.is-focused, .textarea.is-focused, .select select.is-focused,
.input:active, .textarea:active, .select select:active,
.input.is-active, .textarea.is-active, .select select.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(59, 130, 246, 0.25); /* Primary color with alpha */
}
.select::after { /* Style Bulma's select arrow */
    border-color: var(--primary-color);
}

.volumetric-input, .volumetric-select .select, .volumetric-select select {
    box-shadow: var(--shadow-volumetric-idle);
    transition: var(--transition-medium);
}
.volumetric-input:focus, .volumetric-select .select:focus-within {
    box-shadow: var(--shadow-volumetric-hover), 0 0 0 0.125em rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}
.label {
    font-family: var(--font-family-headings);
    color: var(--text-color-medium);
    font-weight: 600;
}
.checkbox:hover {
    color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/*                                    CARDS                                   */
/* -------------------------------------------------------------------------- */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-card);
    transition: var(--transition-medium);
    overflow: hidden; /* Important for child elements like images */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-5px);
}

.card .card-image { /* Bulma's card-image */
    overflow: hidden; /* Ensures image respects border radius if any applied here */
}

.card .card-image .image-container { /* Custom class from HTML, or figure.image */
    /* This assumes figure.image.is-4by3 or similar is used for aspect ratio */
    position: relative; /* For aspect ratio trick if not using Bulma's `is-` classes */
    background-color: #eee; /* Placeholder bg for images */
}

.card .card-image .image-container img,
.card .card-image figure.image img { /* Target img within Bulma's figure.image */
    display: block;
    width: 100%;
    height: 100%; /* Fill the figure, assumes figure has aspect ratio or fixed height */
    object-fit: cover; /* Crucial for image display */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card-image .image-container img,
.card:hover .card-image figure.image img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows card content to expand, useful for same height cards */
    display: flex;
    flex-direction: column;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    flex-grow: 1;
}
.card .card-content .content p:last-child {
    margin-bottom: 0;
}
.card .card-content .button {
    margin-top: auto; /* Pushes button to bottom if card content uses flex */
}

.has-background-dark-opacity {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large); /* If at bottom of card */
}
.has-background-dark-opacity .title,
.has-background-dark-opacity .subtitle {
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Pricing Cards */
.pricing-card .card-content .title {
    margin-bottom: 0.25rem !important;
}
.pricing-card .card-content .subtitle {
    margin-bottom: 1rem !important;
    font-weight: bold;
    color: var(--primary-color);
}
.pricing-card.recommended-card {
    border: 2px solid var(--primary-color);
    transform: scale(1.02); /* Make it pop slightly */
}
.pricing-card.recommended-card:hover {
     transform: translateY(-5px) scale(1.04);
}
.pricing-card .card-header-title {
    font-family: var(--font-family-headings);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--primary-color) !important;
    color: var(--text-color-light) !important;
}


/* Testimonial Cards */
.testimonial-card .media-left .image img {
    border: 2px solid var(--primary-color);
}
.testimonial-card .content {
    font-style: italic;
    font-size: 0.95rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 1rem;
}

/* Resource Cards */
.resource-card .card-content .title a {
    color: var(--primary-color);
    font-weight: bold;
}
.resource-card .card-content .title a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}
.resource-card .card-content .subtitle {
    color: var(--text-color-subtle);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/*                            BEHIND THE SCENES SLIDER                        */
/* -------------------------------------------------------------------------- */
.slider-container .slider-item .card-image figure.image {
    /* Bulma's is-16by9 sets aspect ratio */
}
.slider-container .slider-item .card-content { /* Overlay content for slider images */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
}
.slider-container .slider-item .card-content .title {
    color: var(--text-color-light) !important;
    font-size: 1.25rem;
    margin-bottom: 0.5rem !important;
}
.slider-controls .button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    box-shadow: var(--shadow-volumetric-idle);
}
.slider-controls .button:hover {
    background-color: var(--primary-color-dark);
    box-shadow: var(--shadow-volumetric-hover);
}

/* -------------------------------------------------------------------------- */
/*                               AWARDS SECTION                               */
/* -------------------------------------------------------------------------- */
#awards .box {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-card);
    transition: var(--transition-medium);
}
#awards .box:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}
#awards .media .icon {
    font-size: 2rem; /* Make icon larger */
    margin-right: 1rem; /* Space between icon and text */
}
#awards .media .icon svg {
    width: 3rem; /* Control SVG size if needed */
    height: 3rem;
    fill: var(--primary-color); /* Color for SVG icons */
}
#awards .media-content strong {
    color: var(--text-color-headings);
}
#awards .media-content small {
    color: var(--text-color-subtle);
    display: block;
    margin-top: 0.25rem;
}

/* Volumetric element styling for boxes */
.volumetric-element {
    box-shadow: var(--shadow-volumetric-idle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.volumetric-element:hover {
    box-shadow: var(--shadow-volumetric-hover);
    transform: translateY(-4px) scale(1.01);
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--footer-background-color);
    color: #A0A0A0; /* Light gray text for footer, as per HTML */
    padding: 3rem 1.5rem 2rem; /* Adjusted padding */
}
.footer .title {
    color: var(--text-color-light) !important;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer p, .footer ul li {
    font-size: 0.9rem;
    color: #B0B0B0; /* Matching HTML inline style */
}
.footer a {
    color: #B0B0B0; /* Matching HTML inline style */
    transition: var(--transition-fast);
}
.footer a:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}
.footer hr {
    background-color: #555555; /* Matching HTML inline style */
    height: 1px;
    margin: 1.5rem 0;
}
.footer .content p {
    color: #A0A0A0; /* Matching HTML inline style */
}

/* Footer Social Links (Text based) */
.footer .column ul li a[target="_blank"]::after { /* Optional: external link icon for social media */
    content: ' \2197'; /* North East Arrow */
    font-size: 0.8em;
    display: inline-block;
    opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/*                           SUCCESS PAGE STYLING                             */
/* -------------------------------------------------------------------------- */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height)); /* Full viewport height minus navbar */
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light-section);
}
.success-page-container .icon svg {
    width: 80px;
    height: 80px;
    fill: var(--secondary-color); /* Teal for success icon */
    margin-bottom: 1.5rem;
}
.success-page-container .title {
    color: var(--text-color-headings);
    margin-bottom: 0.5rem;
}
.success-page-container .subtitle {
    color: var(--text-color-medium);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* -------------------------------------------------------------------------- */
/*                              ANIMATED ICONS                                */
/* -------------------------------------------------------------------------- */
.animated-icon { /* Base style for icons intended for animation */
    display: inline-block;
}
/* Specific animations can be added using Anime.js or Motion One via JS */
/* Example: .animated-icon[data-animation="pulse"] {} */


/* -------------------------------------------------------------------------- */
/*                               COOKIE POPUP                                 */
/* -------------------------------------------------------------------------- */
/* Styles for #cookie-popup are primarily inline in HTML for initial functionality.
   These are minor enhancements or overrides if needed. */
#cookie-popup {
    font-family: var(--font-family-body);
}
#cookie-popup p {
    font-size: 0.9rem;
    line-height: 1.5;
}
#cookie-popup button {
    font-family: var(--font-family-headings);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-rounded);
    padding: 0.6em 1.2em;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}
#cookie-popup button:hover {
    background-color: var(--primary-color-dark);
    transform: scale(1.05);
}
#cookie-popup a {
    color: #8ab4f8; /* From inline styles, ensure it stays readable */
    text-decoration: underline;
}
#cookie-popup a:hover {
    color: #a7caff;
}


/* -------------------------------------------------------------------------- */
/*                              RESPONSIVE ADJUSTMENTS                        */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) { /* Bulma's mobile breakpoint */
    .section {
        padding: 2.5rem 1rem;
    }
    .hero.is-large .hero-body {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .hero .title {
        font-size: 2rem;
    }
    .hero .subtitle {
        font-size: 1.15rem;
    }
    .section-title.is-2 {
        font-size: 1.75rem; /* Adjust title size for mobile */
    }
    .pricing-card.recommended-card {
        transform: scale(1); /* Reset pop for mobile if it causes layout issues */
    }
    .footer {
        text-align: center;
    }
    .footer .columns {
        flex-direction: column; /* Stack columns in footer */
    }
    .footer .column {
        margin-bottom: 1.5rem;
    }
}