/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #00A9FF; /* Bright Blue */
    --primary-color-rgb: 0, 169, 255;
    --primary-color-darker: #0081ba;
    --secondary-color: #FF6B6B; /* Bright Coral */
    --secondary-color-darker: #e05252;
    --accent-color: #FFD700;   /* Bright Yellow/Gold */
    --success-color: #4CAF50;
    --danger-color: #F44336;

    --text-color: #333333;
    --text-color-light: #F8F9FA;
    --text-color-muted: #6c757d;
    --headings-color: #222222;

    --bg-color: #FFFFFF;
    --bg-color-light-texture: #f7f9fc;
    --bg-color-dark: #1a1a1a;

    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-input: rgba(255, 255, 255, 0.7);
    --glass-border-color: rgba(255, 255, 255, 0.25);
    --glass-blur: 8px;
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --glass-border-radius: 15px;

    --font-family-headings: 'Inter', sans-serif;
    --font-family-base: 'IBM Plex Sans', sans-serif;

    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: var(--glass-border-radius);

    --box-shadow-light: 0 2px 4px rgba(0,0,0,0.05);
    --box-shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 8px 25px rgba(0,0,0,0.15);

    --button-padding-y: 0.65rem;
    --button-padding-x: 1.5rem;
    --input-padding-y: 0.75rem;
    --input-padding-x: 1rem;

    --section-padding-y: 4rem; /* Default padding for sections */
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden; /* For AOS compatibility */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--headings-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-muted); /* Softer color for paragraph text */
}
section p.lead { /* More prominent lead paragraphs */
    color: var(--text-color);
    font-weight: 400;
}

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

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

section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section-title {
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--headings-color);
    margin-bottom: 3rem !important;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.bg-light-texture {
    background-color: var(--bg-color-light-texture);
    /* Specific background-image with data-prompt is set in HTML */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*--------------------------------------------------------------
# Particle Animation Container
--------------------------------------------------------------*/
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/*--------------------------------------------------------------
# Glassmorphism Elements
--------------------------------------------------------------*/
.glass-card,
.glass-nav,
.glass-button {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-border-radius);
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    padding: 1.75rem;
}

/* For darker backgrounds, a lighter glass might be better */
.on-dark-bg .glass-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-color-light);
}
.on-dark-bg .glass-card h1,
.on-dark-bg .glass-card h2,
.on-dark-bg .glass-card h3,
.on-dark-bg .glass-card h4,
.on-dark-bg .glass-card h5,
.on-dark-bg .glass-card p {
    color: var(--text-color-light);
}
.on-dark-bg .glass-card a {
    color: var(--accent-color);
}
.on-dark-bg .glass-card a:hover {
    color: var(--text-color-light);
}


/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-family-headings);
    font-weight: 800 !important;
    font-size: 1.8rem !important;
    color: var(--headings-color) !important;
}

.navbar .nav-link {
    font-family: var(--font-family-base);
    font-weight: 500;
    color: var(--text-color) !important;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.6rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
    /* background-color: rgba(var(--primary-color-rgb), 0.05); */
}
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.1);
}
.navbar-toggler:focus {
    box-shadow: none;
}

.sticky-top.glass-nav {
    /* Glassmorphism applied when sticky or by default */
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-family-base);
    font-weight: 500;
    padding: var(--button-padding-y) var(--button-padding-x);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    box-shadow: var(--box-shadow-light);
}
.btn:focus, button:focus, input[type='submit']:focus, input[type='button']:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.btn-primary, button.btn-primary, input[type='submit'].btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}
.btn-primary:hover, button.btn-primary:hover, input[type='submit'].btn-primary:hover {
    background-color: var(--primary-color-darker);
    color: var(--text-color-light);
    border-color: var(--primary-color-darker);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

.btn-secondary, button.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-color: var(--secondary-color);
}
.btn-secondary:hover, button.btn-secondary:hover {
    background-color: var(--secondary-color-darker);
    color: var(--text-color-light);
    border-color: var(--secondary-color-darker);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    box-shadow: none;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-light);
}

.cta-button.glass-button {
    color: var(--text-color-light); /* Default for dark/image backgrounds */
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
    font-weight: bold;
}
.cta-button.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: var(--glass-shadow);
    transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-control.custom-input, .form-select.custom-input {
    background-color: var(--glass-bg-input);
    border: 1px solid var(--glass-border-color);
    border-radius: var(--border-radius-md);
    padding: var(--input-padding-y) var(--input-padding-x);
    font-family: var(--font-family-base);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(3px); /* Subtle blur for inputs */
    -webkit-backdrop-filter: blur(3px);
}
.form-control.custom-input:focus, .form-select.custom-input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
    outline: none;
}
.form-label {
    font-weight: 500;
    color: var(--headings-color);
    margin-bottom: 0.5rem;
}
textarea.custom-input {
    min-height: 120px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    /* background-size, position, repeat handled by inline style & data-prompt */
    /* min-height is set inline HTML */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-section::before { /* Overlay for text readability */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-section h1 {
    color: #FFFFFF !important; /* STROGO */
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero-section p.lead {
    color: #FFFFFF !important; /* STROGO */
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/*--------------------------------------------------------------
# Cards (General & Specific)
--------------------------------------------------------------*/
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-clip: padding-box; /* Fix for backdrop-filter bleeding */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}
.card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card .card-body p {
    color: var(--text-color-muted);
}
.card .card-title {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.card-image, .image-container {
    display: flex; /* Part of STROGO */
    flex-direction: column; /* Part of STROGO */
    align-items: center; /* Part of STROGO */
    text-align: center; /* Part of STROGO */
    margin-bottom: 1rem;
}
.card-image img, .image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 0 auto; /* Part of STROGO */
}

/* Specific for Features section icons */
#features .card-image {
    height: 120px; /* Consistent size for icon container */
    width: 120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Make it circular if icons are suitable */
    /* background-color: rgba(var(--primary-color-rgb), 0.1); /* Light bg for icon */
    padding: 1rem; /* if background is used */
}
#features .card-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
#features .card {
    text-align: center; /* Center card body text */
}

/* For Customer Stories (Testimonials) */
#customer-stories .card {
    text-align: center;
}
#customer-stories .card-image img { /* Testimonial author image */
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 3px solid var(--glass-border-color);
}
#customer-stories .carousel-control-prev-icon,
#customer-stories .carousel-control-next-icon {
    background-color: var(--primary-color); /* Or a dark color for visibility */
    border-radius: 50%;
    padding: 10px; /* Adjust padding for icon size */
    background-size: 50% 50%; /* Adjust icon size within the circle */
}
#customer-stories .stat-widget {
    padding: 1.5rem;
    text-align: center;
}
#customer-stories .stat-widget h3 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.25rem;
}
#customer-stories .stat-widget p {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}


/* For External Resources */
#external-resources .card-title a {
    color: var(--primary-color);
    font-weight: 700;
}
#external-resources .card-title a:hover {
    color: var(--secondary-color);
}
#external-resources .card-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
#external-resources .btn-outline-primary {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}


/*--------------------------------------------------------------
# Specific Sections
--------------------------------------------------------------*/

/* History Section */
#history .image-container img {
    border-radius: var(--border-radius-lg);
}

/* Sustainability Section */
#sustainability .image-container img {
     border-radius: var(--border-radius-lg);
}

/* Partners Section */
#partners .partner-logo {
    max-height: 60px; /* Control logo height */
    width: auto;
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
#partners .partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* FAQ Section */
#faq .accordion-item {
    margin-bottom: 1rem;
    border: none; /* Remove default border if using glass */
    border-radius: var(--glass-border-radius); /* Ensure consistency if glass-card used */
    overflow: hidden; /* For border radius on children */
}
#faq .accordion-button {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--headings-color);
    background-color: transparent; /* If .accordion-item is glass-card */
    box-shadow: none;
    padding: 1.25rem 1.5rem;
}
#faq .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}
#faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
#faq .accordion-button::after { /* Style Bootstrap's arrow */
    filter: invert(40%) sepia(100%) saturate(500%) hue-rotate(170deg); /* Color the arrow */
}
#faq .accordion-body {
    padding: 1rem 1.5rem 1.5rem;
    background-color: transparent; /* If .accordion-item is glass-card */
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section-bg {
    /* background-image set in HTML via data-prompt */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.contact-section-bg::before { /* Dark overlay for background image */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 0;
}
.contact-section-bg .container {
    position: relative;
    z-index: 1;
}
#contact .section-title {
    color: #FFFFFF; /* White title on dark bg */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#contact .section-title::after {
    background-color: var(--accent-color); /* Brighter accent for underline */
}
#contact .card { /* The form card */
    background: var(--glass-bg); /* Glassmorphism */
    border: 1px solid var(--glass-border-color);
}
#contact .card p, #contact .card .form-label {
    color: var(--text-color-light); /* Text inside form card */
}
#contact .card p a {
    color: var(--accent-color);
}
#contact .card p a:hover {
    color: var(--text-color-light);
}
#contact .custom-input {
    background-color: rgba(255, 255, 255, 0.1); /* Darker transparent for inputs on this dark bg */
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
}
#contact .custom-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
#contact .custom-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--text-color-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb, 255, 215, 0), 0.35); /* Need --accent-color-rgb */
}
/* Add --accent-color-rgb to :root if not already there:
   :root { --accent-color-rgb: 255, 215, 0; } */


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
    background-color: var(--bg-color-dark);
    color: var(--text-color-light);
    padding-top: var(--section-padding-y);
    padding-bottom: calc(var(--section-padding-y) / 2);
    text-align: center;
}
footer h5 {
    font-family: var(--font-family-headings);
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}
footer p, footer .small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
footer .footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
    font-size: 0.95rem;
}
footer .footer-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}
footer hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Cookie Consent Popup (from HTML, basic styling)
--------------------------------------------------------------*/
/* Styles are in HTML as requested for simplicity, but can be moved here */
/* #cookieConsentPopup { ... } */
/* #cookieConsentPopup button { ... } */

/*--------------------------------------------------------------
# Specific Page Styles (Success, Privacy, Terms)
--------------------------------------------------------------*/
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color-light-texture);
}
.success-page-container .card {
    max-width: 500px;
    width: 100%;
}
.success-page-container .card-title {
    color: var(--success-color);
}
.success-page-container .icon-success {
    font-size: 4rem; /* Placeholder for an icon */
    color: var(--success-color);
    margin-bottom: 1rem;
}

.legal-page-content { /* For privacy.html, terms.html */
    padding-top: 100px; /* Space for fixed header */
    padding-bottom: var(--section-padding-y);
}
.legal-page-content .container {
    max-width: 960px;
}
.legal-page-content h1,
.legal-page-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page-content h1:first-child,
.legal-page-content h2:first-child {
    margin-top: 0;
}
.legal-page-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
}
.legal-page-content ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}
.legal-page-content li {
    margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .navbar-nav {
        margin-top: 1rem;
        background-color: var(--glass-bg);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: var(--glass-shadow);
    }
    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
        margin-left: 0;
        margin-right: 0;
        display: block; /* Full width links in mobile menu */
    }
    footer .col-md-4 { /* Stack footer columns */
        margin-bottom: 2rem;
    }
    footer .col-md-4:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p.lead {
        font-size: 0.9rem;
    }
    .btn, button, input[type='submit'], input[type='button'] {
        padding: calc(var(--button-padding-y) * 0.9) calc(var(--button-padding-x) * 0.9);
        font-size: 0.9rem;
    }
    .form-control.custom-input, .form-select.custom-input {
         padding: calc(var(--input-padding-y) * 0.9) calc(var(--input-padding-x) * 0.9);
         font-size: 0.9rem;
    }
    .legal-page-content {
        padding-top: 80px;
    }
}

/* AOS Overrides (Optional, if needed for specific elements) */
[data-aos="fade-up"] {
  /* Example: Fine-tune AOS default */
  /* transform: translate3d(0, 50px, 0); */
}

/* Ensure high contrast for text on images / dark backgrounds */
.text-on-dark-bg {
    color: var(--text-color-light) !important;
}
.text-on-dark-bg h1, .text-on-dark-bg h2, .text-on-dark-bg h3,
.text-on-dark-bg h4, .text-on-dark-bg h5, .text-on-dark-bg p,
.text-on-dark-bg small, .text-on-dark-bg li {
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
.text-on-dark-bg a {
    color: var(--accent-color) !important;
}
.text-on-dark-bg a:hover {
    color: var(--text-color-light) !important;
}

/* Utility for image overlays - ensure container content is above */
.image-overlay-bg > .container,
.image-overlay-bg > div:not(.particle-container) { /* Particle container should be behind */
    position: relative;
    z-index: 1;
}