:root {
    /* Complementary Color Scheme */
    --primary-color: #0057FF; /* Vibrant Blue */
    --primary-color-dark: #0045CC;
    --primary-color-rgb: 0, 87, 255; /* For RGBA usage, e.g., box-shadow */
    --secondary-color: #FF8C00; /* Bright Orange */
    --secondary-color-dark: #CC7000;
    
    --accent-color-1: #FFC107; /* Yellow/Gold for highlights */
    --accent-color-2: #17A2B8; /* Teal for information/calmness */

    /* Neutrals & Text */
    --background-light: #FDFEFF; /* Slightly off-white for a clean, modern feel */
    --background-dark: #1A1D24; /* Deep, rich dark for footer/contrast elements */
    --card-background: #FFFFFF;
    --text-color-dark: #222222; /* High contrast for titles on light bg */
    --text-color-body: #333333; /* Readable body text on light bg */
    --text-color-light: #F8F9FA; /* For text on dark backgrounds */
    --text-muted-color: #6c757d;

    /* Borders & Shadows */
    --border-color: #dee2e6;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Softer shadow */
    --card-hover-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); /* Enhanced hover shadow */

    /* Fonts */
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;

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

    /* UI Component specific */
    --button-border-radius: 50px; /* Modern pill-shaped buttons */
    --card-border-radius: 15px; /* Softly rounded cards */
    --input-border-radius: 8px;
}

/* Global Resets & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color-body);
    background-color: var(--background-light);
    line-height: 1.7;
    font-size: 16px; /* Base font size */
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--text-color-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-color-dark);
    position: relative;
    padding-bottom: 20px;
}

.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;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-color-body);
}

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

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

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--button-border-radius);
    transition: all var(--transition-speed) var(--transition-ease);
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-light);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}
a.btn-outline-primary:hover { /* "Read More" links */
    text-decoration: none; 
}

/* Form Control Styles */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color-body);
    background-color: var(--card-background);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    appearance: none;
    border-radius: var(--input-border-radius);
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-headings);
}

/* General Section Padding */
section {
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Text on Image Overlay Styling */
.text-on-image-overlay {
    position: relative;
}
.text-on-image-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}
.text-on-image-overlay .content, 
.text-on-image-overlay > * > .content {
    position: relative;
    z-index: 2;
    color: var(--text-color-light);
}

/* Header */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: rgba(253, 254, 255, 0.95); /* Slight transparency */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.navbar-brand {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary-color) !important;
}
.navbar-nav .nav-link {
    font-family: var(--font-family-headings);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: var(--text-color-dark) !important;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) var(--transition-ease);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    /* min-height: 80vh; From HTML */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem); /* Responsive */
    font-weight: 800;
    color: var(--text-color-light); /* Enforced by user */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-section p.lead {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Responsive */
    color: var(--text-color-light); /* Enforced by user */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.hero-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Card Styles - STROGO requirements applied */
.card {
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    background-color: var(--card-background);
    display: flex; 
    flex-direction: column; 
    text-align: center; 
    overflow: hidden;
    height: 100%; /* For consistent height in rows */
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.card .card-image { /* Container for image */
    width: 100%; 
    overflow: hidden;
    margin-bottom: 0; /* Image often flush with top or content */
    position: relative; /* For potential overlays on image itself */
}
/* Specific height on card-image for different card types */
.feature-card .card-image, .blog-post-card .card-image { height: 250px; }
#portfolioCarousel .card .card-image { height: 350px; } /* Or auto based on content */

.card .card-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    /* border-top-left-radius: var(--card-border-radius); Removed this: handled by .card overflow:hidden or if image is not flush
    border-top-right-radius: var(--card-border-radius); */
}
/* Team member specific image */
.team-member-card .card-image {
    width: 150px; 
    height: 150px; 
    border-radius: 50%;
    margin: 1.5rem auto 1rem auto; /* Centered, with top/bottom margin */
}
.team-member-card .card-image img {
    border-radius: 50%; 
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}
.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}
.card-text {
    font-size: 0.95rem;
    color: var(--text-color-body);
    line-height: 1.6;
    flex-grow: 1; /* Pushes elements after it down in flex column */
}
.card .btn { /* Button inside card */
    margin-top: auto; /* Stick to bottom of card-body */
    align-self: center; /* Center button if card text-align is not enough */
}
.blog-post-card .btn {
    align-self: flex-start; /* "Read More" usually left aligned */
}


/* Portfolio Carousel */
#portfolioCarousel .card {
    box-shadow: none; 
    border: 1px solid var(--border-color); 
}
#portfolioCarousel .card-image img { /* For side-by-side layout in HTML */
    border-radius: 0; /* Reset if needed, depends on HTML structure */
}
@media (min-width: 768px) { /* If using Bootstrap's row/col for side-by-side image/text */
    #portfolioCarousel .card .row > .col-md-5.card-image img { /* Image on left */
        border-top-left-radius: var(--card-border-radius);
        border-bottom-left-radius: var(--card-border-radius);
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}
#portfolioCarousel .carousel-control-prev-icon,
#portfolioCarousel .carousel-control-next-icon {
    background-color: rgba(var(--primary-color-rgb), 0.7);
    border-radius: 50%;
    padding: 20px; 
    background-size: 60% 60%;
}


/* Innovation Section - Timeline */
.timeline { list-style: none; padding: 20px 0; position: relative; }
.timeline::before { top: 0; bottom: 0; position: absolute; content: " "; width: 3px; background-color: #e9ecef; left: 50%; margin-left: -1.5px; }
.timeline > li { margin-bottom: 20px; position: relative; }
.timeline > li::before, .timeline > li::after { content: " "; display: table; }
.timeline > li::after { clear: both; }
.timeline > li > .timeline-panel { width: 46%; float: left; border: 1px solid var(--border-color); border-radius: var(--card-border-radius); padding: 25px; position: relative; box-shadow: var(--card-shadow); background-color: var(--card-background); }
.timeline > li > .timeline-badge { color: #fff; width: 50px; height: 50px; line-height: 50px; font-size: 1.4em; text-align: center; position: absolute; top: 16px; left: 50%; margin-left: -25px; background-color: var(--text-muted-color); z-index: 10; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--background-light); }
.timeline > li.timeline-inverted > .timeline-panel { float: right; }
.timeline > li > .timeline-panel::before { position: absolute; top: 26px; right: -15px; display: inline-block; border-top: 15px solid transparent; border-left: 15px solid var(--border-color); border-right: 0 solid var(--border-color); border-bottom: 15px solid transparent; content: " "; }
.timeline > li > .timeline-panel::after { position: absolute; top: 27px; right: -14px; display: inline-block; border-top: 14px solid transparent; border-left: 14px solid var(--card-background); border-right: 0 solid var(--card-background); border-bottom: 14px solid transparent; content: " "; }
.timeline > li.timeline-inverted > .timeline-panel::before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; }
.timeline > li.timeline-inverted > .timeline-panel::after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto; }
.timeline-badge.primary { background-color: var(--primary-color) !important; }
.timeline-badge.success { background-color: var(--secondary-color) !important; }
.timeline-badge.info { background-color: var(--accent-color-2) !important; }
.timeline-title { margin-top: 0; color: var(--primary-color); font-size:1.2rem; font-weight:600; }
.timeline-body > p, .timeline-body > ul { margin-bottom: 0; font-size:0.9rem; }

/* Statistics Section */
#statistics { background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
#statistics .section-title { color: var(--text-color-light); text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
#statistics .section-title::after { background-color: var(--text-color-light); }
.statistic-item h3 { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 700; color: var(--text-color-light); margin-bottom: 0.25rem; }
.statistic-item p { font-size: 1.1rem; color: var(--text-color-light); opacity: 0.9; }

/* FAQ Section - Accordion */
.accordion-item { border: 1px solid var(--border-color); border-radius: var(--card-border-radius) !important; margin-bottom: 15px; background-color: var(--card-background); overflow: hidden; }
.accordion-item:last-child { margin-bottom: 0; }
.accordion-header { border-bottom: none; } /* Remove BS border */
.accordion-button { font-family: var(--font-family-headings); font-weight: 600; font-size: 1.1rem; color: var(--text-color-dark); background-color: var(--card-background); border-radius: var(--card-border-radius) !important; padding: 1.25rem 1.5rem; }
.accordion-button:not(.collapsed) { color: var(--primary-color); background-color: rgba(var(--primary-color-rgb), 0.05); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-button::after { filter: invert(29%) sepia(86%) saturate(3357%) hue-rotate(218deg) brightness(101%) contrast(106%); /* var(--primary-color) SVG */ transform: scale(1.2); } /* Customizing Bootstrap's SVG icon color */
.accordion-body { padding: 1.5rem; font-size: 0.95rem; line-height: 1.7; background-color: var(--card-background); }

/* External Resources Section */
.resource-card { background-color: var(--card-background); border-radius: var(--card-border-radius); box-shadow: var(--card-shadow); transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease); height: 100%; padding: 1.5rem; }
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--card-hover-shadow); }
.resource-card .resource-title a { font-family: var(--font-family-headings); font-weight: 600; color: var(--primary-color); font-size: 1.15rem; }
.resource-card .resource-description { font-size: 0.9rem; color: var(--text-color-body); margin-bottom: 0.5rem; }
.resource-card .resource-source small { font-size: 0.8rem; color: var(--text-muted-color); }

/* Partners Section */
.partner-logo-container { padding: 15px; display: flex; align-items: center; justify-content: center; height: 100px; }
.partner-logo { max-width: 100%; max-height: 70px; filter: grayscale(100%); opacity: 0.6; transition: all var(--transition-speed) var(--transition-ease); }
.partner-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* Contact Section */
.contact-details li { margin-bottom: 1rem; font-size: 1rem; display: flex; align-items: flex-start; }
.contact-details li i { color: var(--primary-color); margin-right: 15px; font-size: 1.2rem; width: 25px; text-align: center; margin-top:3px; }
.contact-details li a { color: var(--text-color-body); }
.contact-details li a:hover { color: var(--primary-color); }
#contactForm .btn-primary { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* Footer */
footer { background-color: var(--background-dark); color: var(--text-color-light); padding-top: 60px; padding-bottom: 30px; }
footer h5 { color: var(--text-color-light); font-size: 1.1rem; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
footer p, footer ul li a { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
footer ul { list-style: none; padding-left: 0; }
footer ul li { margin-bottom: 0.7rem; }
footer ul li a { transition: color var(--transition-speed) var(--transition-ease), padding-left var(--transition-speed) var(--transition-ease); }
footer ul li a:hover { color: var(--text-color-light); text-decoration: none; padding-left: 8px; }
footer hr { border-color: rgba(255,255,255,0.1); }
footer .text-center p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

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

/* Specific Page Styles */
.success-page-container { min-height: 100vh; display: flex; flex-direction: column; }
.success-content-centered { flex-grow: 1; display: flex; flex-direction:column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.success-content-centered h1 { color: var(--primary-color); font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom:1rem; }
.success-content-centered p { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-bottom: 2rem; }
.success-content-centered .btn { margin-top:1rem; }

.legal-page-content { padding-top: 120px; /* Increased to ensure no overlap with sticky header */ padding-bottom: 60px; }
.legal-page-content h1 { margin-bottom: 1.5rem; font-size: 2.5rem; color:var(--primary-color); }
.legal-page-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.8rem; color: var(--text-color-dark); border-bottom:2px solid var(--primary-color); padding-bottom:0.5rem; }
.legal-page-content p, .legal-page-content li { line-height: 1.8; font-size: 1.05rem; }

/* Cookie Consent Popup */
#cookieConsentPopup { box-shadow: 0 -2px 10px rgba(0,0,0,0.15); }
#cookieConsentPopup p { font-size: 0.9rem; color: var(--text-color-light); }
#acceptCookieButton { background-color: var(--primary-color); color: var(--text-color-light); border: none; padding: 10px 20px; border-radius: var(--button-border-radius); cursor: pointer; font-family: var(--font-family-headings); font-weight: 500; }
#acceptCookieButton:hover { background-color: var(--primary-color-dark); }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .section-title { font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: 40px; }
    .hero-section h1 { font-size: clamp(2rem, 5vw, 3rem); }
    .timeline::before { left: 31px; }
    .timeline > li > .timeline-panel { width: calc(100% - 75px); float: right; }
    .timeline > li > .timeline-panel::before, .timeline > li > .timeline-panel::after { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; }
    .timeline > li > .timeline-panel::after { border-right-width: 14px; left: -14px; }
    .timeline > li > .timeline-badge { left: 15px; margin-left: 0; }
    .timeline > li.timeline-inverted > .timeline-panel { float: right; }
    .timeline > li.timeline-inverted > .timeline-panel::before, .timeline > li.timeline-inverted > .timeline-panel::after { left: -15px; right: auto; }
    #portfolioCarousel .card .row > div[class^="col-md-"] { width: 100%; }
    #portfolioCarousel .card-image img { border-radius: var(--card-border-radius) var(--card-border-radius) 0 0; }
}

@media (max-width: 767.98px) {
    body { font-size: 15px; }
    .hero-section h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
    .hero-section p.lead { font-size: clamp(0.9rem, 2.5vw, 1.1rem); }
    .btn, button, input[type="submit"], input[type="button"] { padding: 0.65rem 1.5rem; font-size: 0.85rem; }
    .hero-section .btn { padding: 0.8rem 2rem; font-size: 1rem; }
    .statistic-item h3 { font-size: clamp(2rem, 6vw, 3rem); }
    .navbar-brand { font-size: 1.5rem; }
    footer { text-align: center; }
    footer .col-lg-4, footer .col-md-6, footer .col-lg-2, footer .col-lg-3 { margin-bottom: 30px; }
    footer .col-lg-3:last-child, footer .col-md-6:last-child { margin-bottom: 0; }
}

/* Scroll animations - classes to be added by JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.65s var(--transition-ease), transform 0.65s var(--transition-ease);
}
.animate-on-scroll.is-visible { /* More common class name for intersection observer */
    opacity: 1;
    transform: translateY(0);
}