/*
  Theme: Hlas a dikce pro práci i život v Чехии
  Design System: Neumorphism with Asymmetric Balance
  Color Scheme: Triadic
  Animation Style: Parallax
  Fonts: Roboto (Headings), Lato (Body)
*/

/* -------------------------------------------------------------------------- */
/*                               CSS Variables                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Neumorphism Base Colors */
    --bg-color: #e0e5ec; /* Light greyish-blue - main background */
    --element-bg: #dde3ea; /* Slightly lighter for raised elements */
    --element-bg-darker: #c8cdd3; /* For pressed/inset effect on element-bg */

    /* Triadic Color Scheme */
    /* Primary (Cool Blue) */
    --primary-color: #5D9CEC; /* Bright Blue */
    --primary-color-darker: #4A88D9;
    --primary-color-lighter: #7AB8F0;
    --primary-color-rgb: 93, 156, 236;

    /* Accent 1 (Warm Orange/Coral) */
    --accent-color-1: #F29C6B; /* Coral Orange */
    --accent-color-1-darker: #E08A58;
    --accent-color-1-lighter: #F5B089;

    /* Accent 2 (Green/Teal) */
    --accent-color-2: #60C5BA; /* Tealish Green */
    --accent-color-2-darker: #4DB3A7;
    --accent-color-2-lighter: #7DD1C9;
    
    /* Text Colors */
    --text-color-dark: #3a3e47; /* Dark grey for body text */
    --text-color-medium: #5b6271; /* Medium grey for less important text */
    --text-color-light: #f0f2f5; /* For text on dark backgrounds */
    --heading-color: #2c313a; /* Darker for headings */
    --white-color: #FFFFFF;

    /* Neumorphic Shadows (derived from bg-color) */
    --shadow-light-strong: #ffffff; /* Lighter highlight */
    --shadow-dark-strong: #a3b1c6;  /* Darker shadow */
    --shadow-light-soft: rgba(255, 255, 255, 0.7);
    --shadow-dark-soft: rgba(163, 177, 198, 0.6);

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

    /* Borders & Transitions */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;

    /* Gradient Backgrounds (Subtle) */
    --gradient-bg-soft: linear-gradient(145deg, var(--element-bg), #cdd3da);
    --gradient-overlay-dark: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

/* -------------------------------------------------------------------------- */
/*                                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);
    background-color: var(--bg-color);
    color: var(--text-color-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------------- */
/*                                Typography                                  */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.navbar-brand, .hero-title, .section-title, .card-title, .stat-number, .client-name {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 1px var(--shadow-light-soft); /* Subtle neumorphic text shadow */
}

h1, .hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2, .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 2rem; }
h3, .card-title { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-color-medium);
}

p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-color-dark);
}

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

.text-white { color: var(--white-color) !important; } /* Bootstrap override for hero */
.text-white h1, .text-white p { color: var(--white-color) !important; text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important; }


/* -------------------------------------------------------------------------- */
/*                                Layout & Sections                           */
/* -------------------------------------------------------------------------- */
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

section {
    padding: 60px 0; /* Default section padding */
    position: relative;
    overflow: hidden; /* For potential parallax children or asymmetric elements */
}

/* Specific page top padding */
main[data-barba-namespace="privacy"] section:first-of-type,
main[data-barba-namespace="terms"] section:first-of-type,
main[data-barba-namespace="contact"] section:first-of-type,
main[data-barba-namespace="about"] section:first-of-type {
    padding-top: 120px; /* Increased top padding for fixed header */
}


.section-bg {
    background-color: var(--element-bg-darker); /* Slightly different shade for alternate sections */
}

/* -------------------------------------------------------------------------- */
/*                                  Buttons                                   */
/* -------------------------------------------------------------------------- */
.btn, button, input[type='submit'] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--element-bg);
    border: 1px solid transparent; /* For consistency */
    padding: 0.75rem 1.8rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed-normal) ease-in-out;
    color: var(--primary-color);
    box-shadow: 5px 5px 10px var(--shadow-dark-strong), 
                -5px -5px 10px var(--shadow-light-strong);
    text-decoration: none; /* Remove underline from <a> styled as .btn */
}

.btn:hover, button:hover, input[type='submit']:hover {
    box-shadow: inset 3px 3px 6px var(--shadow-dark-strong), 
                inset -3px -3px 6px var(--shadow-light-strong);
    color: var(--primary-color-darker);
}

.btn:active, button:active, input[type='submit']:active,
.btn:focus, button:focus, input[type='submit']:focus {
    box-shadow: inset 5px 5px 10px var(--shadow-dark-strong), 
                inset -5px -5px 10px var(--shadow-light-strong);
    outline: none; /* Remove default focus outline */
}

/* Primary Button Style (CTA) */
.btn-primary, .neumorphic-btn-cta { /* .neumorphic-btn-cta is from HTML */
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 5px 5px 10px var(--primary-color-darker), 
                -5px -5px 10px var(--primary-color-lighter);
}

.btn-primary:hover, .neumorphic-btn-cta:hover {
    background-color: var(--primary-color-darker);
    color: var(--white-color); /* Ensure text remains white */
    box-shadow: inset 3px 3px 6px var(--primary-color-darker), 
                inset -3px -3px 6px var(--primary-color-lighter);
}

/* Secondary Button Style */
.btn-secondary, .neumorphic-btn-secondary { /* .neumorphic-btn-secondary is from HTML */
    background-color: var(--element-bg);
    color: var(--accent-color-1);
     box-shadow: 5px 5px 10px var(--shadow-dark-strong), 
                -5px -5px 10px var(--shadow-light-strong);
}
.btn-secondary:hover, .neumorphic-btn-secondary:hover {
    color: var(--accent-color-1-darker);
     box-shadow: inset 3px 3px 6px var(--shadow-dark-strong), 
                inset -3px -3px 6px var(--shadow-light-strong);
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-color-2);
    margin-top: 0.5rem;
    transition: color var(--transition-speed-normal), transform var(--transition-speed-normal);
}
.read-more-link::after {
    content: ' →'; /* Arrow */
    display: inline-block;
    transition: transform var(--transition-speed-normal);
}
.read-more-link:hover {
    color: var(--accent-color-2-darker);
    text-decoration: none;
}
.read-more-link:hover::after {
    transform: translateX(5px);
}

/* -------------------------------------------------------------------------- */
/*                                    Forms                                   */
/* -------------------------------------------------------------------------- */
.form-label {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    display: block;
}
.form-control, .form-select, .neumorphic-input { /* .neumorphic-input is from HTML */
    display: block;
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color-dark);
    background-color: var(--bg-color); /* Slightly different from element-bg for inset look */
    background-clip: padding-box;
    border: 1px solid var(--element-bg-darker); /* Subtle border */
    appearance: none;
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-speed-normal) ease-in-out, box-shadow var(--transition-speed-normal) ease-in-out;
    box-shadow: inset 4px 4px 8px var(--shadow-dark-strong), 
                inset -4px -4px 8px var(--shadow-light-strong);
}
.form-control:focus, .form-select:focus, .neumorphic-input:focus {
    color: var(--text-color-dark);
    background-color: var(--element-bg);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: inset 2px 2px 4px var(--shadow-dark-strong), 
                inset -2px -2px 4px var(--shadow-light-strong),
                0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}
textarea.form-control, textarea.neumorphic-input {
    min-height: 120px;
    resize: vertical;
}

/* -------------------------------------------------------------------------- */
/*                                    Cards                                   */
/* -------------------------------------------------------------------------- */
.card, .neumorphic-card, .neumorphic-stat-card, .neumorphic-testimonial-card { /* .neumorphic-* are from HTML */
    background-color: var(--element-bg);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 8px 8px 16px var(--shadow-dark-strong), 
                -8px -8px 16px var(--shadow-light-strong);
    transition: all var(--transition-speed-normal) ease;
    padding: 1.5rem;
    display: flex; /* For centering content */
    flex-direction: column; /* Stack image and content vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text within card */
    height: 100%; /* For consistent height in rows */
}

.card:hover, .neumorphic-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 12px 12px 24px var(--shadow-dark-strong), 
                -12px -12px 24px var(--shadow-light-strong);
}

.card-image, .image-container { /* .image-container is from HTML prompt */
    width: 100%; /* Take full width of card padding */
    max-width: 350px; /* Optional: constrain image width */
    height: 200px; /* Fixed height for image container */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem; /* Space between image and content */
    background-color: var(--bg-color); /* Placeholder bg */
    box-shadow: inset 3px 3px 6px var(--shadow-dark-strong), 
                inset -3px -3px 6px var(--shadow-light-strong);
}

.card-image img, .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container, might crop */
    display: block;
    border-radius: var(--border-radius-md); /* Match container's radius if needed */
}

.card-content {
    width: 100%; /* Ensure content takes available width */
}

.card-content .price {
    font-weight: 700;
    color: var(--accent-color-1);
    font-size: 1.4rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                                  Header / Navbar                           */
/* -------------------------------------------------------------------------- */
.fixed-top {
    position: fixed; /* Ensure it's truly fixed if Barba.js is not used or for fallback */
    width: 100%;
    z-index: 1030;
    /* background-color: transparent; For glassmorphism if desired */
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    /* border-bottom: 1px solid rgba(255,255,255,0.1); */
}

.neumorphic-nav {
    background-color: var(--element-bg);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    box-shadow: 8px 8px 16px var(--shadow-dark-soft), 
                -8px -8px 16px var(--shadow-light-soft);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--heading-color) !important;
}

.nav-link {
    color: var(--text-color-medium) !important;
    margin: 0 0.5rem;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed-normal) ease;
    font-weight: 700;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--element-bg); /* Same as nav, but shadow makes it pop */
    box-shadow: inset 4px 4px 8px var(--shadow-dark-strong), 
                inset -4px -4px 8px var(--shadow-light-strong);
}

.navbar-toggler.neumorphic-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
    background-color: var(--element-bg);
    border-radius: var(--border-radius-md);
    box-shadow: 5px 5px 10px var(--shadow-dark-strong), 
                -5px -5px 10px var(--shadow-light-strong);
}
.navbar-toggler.neumorphic-toggler:focus {
    box-shadow: inset 3px 3px 6px var(--shadow-dark-strong), 
                inset -3px -3px 6px var(--shadow-light-strong);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(var(--primary-color-rgb), 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        background-color: var(--element-bg);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: 0 8px 16px var(--shadow-dark-soft);
    }
    .nav-link {
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.hero-section {
    /* min-height: 85vh; Removed as per new requirement */
    padding-top: 150px; /* Space for fixed header and content */
    padding-bottom: 80px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    position: relative; /* For overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* The background-image with linear-gradient is applied inline in HTML */

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--white-color) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--white-color) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/*                              Statistics Section                            */
/* -------------------------------------------------------------------------- */
.neumorphic-stat-card {
    padding: 2rem;
}
.stat-icon {
    font-size: 3rem;
    color: var(--accent-color-1);
    margin-bottom: 1rem;
    /* For animated icons, you might use an <img> or a Lottie player here */
    /* Example: animated-icon class */
    display: flex;
    justify-content: center;
    align-items: center;
}
.stat-icon svg, .stat-icon img {
    width: 50px;
    height: 50px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    color: var(--text-color-medium);
    font-weight: 700;
}
.progress.neumorphic-progress { /* .neumorphic-progress is from HTML */
    height: 12px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-sm);
    box-shadow: inset 2px 2px 5px var(--shadow-dark-strong), 
                inset -2px -2px 5px var(--shadow-light-strong);
    overflow: visible; /* To see rounded progress bar */
}
.progress-bar {
    background-color: var(--accent-color-2);
    border-radius: var(--border-radius-sm);
    transition: width var(--transition-speed-slow) ease-in-out;
}

/* -------------------------------------------------------------------------- */
/*                         Portfolio & Testimonials Carousel                  */
/* -------------------------------------------------------------------------- */
.neumorphic-carousel .carousel-inner {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 6px 6px 12px var(--shadow-dark-strong), 
                -6px -6px 12px var(--shadow-light-strong);
}
.neumorphic-carousel .card {
    box-shadow: none;
    margin-bottom: 0;
    background-color: transparent; /* Card itself is transparent, shadow on parent */
    padding: 0; /* Remove card padding if image takes full space */
    border-radius: 0;
}
.neumorphic-carousel .card-image {
    height: 300px; /* Adjust as needed for carousel items */
    border-radius: 0; /* Image container no radius if carousel inner has it */
    margin-bottom: 0;
}
.carousel-caption {
    background: var(--gradient-overlay-dark); /* Better contrast */
    border-radius: 0;
    padding: 1.5rem;
    color: var(--white-color);
    bottom: 0; /* Ensure it's at the bottom */
    left: 0;
    right: 0;
}
.carousel-caption h5 {
    color: var(--white-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.carousel-caption p {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.neumorphic-carousel-control {
    width: 8%;
    opacity: 0.9;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(var(--primary-color-rgb), 0.7);
    border-radius: 50%;
    padding: 15px;
    background-size: 50% 50%;
    box-shadow: 2px 2px 5px var(--shadow-dark-soft);
    transition: background-color var(--transition-speed-normal);
}
.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: rgba(var(--primary-color-rgb), 1);
}

/* Testimonials Specific */
.neumorphic-testimonial-card .rounded-circle {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 1.5rem; /* Increased margin */
    border: 4px solid var(--bg-color); /* Border to lift it from card bg */
    box-shadow: 0 0 0 4px var(--element-bg), /* Outer ring */
                6px 6px 12px var(--shadow-dark-strong), 
                -6px -6px 12px var(--shadow-light-strong);
}
.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}
.client-name {
    font-weight: 700;
    color: var(--primary-color);
}
.client-company {
    font-size: 0.9rem;
    color: var(--text-color-medium);
}

/* -------------------------------------------------------------------------- */
/*                             External Resources                             */
/* -------------------------------------------------------------------------- */
#external-resources .card {
    background-color: var(--element-bg); /* Ensure card background */
}
#external-resources .card-title a {
    color: var(--accent-color-2);
}
#external-resources .card-title a:hover {
    color: var(--accent-color-2-darker);
}
#external-resources .card-text.small {
    font-size: 0.85rem;
    color: var(--text-color-medium);
    line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/*                                Press/Partners                              */
/* -------------------------------------------------------------------------- */
.neumorphic-partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--element-bg);
    border-radius: var(--border-radius-md);
    box-shadow: 5px 5px 10px var(--shadow-dark-strong), 
                -5px -5px 10px var(--shadow-light-strong);
    transition: all var(--transition-speed-normal) ease;
}
.neumorphic-partner-logo:hover {
    box-shadow: inset 3px 3px 6px var(--shadow-dark-strong), 
                inset -3px -3px 6px var(--shadow-light-strong);
}
.neumorphic-partner-logo img {
    max-height: 50px;
    width: auto;
    filter: grayscale(70%) opacity(0.8);
    transition: filter var(--transition-speed-normal) ease;
}
.neumorphic-partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
}
.neumorphic-partner-logo p.small {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-color-medium);
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
.neumorphic-footer {
    background-color: var(--element-bg-darker); /* Darker base for footer */
    padding: 2.5rem 0 1.5rem;
    color: var(--text-color-medium);
    text-align: center;
    box-shadow: inset 0px 10px 15px var(--shadow-dark-soft); /* Top inset shadow */
}
.footer-link {
    color: var(--text-color-dark);
    text-decoration: none;
    margin: 0 0.75rem;
    font-weight: 600;
    transition: color var(--transition-speed-normal) ease;
    font-size: 0.95rem;
}
.footer-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.social-links {
    margin-bottom: 1.5rem;
}
.social-links a.footer-link { /* Text-based social links */
    font-size: 1rem; /* Make them slightly larger */
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius-sm);
}
.social-links a.footer-link:hover {
    background-color: var(--bg-color); /* Subtle hover background */
    box-shadow: inset 2px 2px 4px var(--shadow-dark-soft),
                inset -2px -2px 4px var(--shadow-light-soft);
}

.neumorphic-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.neumorphic-footer p.small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/*                             Utility Classes                                */
/* -------------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Asymmetric Balance Helpers (Example - use with Bootstrap cols or Grid) */
.offset-shape-left::before {
    content: '';
    position: absolute;
    left: -10%;
    top: 20%;
    width: 30%;
    height: 60%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50% 0 0 50%;
    transform: skewX(-15deg);
    z-index: -1;
    opacity: 0.5;
}

/* -------------------------------------------------------------------------- */
/*                             Barba.js Transitions                           */
/* -------------------------------------------------------------------------- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 99999;
    transform: translateY(-100%); /* Initial state for slide in from top */
    transition: transform var(--transition-speed-slow) cubic-bezier(0.76, 0, 0.24, 1);
}
body.barba-leave-active .page-transition {
    transform: translateY(0%);
}
body.barba-enter-active .page-transition {
    transform: translateY(100%);
}

[data-barba="container"] {
    opacity: 1;
    transition: opacity var(--transition-speed-slow) ease-in-out;
}
.barba-leave-active [data-barba="container"] {
    opacity: 0;
    /* transform: scale(0.95); */
}
.barba-enter-from [data-barba="container"] {
    opacity: 0;
    transform: translateY(30px);
}
.barba-enter-active [data-barba="container"] {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/*                             Success Page Styles                            */
/* -------------------------------------------------------------------------- */
main[data-barba-namespace="success"] {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* To allow footer at bottom */
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* space for header if it's shown */
    padding-bottom: 20px;
}
main[data-barba-namespace="success"] .section-bg {
    width: 100%;
    max-width: 700px; /* Constrain the success message box width */
    margin: auto; /* Center the box */
}
main[data-barba-namespace="success"] .neumorphic-card {
    margin-top: auto; /* Push card to center */
    margin-bottom: auto; /* Push card to center */
}
main[data-barba-namespace="success"] footer.neumorphic-footer {
    margin-top: auto; /* Push footer to bottom of flex container */
    width: 100%;
    position: relative; /* Override fixed-bottom if it was there */
}

/* -------------------------------------------------------------------------- */
/*                                Cookie Popup                                */
/* -------------------------------------------------------------------------- */
#cookiePopup {
    background-color: rgba(44, 49, 58, 0.95) !important; /* Darker, more solid */
    color: var(--text-color-light) !important;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
#cookiePopup p {
    color: var(--text-color-light) !important;
    margin-bottom: 1rem !important;
}
#cookiePopup a {
    color: var(--primary-color-lighter) !important;
    font-weight: 600;
}
#cookiePopup a:hover {
    color: var(--white-color) !important;
}
#cookiePopup #acceptCookie {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2), -2px -2px 5px rgba(255,255,255,0.1) !important; /* Subtle neumorphism for button in popup */
}
#cookiePopup #acceptCookie:hover {
    background-color: var(--primary-color-darker) !important;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    h2, .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
    h3, .card-title { font-size: clamp(1.2rem, 4vw, 1.5rem); }

    section { padding: 40px 0; }
    main[data-barba-namespace="privacy"] section:first-of-type,
    main[data-barba-namespace="terms"] section:first-of-type,
    main[data-barba-namespace="contact"] section:first-of-type,
    main[data-barba-namespace="about"] section:first-of-type {
        padding-top: 100px;
    }
    .hero-section { padding-top: 120px; padding-bottom: 60px; }

    .btn, button, input[type='submit'] { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
}
*{
    opacity: 1 !important;
}