/* Global Variables and Base Styles */
:root {
    /* Monochromatic Scheme with a futuristic accent */
    --color-background-dark: #121212; /* Deep dark grey */
    --color-background-medium: #1e1e1e;
    --color-background-light: #f0f2f5; /* Light grey for light sections */
    
    --color-surface-dark: #1a1a1a; /* For cards/elements on dark backgrounds */
    --color-surface-medium: #282828;
    --color-surface-light: #ffffff; /* For cards/elements on light backgrounds */

    --color-text-primary: #e5e5e5; /* Light grey for dark backgrounds */
    --color-text-secondary: #b3b3b3; /* Softer grey */
    --color-text-dark: #333333;      /* Dark grey for light backgrounds */
    --color-text-dark-strong: #111111;

    --color-accent: #00e5ff; /* Vibrant Cyan/Aqua */
    --color-accent-dark: #00b8cc;
    --color-accent-hover: #66f5ff;
    --color-accent-glow: rgba(0, 229, 255, 0.3);
    --color-accent-glow-strong: rgba(0, 229, 255, 0.5);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    --gradient-dynamic-bg: linear-gradient(45deg, var(--color-background-medium), var(--color-surface-dark));
    
    /* Fonts */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;

    /* Header height for page content offset */
    --header-height: 52px; /* Bulma default navbar height */
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-background-dark); /* Base background for the entire page */
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    background-color: var(--color-background-dark);
    line-height: 1.7;
    font-size: 16px; /* Base font size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height); /* For fixed header */
}

/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    color: var(--color-text-primary); /* Default for dark background */
}

.title {
    font-weight: 700;
}
.subtitle {
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Links */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}
a:hover {
    color: var(--color-accent-hover);
}

/* Section Styling */
.section {
    padding: 4rem 1.5rem; /* Moderate default padding */
}
.section.is-medium {
    padding: 6rem 1.5rem; /* Custom override for Bulma's is-medium */
}
.section.is-large {
    padding: 9rem 1.5rem; /* Custom override for Bulma's is-large */
}

.section.has-background-light {
    background-color: var(--color-background-light) !important;
}
.section.has-background-light .title,
.section.has-background-light .subtitle,
.section.has-background-light .content,
.section.has-background-light p,
.section.has-background-light label.label {
    color: var(--color-text-dark);
}
.section.has-background-light .section-title {
     color: var(--color-text-dark-strong);
}
.section.has-background-light a {
    color: var(--color-accent-dark);
}
.section.has-background-light a:hover {
    color: var(--color-accent);
}


.section-title {
    font-family: var(--font-primary);
    margin-bottom: 2.5rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    line-height: 1.2;
}

/* Header and Navigation */
.header.is-fixed-top {
    background-color: rgba(18, 18, 18, 0.85) !important; /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.navbar.is-dark {
    background-color: transparent !important;
}
.navbar-item, .navbar-link {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-text-secondary) !important;
    transition: color var(--transition-speed) var(--transition-ease);
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent !important;
    color: var(--color-accent) !important;
}
.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary) !important;
}
.logo-accent {
    color: var(--color-accent);
}
.navbar-burger span {
    background-color: var(--color-accent) !important;
    height: 2px;
    width: 20px;
    left: calc(50% - 10px); /* Center burger lines */
}
.navbar-burger:hover {
    background-color: rgba(255,255,255,0.1) !important;
}
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        background-color: var(--color-background-dark) !important; /* Dark background for mobile menu */
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    }
    .navbar-item {
        padding: 0.75rem 1rem;
    }
}


/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    padding: 0.9em 2em;
    transition: all var(--transition-speed) var(--transition-ease);
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button.is-primary.is-futuristic,
button.is-primary.is-futuristic,
input[type="submit"].is-primary.is-futuristic {
    background: var(--gradient-accent);
    color: var(--color-background-dark);
    border-color: transparent; /* Gradient handles border look */
    box-shadow: 0 0 15px var(--color-accent-glow), 0 4px 8px rgba(0,0,0,0.2);
}

.button.is-primary.is-futuristic:hover,
button.is-primary.is-futuristic:hover,
input[type="submit"].is-primary.is-futuristic:hover {
    background: var(--gradient-accent); /* Keep gradient, maybe shift it or brighten */
    filter: brightness(1.1);
    color: var(--color-background-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 25px var(--color-accent-glow-strong), 0 6px 12px rgba(0,0,0,0.3);
}

.button:focus, .button.is-focused,
input[type="submit"]:focus, input[type="submit"].is-focused,
input[type="button"]:focus, input[type="button"].is-focused {
    outline: none;
    box-shadow: 0 0 0 0.15em var(--color-accent-glow); /* Focus ring */
}


/* Hero Section */
#hero {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-attachment: fixed; GSAP will handle parallax */
}
.hero-title {
    font-size: 3.5rem; /* Responsive sizing handled by Bulma .is-1 */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #FFFFFF !important; /* STROGO: Text in hero section should be white */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: 1.5rem; /* Responsive sizing by Bulma .is-3 */
    margin-bottom: 2rem;
    color: #FFFFFF !important; /* STROGO: Text in hero section should be white */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}
@media screen and (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

/* Vision Section */
#vision .content {
    color: var(--color-text-secondary);
}
#vision img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Research & Sustainability Section Cards */
.futuristic-card {
    background-color: var(--color-surface-medium);
    border: 1px solid var(--color-surface-dark);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 0 10px rgba(0, 229, 255, 0.05);
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    align-items: center; 
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    height: 100%; /* For equal height cards in a row */
}
.futuristic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), 0 0 20px var(--color-accent-glow);
}

.futuristic-card .card-image.image-container {
    height: 220px; /* Fixed height for image container */
    width: 100%; /* Take full width of card */
    overflow: hidden;
    border-top-left-radius: 11px; /* Match card's border-radius */
    border-top-right-radius: 11px;
}
.futuristic-card .card-image.image-container figure.image {
    height: 100%;
    margin: 0;
}
.futuristic-card .card-image.image-container figure.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.futuristic-card:hover .card-image.image-container figure.image img {
    transform: scale(1.05);
}

.futuristic-card .card-content {
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    flex-grow: 1; /* Allows content to expand and push footer (if any) down */
}
.futuristic-card .card-content .title {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.futuristic-card .card-content .content {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Statistics Section */
#statistics {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
}
#statistics .title, #statistics .subtitle, #statistics .content {
    color: var(--color-text-primary) !important;
}
#statistics .section-title {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}
.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent) !important;
    margin-bottom: 0.5rem !important;
}
#statistics .subtitle.is-4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem !important;
}

/* External Resources Section */
.resource-card {
    background-color: var(--color-surface-medium);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    height: 100%;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.resource-card .card-content {
    padding: 1.5rem;
}
.resource-card .title.is-5 a {
    color: var(--color-accent);
    font-weight: 500;
}
.resource-card .title.is-5 a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}
.resource-card .content.is-small {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}
/* If this section is on a light background */
.section.has-background-light .resource-card {
    background-color: var(--color-surface-light);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.section.has-background-light .resource-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.section.has-background-light .resource-card .title.is-5 a {
    color: var(--color-accent-dark);
}
.section.has-background-light .resource-card .title.is-5 a:hover {
    color: var(--color-accent);
}
.section.has-background-light .resource-card .content.is-small {
    color: var(--color-text-dark);
}


/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--color-surface-medium); /* Darker background for FAQ items */
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid var(--color-surface-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden; /* For smooth animation of answer */
}
.section.has-background-light .faq-item {
    background-color: var(--color-surface-light);
    border: 1px solid #e0e0e0;
}
.faq-question {
    font-family: var(--font-primary);
    background: transparent;
    color: var(--color-text-primary);
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) var(--transition-ease);
}
.section.has-background-light .faq-question {
    color: var(--color-text-dark-strong);
}
.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle hover on dark */
}
.section.has-background-light .faq-question:hover {
    background-color: rgba(0, 0, 0, 0.03); /* Subtle hover on light */
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-speed) var(--transition-ease);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.section.has-background-light .faq-answer {
     color: var(--color-text-dark);
}
.faq-item.active .faq-answer {
    padding: 1rem 1.5rem 1.5rem; /* Add padding back when active */
    /* max-height will be set by JS */
}

/* Contact Section */
.contact-section-bg {
    background-color: var(--color-background-medium); /* Fallback if no image */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.contact-section-bg .section-title,
.contact-section-bg .subtitle,
.contact-section-bg .label,
.contact-section-bg .has-text-white {
    color: var(--color-text-primary) !important;
}
.contact-section-bg .label {
    color: var(--color-text-secondary) !important; /* Lighter labels */
}
.futuristic-form .input, .futuristic-form .textarea {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--color-surface-medium);
    color: var(--color-text-primary);
    border-radius: 5px;
    padding: 0.8em 1em;
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}
.futuristic-form .input::placeholder, .futuristic-form .textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}
.futuristic-form .input:focus, .futuristic-form .textarea:focus {
    background-color: rgba(255,255,255,0.08);
    border-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
    outline: none;
}
.futuristic-form .icon i {
    color: var(--color-accent); /* Make icons in input fields use accent color */
}
.futuristic-form .checkbox {
    color: var(--color-text-secondary);
}
.futuristic-form .checkbox a {
    color: var(--color-accent) !important;
}
.futuristic-form .checkbox input[type="checkbox"] {
    margin-right: 0.5em;
}

/* Footer */
.footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-secondary);
    padding: 3rem 1.5rem 2rem; /* Adjusted padding */
    border-top: 1px solid var(--color-surface-medium);
}
.footer .title {
    color: var(--color-text-primary) !important;
    font-size: 1.25rem;
}
.footer-link {
    color: var(--color-text-secondary) !important;
}
.footer-link:hover {
    color: var(--color-accent) !important;
}
.footer-social-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) var(--transition-ease), text-shadow var(--transition-speed) var(--transition-ease);
    margin: 0 0.5em;
    font-size: 1rem;
}
.footer-social-link:hover {
    color: var(--color-accent-hover);
    text-shadow: 0 0 8px var(--color-accent-glow);
}
.footer hr {
    background-color: var(--color-surface-medium) !important;
}
.footer .content p {
    font-size: 0.9rem;
}

/* Animations on Scroll */
.animate-on-scroll {
    /*opacity: 0;*/
    transform: translateY(40px);
    transition: opacity 0.7s var(--transition-ease), transform 0.7s var(--transition-ease);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Page Styles */
/* For success.html page structure: assumes a wrapper around content */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background-medium);
}
.success-page-container .title {
    color: var(--color-accent);
}
.success-page-container .content, .success-page-container p {
    color: var(--color-text-primary);
}

/* For content on privacy.html and terms.html */
.main-content-page {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
    background-color: var(--color-background-medium); /* Consistent background for these pages */
    min-height: calc(100vh - var(--header-height) - 150px); /* Approx footer height */
}
.main-content-page .container { /* Ensure content within container has correct text color */
    max-width: 960px; /* Standard container width */
}
.main-content-page .title, 
.main-content-page h1, .main-content-page h2, .main-content-page h3 {
    color: var(--color-text-primary);
}
.main-content-page p, .main-content-page li {
    color: var(--color-text-secondary);
}
.main-content-page strong {
    color: var(--color-text-primary);
}


/* Read More Link Style (if used) */
a.read-more-link {
    color: var(--color-accent);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.75em;
    transition: color var(--transition-speed) var(--transition-ease), transform var(--transition-speed) var(--transition-ease);
}
a.read-more-link::after {
    content: ' →';
    display: inline-block;
    transition: transform var(--transition-speed) var(--transition-ease);
}
a.read-more-link:hover {
    color: var(--color-accent-hover);
}
a.read-more-link:hover::after {
    transform: translateX(4px);
}

/* Ensure high contrast for Bulma notification if used */
.notification.is-success {
    background-color: var(--color-accent-dark);
    color: var(--color-background-dark);
}
.notification.is-danger {
    background-color: #ff3860; /* Bulma danger */
    color: #ffffff;
}
.navbar-burger{
    display: none;
}