:root {
    /* Bright Color Scheme & Neumorphism Base */
    --bg-color: #eef0f4; /* Light, slightly warm gray for neumorphism base */
    --bg-color-light: #ffffff;
    --bg-color-dark: #d1d9e6;

    --primary-color: #2979FF; /* Bright Blue */
    --primary-color-dark: #1C54B2;
    --primary-color-light: #6E9EFF;

    --accent-color-1: #FF5252; /* Vivid Red */
    --accent-color-1-dark: #C0392B;
    --accent-color-1-light: #FF8A80;

    --accent-color-2: #00C853; /* Bright Green */
    --accent-color-2-dark: #008E3C;
    --accent-color-2-light: #5EF38A;

    --accent-color-3: #FFD600; /* Bright Yellow */

    --text-color: #3E4A59; /* Dark, slightly desaturated blue/gray */
    --heading-color: #2C3A47; /* Darker for headings */
    --text-light-color: #FFFFFF;
    --text-muted-color: #7B8794;
    --link-color: var(--primary-color);
    --link-hover-color: var(--primary-color-dark);

    /* Neumorphic Shadows */
    --shadow-offset: 6px;
    --shadow-blur: 12px;
    --shadow-color-dark: rgba(163, 177, 198, 0.6);
    --shadow-color-light: rgba(255, 255, 255, 0.8);

    --neumorphic-shadow-outset:
        var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-color-dark),
        calc(-1 * var(--shadow-offset)) calc(-1 * var(--shadow-offset)) var(--shadow-blur) var(--shadow-color-light);
    --neumorphic-shadow-inset:
        inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-color-dark),
        inset calc(-1 * var(--shadow-offset)) calc(-1 * var(--shadow-offset)) var(--shadow-blur) var(--shadow-color-light);

    --neumorphic-shadow-outset-sm:
        calc(var(--shadow-offset) / 2) calc(var(--shadow-offset) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-dark),
        calc(-1 * var(--shadow-offset) / 2) calc(-1 * var(--shadow-offset) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-light);
    --neumorphic-shadow-inset-sm:
        inset calc(var(--shadow-offset) / 2) calc(var(--shadow-offset) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-dark),
        inset calc(-1 * var(--shadow-offset) / 2) calc(-1 * var(--shadow-offset) / 2) calc(var(--shadow-blur) / 2) var(--shadow-color-light);

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

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;

    /* Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;

    /* Spacing */
    --section-padding-y: 4rem;
}

/* Global Styles */
body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color var(--transition-speed-normal) ease-in-out, color var(--transition-speed-normal) ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    text-shadow: 1px 1px 1px var(--shadow-color-light); /* Subtle highlight from top-left */
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 1px var(--shadow-color-light), 2px 2px 3px var(--shadow-color-dark); /* More pronounced */
}

p {
    margin-bottom: 1rem;
}

p.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted-color);
    margin-bottom: 2rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease-in-out;
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

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

/* Page specific containers */
.page-content-container,
.privacy-content,
.terms-content {
    padding-top: 120px; /* Increased for potentially taller sticky header */
    padding-bottom: var(--section-padding-y);
}
.privacy-content .container,
.terms-content .container {
     max-width: 800px;
}
.privacy-content h1, .terms-content h1 { margin-bottom: 2rem; }
.privacy-content h2, .terms-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.75rem; }

body.page-success .success-container {
    min-height: 100vh; /* Assuming success page might not have header, or header is part of this calculation */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
body.page-success .success-container h1 { color: var(--accent-color-2); }


/* Header */
.neumorphic-header {
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-outset);
    padding: 0.75rem 0;
}
.neumorphic-header .navbar-brand {
    font-family: var(--font-family-headings);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-color);
}
.neumorphic-header .nav-link {
    color: var(--text-color);
    font-weight: 600; /* Bolder nav links */
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-md);
    transition: color var(--transition-speed-fast), background-color var(--transition-speed-fast), box-shadow var(--transition-speed-fast);
    margin: 0 0.3rem;
    font-size: 1.05rem;
}
.neumorphic-header .nav-link:hover,
.neumorphic-header .nav-link.active {
    color: var(--primary-color);
    box-shadow: var(--neumorphic-shadow-inset-sm);
}
.navbar-toggler.neumorphic-button {
    border: none;
    padding: 0.6rem 0.85rem;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-outset-sm);
}
.navbar-toggler.neumorphic-button:focus { box-shadow: var(--neumorphic-shadow-inset-sm); }
.navbar-toggler-icon {
    filter: invert(20%) sepia(10%) saturate(500%) hue-rotate(180deg) brightness(100%); /* Custom color for icon */
}

/* Footer */
.neumorphic-footer {
    background-color: var(--bg-color-dark);
    color: var(--text-light-color);
    padding-top: var(--section-padding-y);
    padding-bottom: 1.5rem;
    box-shadow: var(--neumorphic-shadow-inset); /* Inset shadow from top */
}
.neumorphic-footer h5 {
    color: var(--text-light-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.neumorphic-footer p, .neumorphic-footer .footer-link {
    color: #e0e0e0;
}
.neumorphic-footer .footer-link:hover {
    color: var(--accent-color-3);
}
.neumorphic-footer .border-top { border-top-color: rgba(255,255,255,0.15) !important; }
.neumorphic-footer hr { background-color: var(--accent-color-1); height: 3px; }

/* Hero Section */
.hero-section {
    min-height: 85vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-light-color); /* Base text color for hero */
}
.hero-section .container { z-index: 2; padding: 2rem; }
.hero-title {
    font-size: 3.8rem; /* Larger hero title */
    font-weight: 800;
    color: var(--text-light-color); /* Ensured white */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: 1.6rem; /* Larger subtitle */
    color: var(--text-light-color); /* Ensured white */
    max-width: 750px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero-button { padding: 1.2rem 2.8rem; font-size: 1.15rem; font-weight: 700; }

/* Neumorphic Base Elements & Sections */
.neumorphic-card,
.neumorphic-section,
.neumorphic-accordion .accordion-item, /* Style the item container */
.timeline-content,
.testimonial-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorphic-shadow-outset);
    transition: box-shadow var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
}
.neumorphic-section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}
.neumorphic-section-inset {
    background-color: var(--bg-color); /* Ensure bg for inset sections */
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
    box-shadow: var(--neumorphic-shadow-inset);
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed-fast) ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.5px;
}
.neumorphic-button, .btn-secondary, .btn-light {
    background-color: var(--bg-color);
    color: var(--text-color);
    box-shadow: var(--neumorphic-shadow-outset-sm);
}
.neumorphic-button:hover, .btn-secondary:hover, .btn-light:hover {
    color: var(--primary-color);
    box-shadow: var(--neumorphic-shadow-outset);
}
.neumorphic-button:active, .btn-secondary:active, .btn-light:active,
.neumorphic-button:focus, .btn-secondary:focus, .btn-light:focus {
    box-shadow: var(--neumorphic-shadow-inset-sm);
    color: var(--primary-color-dark);
}
.neumorphic-button-primary, .btn-primary {
    background: linear-gradient(145deg, var(--primary-color-light), var(--primary-color));
    color: var(--text-light-color);
    box-shadow: 5px 5px 10px var(--primary-color-dark), -5px -5px 10px color-mix(in srgb, var(--primary-color-light) 70%, white), var(--neumorphic-shadow-outset-sm);
}
.neumorphic-button-primary:hover, .btn-primary:hover {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-color-dark));
    transform: translateY(-2px);
    box-shadow: 7px 7px 14px var(--primary-color-dark), -7px -7px 14px color-mix(in srgb, var(--primary-color-light) 80%, white), var(--neumorphic-shadow-outset);
}
.neumorphic-button-primary:active, .btn-primary:active,
.neumorphic-button-primary:focus, .btn-primary:focus {
    background: linear-gradient(145deg, var(--primary-color-dark), var(--primary-color));
    box-shadow: inset 3px 3px 6px color-mix(in srgb, var(--primary-color-dark) 80%, black), inset -3px -3px 6px var(--primary-color-light), var(--neumorphic-shadow-inset-sm);
    transform: translateY(1px);
}

/* Form Inputs */
.neumorphic-input {
    background-color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1.2rem;
    box-shadow: var(--neumorphic-shadow-inset-sm);
    color: var(--text-color);
    width: 100%;
    transition: box-shadow var(--transition-speed-fast) ease-in-out;
    font-size: 1rem;
}
.neumorphic-input:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 3px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.form-label { font-weight: 600; margin-bottom: 0.6rem; color: var(--heading-color); }

/* General Card Styling */
.card.neumorphic-card {
    display: flex;
    flex-direction: column;
    border: none;
    overflow: hidden; /* Important for child border-radius */
    height: 100%; /* For d-flex alignment in rows */
}
.card.neumorphic-card .card-image {
    width: 100%;
    height: 220px; /* Fixed height for image containers */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card.neumorphic-card > .card-image:first-child { /* If image is first element */
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}
.card.neumorphic-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers container */
    display: block;
    transition: transform var(--transition-speed-normal) ease-in-out;
}
.card.neumorphic-card:hover .card-image img { transform: scale(1.05); }

.card.neumorphic-card .card-content,
.card.neumorphic-card .card-body { /* .card-body is Bootstrap's default */
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card.neumorphic-card .card-title { font-size: 1.3rem; margin-bottom: 0.75rem; }
.card.neumorphic-card .card-text, .card.neumorphic-card .card-text-small {
    font-size: 0.95rem; color: var(--text-muted-color); flex-grow: 1; margin-bottom: 1rem;
}
.card.neumorphic-card .card-text-small { font-size: 0.875rem; line-height: 1.6; }

.btn-link.neumorphic-link { /* For "Read More" type links */
    color: var(--accent-color-1);
    font-weight: 700; text-decoration: none; padding: 0.3rem 0;
    background: none; box-shadow: none; align-self: flex-start; /* Align left */
}
.btn-link.neumorphic-link:hover { color: var(--accent-color-1-dark); text-decoration: underline; }

/* Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::after {
    content: ''; position: absolute; width: 8px; background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset-sm); /* Sunken line */
    top: 0; bottom: 0; left: 50%; margin-left: -4px; border-radius: var(--border-radius-sm);
}
.timeline-container { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-container::after { /* The circles */
    content: ''; position: absolute; width: 28px; height: 28px; right: -14px;
    background-color: var(--accent-color-1); border: 4px solid var(--bg-color);
    top: 15px; border-radius: 50%; z-index: 1; box-shadow: var(--neumorphic-shadow-outset-sm);
}
.timeline-container.left { left: 0; }
.timeline-container.right { left: 50%; }
.timeline-container.right::after { left: -14px; }
.timeline-content { padding: 1.8rem; position: relative; } /* Uses .neumorphic-card */
.timeline-content h5 { color: var(--primary-color); font-weight: 700; }

/* Accordion */
.neumorphic-accordion .accordion-item {
    margin-bottom: 1.5rem; border: none; background-color: transparent;
    border-radius: var(--border-radius-lg); overflow: hidden;
    box-shadow: var(--neumorphic-shadow-outset); /* Shadow on the item itself */
}
.neumorphic-accordion .accordion-header { margin-bottom: 0; }
.neumorphic-accordion .accordion-button {
    background-color: var(--bg-color); color: var(--text-color); font-weight: 700;
    box-shadow: none; /* No separate shadow, relies on item's */
    border-radius: var(--border-radius-lg);
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
}
.neumorphic-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--bg-color); /* Slight change if needed, or keep same */
    box-shadow: var(--neumorphic-shadow-inset-sm); /* Inset when open */
    border-bottom-right-radius: 0; border-bottom-left-radius: 0; /* For seamless connection to body */
}
.neumorphic-accordion .accordion-button:focus { box-shadow: var(--neumorphic-shadow-inset-sm), 0 0 0 3px color-mix(in srgb, var(--primary-color) 30%, transparent); border-color: transparent;}
.neumorphic-accordion .accordion-button::after { filter: invert(30%) sepia(100%) saturate(500%) hue-rotate(190deg) brightness(80%); } /* Custom icon color */
.neumorphic-accordion .accordion-body {
    padding: 1.5rem; background-color: var(--bg-color);
    border-top: 1px solid var(--bg-color-dark); /* Subtle separator */
}

/* Carousel / Sliders */
.carousel .carousel-control-prev-icon, .carousel .carousel-control-next-icon {
    background-color: var(--primary-color); border-radius: 50%; padding: 1.3rem;
    background-size: 55% 55%; box-shadow: var(--neumorphic-shadow-outset-sm);
}
.carousel .carousel-control-prev-icon:hover, .carousel .carousel-control-next-icon:hover { background-color: var(--primary-color-dark); }
.carousel .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color); border-radius: 50%; width: 12px; height: 12px;
    margin: 0 6px; box-shadow: var(--neumorphic-shadow-inset-sm); border: none; opacity: 0.7;
}
.carousel .carousel-indicators .active { background-color: var(--accent-color-1); box-shadow: var(--neumorphic-shadow-outset-sm); opacity: 1; }

/* Project Carousel Card Specifics */
#projectsCarousel .card.neumorphic-card .row > div[class*="col-md-5"] .card-image { height: 100%; } /* Ensure image container takes full height of its column */
#projectsCarousel .card.neumorphic-card .card-image img.img-fluid {
    border-top-left-radius: var(--border-radius-lg);
    border-bottom-left-radius: var(--border-radius-lg);
    border-top-right-radius: 0;
}
@media (max-width: 767px) { /* Mobile: stack image on top */
    #projectsCarousel .card.neumorphic-card .card-image img.img-fluid {
        border-bottom-left-radius: 0;
        border-top-right-radius: var(--border-radius-lg);
    }
}

/* Testimonial Card Specifics */
.testimonial-card { padding: 2.5rem; text-align: center; }
.testimonial-card img.rounded-circle {
    width: 110px; height: 110px; object-fit: cover; margin-bottom: 1.5rem;
    box-shadow: var(--neumorphic-shadow-outset); border: 4px solid var(--bg-color);
}
.testimonial-text { font-style: italic; font-size: 1.15rem; color: var(--text-muted-color); margin-bottom: 1.5rem; }
.testimonial-author { font-weight: 700; color: var(--heading-color); margin-bottom: 0.3rem; font-size: 1.2rem;}
.testimonial-role { font-size: 0.9rem; color: var(--text-muted-color) !important; }

/* Team Section */
#team .card.neumorphic-card { text-align: center; }
#team .card.neumorphic-card .card-image.p-3 { /* Wrapper for team image */
    height: auto; /* Image itself has fixed size */
    padding-bottom: 0 !important; /* Remove bottom padding if any */
}
#team .card.neumorphic-card .card-image img.rounded-circle {
    width: 160px; height: 160px; object-fit: cover; margin: 0 auto 1rem auto;
    box-shadow: var(--neumorphic-shadow-outset); border: 5px solid var(--bg-color);
}
#team .card.neumorphic-card .card-subtitle { color: var(--accent-color-2); font-weight: 500; }

/* Methodology Section: Icon wrapper */
.icon-wrapper-neumorphic {
    width: 110px; height: 110px; border-radius: 50%; background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-outset); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.8rem auto;
}
.icon-wrapper-neumorphic img { width: 55px; height: 55px; }
#methodology .neumorphic-card h4 { color: var(--primary-color); margin-top: 1rem; }


/* About Us Section Image */
#about .image-container.neumorphic-card { padding: 0.7rem; }
#about .image-container img { border-radius: var(--border-radius-md); }


/* Cookie Consent Popup */
#cookieConsentPopup button#acceptCookieButton {
    background-color: var(--accent-color-1); color: var(--text-light-color);
    border: none; padding: 10px 20px; border-radius: var(--border-radius-sm);
    cursor: pointer; font-size: 14px; box-shadow: var(--neumorphic-shadow-outset-sm);
    transition: background-color var(--transition-speed-fast), box-shadow var(--transition-speed-fast);
}
#cookieConsentPopup button#acceptCookieButton:hover { background-color: var(--accent-color-1-dark); box-shadow: var(--neumorphic-shadow-outset); }
#cookieConsentPopup button#acceptCookieButton:active { box-shadow: var(--neumorphic-shadow-inset-sm); }

/* Barba.js Transitions */
.barba-leave-active, .barba-enter-active { transition: opacity var(--transition-speed-slow) ease-in-out; }
.barba-leave-to, .barba-enter-from { opacity: 0; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .section-title { font-size: 2.4rem; }
    p.lead { font-size: 1.1rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.4rem; }
}
@media (max-width: 768px) {
    .section-title { font-size: 2rem; margin-bottom: 2rem;}
    .hero-section { min-height: 75vh; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .btn, button, input[type="submit"], input[type="button"] { padding: 0.75rem 1.5rem; font-size: 0.95rem;}
    .hero-button { padding: 1rem 2.2rem; font-size: 1.05rem; }

    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-container::before { display: none; }
    .timeline-container.left::after, .timeline-container.right::after { left: 15px; }
    .timeline-container.right { left: 0%; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
    #contact .neumorphic-card { padding: 1.5rem; }
}