/*
  Theme: 'Nástěnka vizualizace: jak ji vytvořit a proč je potřebná'
  Design System: Neomorphism with Biomorphic Design elements
  Color Scheme: Bright
  Animation Style: Particle Animation (supported via JS, CSS provides base)
  Fonts: Poppins (Headings), Work Sans (Body)
*/

/* CSS Variables */
:root {
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Bright Color Scheme & Neomorphism Base */
    --color-primary: #7B68EE; /* MediumSlateBlue - Vibrant but versatile */
    --color-secondary: #FF6347; /* Tomato - Strong accent */
    --color-accent: #00FA9A; /* MediumSpringGreen - Bright pop */
    
    --color-light-bg: #eef0f4; /* Main light background for Neomorphism */
    --color-light-bg-alt: #e6e9ef; /* Slightly different for alternating sections */
    
    --color-dark-text: #3a3b3f; /* Dark grey for main text, high contrast */
    --color-light-text: #FFFFFF;
    --color-subtle-text: #6c757d; /* For less prominent text */

    /* Neomorphism Shadows - derived from --color-light-bg */
    /* For #eef0f4: */
    --shadow-light-hex: #ffffff; /* Pure white for highlight */
    --shadow-dark-hex: #d1d4d9; /* Darker shade of bg for shadow */
    
    --shadow-neumorphic-outer: 6px 6px 12px var(--shadow-dark-hex), -6px -6px 12px var(--shadow-light-hex);
    --shadow-neumorphic-pressed: inset 6px 6px 12px var(--shadow-dark-hex), inset -6px -6px 12px var(--shadow-light-hex);
    --shadow-neumorphic-input: inset 4px 4px 8px var(--shadow-dark-hex), inset -4px -4px 8px var(--shadow-light-hex);
    --shadow-neumorphic-soft-glow: 0 0 15px var(--color-accent); /* For subtle accents */

    /* Gradients (Biomorphic influence) */
    --gradient-primary-accent: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-secondary-accent: linear-gradient(135deg, var(--color-secondary), var(--color-primary));

    /* Glassmorphism */
    --color-glass-bg: rgba(250, 250, 250, 0.35); /* Light glass */
    --blur-glass: 10px;

    /* Borders & Radii */
    --border-radius-soft: 12px;
    --border-radius-medium: 20px;
    --border-radius-large: 30px; /* For biomorphic feel */
    --border-radius-round: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother ease */

    /* Spacing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2.5rem;  /* 40px */
    --spacing-xl: 4rem;    /* 64px */

    /* Header Height - for offsetting content */
    --header-height: 70px; /* Adjust if header height changes */
}

/* Global Styles & Modern Normalize Complements */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 1rem = 16px */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light-bg);
    color: var(--color-dark-text);
    line-height: 1.7; /* Improved readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative; /* For potential full-page overlays or effects */
}

/* Container */
.container {
    width: 90%;
    max-width: 1140px; /* Standard container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary); /* Bright headings */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    text-align: center; /* Titles always centered */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); } /* Responsive font size */
h2.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: var(--spacing-lg); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-md);
    max-width: 700px; /* Improve readability of paragraphs */
    margin-left: auto;
    margin-right: auto;
}
p.section-intro { /* For centered intro paragraphs */
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-subtle-text);
    margin-bottom: var(--spacing-lg);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}
a:hover, a:focus {
    color: var(--color-primary);
    text-decoration: underline;
    outline: 2px solid transparent; /* For focus visibility if needed */
}

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

/* Header & Navigation */
.site-header {
    background-color: var(--color-light-bg);
    padding: var(--spacing-xs) 0;
    box-shadow: var(--shadow-neumorphic-outer);
    position: fixed; /* Fixed navigation bar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure container takes full width within header padding */
}
.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.logo:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}
.main-navigation a {
    font-weight: 500;
    color: var(--color-dark-text);
    padding: var(--spacing-xs) 0;
    position: relative;
    text-decoration: none;
}
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-smooth);
}
.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}
.main-navigation a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Burger Menu */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
    height: 30px; /* Fixed height */
    width: 30px; /* Fixed width */
}
.hamburger {
    display: block;
    width: 24px; /* slightly smaller */
    height: 2px;
    background-color: var(--color-dark-text);
    position: relative;
    transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark-text);
    transition: transform var(--transition-smooth), top var(--transition-smooth), bottom var(--transition-smooth);
}
.hamburger::before { top: -7px; } /* Adjust spacing */
.hamburger::after { bottom: -7px; } /* Adjust spacing */

.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }


/* Hero Section */
.hero-section {
    /* min-height: 70vh; Remove fixed min-height */
    padding-top: calc(var(--header-height) + var(--spacing-xl)); /* Space for fixed header + extra */
    padding-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--color-light-text); /* Ensured by HTML specific styling already */
}
/* Overlay for readability - ensured by HTML specific styling already */
.hero-section::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.65));
    z-index: 1;
}
#particles-js-hero { /* For particle animations */
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}
.hero-title {
    color: var(--color-light-text) !important; /* Re-affirm white color */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Stronger shadow for hero */
}
.hero-subtitle {
    color: var(--color-light-text) !important; /* Re-affirm white color */
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: var(--spacing-lg);
}

/* Global Button Styles */
.neumorphic-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-medium); /* More biomorphic radius */
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-neumorphic-outer);
    transition: all var(--transition-smooth);
    text-align: center;
    text-decoration: none;
    outline-offset: 4px;
}
.neumorphic-button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    box-shadow: var(--shadow-neumorphic-pressed);
    color: var(--color-secondary);
    transform: translateY(-2px); /* Subtle lift */
    text-decoration: none;
}
.neumorphic-button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    box-shadow: var(--shadow-neumorphic-pressed); /* Keep pressed look */
    transform: translateY(1px); /* Push down effect */
}
.neumorphic-button:focus-visible, button:focus-visible, input[type="submit"]:focus-visible, input[type="button"]:focus-visible {
    outline: 2px solid var(--color-accent);
}


.neumorphic-button.large-button {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.15rem;
    border-radius: var(--border-radius-large);
}
.neumorphic-button.small-button {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
    border-radius: var(--border-radius-soft);
}
.hero-button { /* Specific if needed but should inherit most from .neumorphic-button */
    background-image: var(--gradient-primary-accent);
    color: var(--color-light-text);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.2), -3px -3px 8px rgba(255,255,255,0.05), var(--shadow-neumorphic-outer);
}
.hero-button:hover {
    background-image: var(--gradient-secondary-accent);
    color: var(--color-light-text);
    box-shadow: var(--shadow-neumorphic-pressed), 0px 0px 15px var(--color-secondary);
}


/* Form Elements (Neomorphic) */
.neumorphic-input, .neumorphic-textarea {
    width: 100%;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-soft);
    background-color: var(--color-light-bg);
    box-shadow: var(--shadow-neumorphic-input);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark-text);
    transition: box-shadow var(--transition-smooth);
}
.neumorphic-input:focus, .neumorphic-textarea:focus {
    outline: none;
    box-shadow: var(--shadow-neumorphic-input), 0 0 0 2px var(--color-accent); /* Focus ring */
}
.neumorphic-form .form-group {
    margin-bottom: var(--spacing-md);
}
.neumorphic-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-primary); /* Label color */
    text-align: left;
}

/* Sections */
.content-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}
.content-section.alt-bg {
    background-color: var(--color-light-bg-alt);
}

/* Card Styles (Neomorphic & Biomorphic) */
.card {
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius-medium); /* Softer, more organic radius */
    box-shadow: var(--shadow-neumorphic-outer);
    overflow: hidden; /* Important for image radius */
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex; /* For centering image if needed */
    flex-direction: column;
    align-items: center; /* Center image horizontally if its container is not full width */
    text-align: center; /* Center text content by default */
    height: 100%; /* For equal height cards in a grid */
}
.card:hover {
    transform: translateY(-5px) scale(1.02); /* Subtle lift and scale */
    box-shadow: 8px 8px 16px var(--shadow-dark-hex), -8px -8px 16px var(--shadow-light-hex), 0 0 20px var(--color-accent); /* Glow effect */
}
.card-image, .image-container {
    width: 100%; /* Ensure container takes full width */
    /* Fixed height for uniform card images */
    height: 220px; /* Example fixed height */
    overflow: hidden;
    border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0; /* Rounded top corners */
    display: flex; /* Added for centering image */
    align-items: center; /* Added for centering image */
    justify-content: center; /* Added for centering image */
}
.card-image img, .image-container img {
    width: 100%;
    height: 100%; /* Fill the fixed height container */
    object-fit: cover; /* Cover without distortion */
    display: block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth zoom */
}
.card:hover .card-image img, .card:hover .image-container img {
    transform: scale(1.08); /* Zoom effect on image */
}
.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allow content to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if exists */
}
.card-content h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-align: center;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-subtle-text);
    margin-bottom: var(--spacing-md);
    text-align: center;
    max-width: 100%; /* Allow p to take full width of card content */
}
.read-more-link {
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block; /* For better spacing */
    margin-top: auto; /* Pushes to bottom */
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-soft);
    transition: all var(--transition-fast);
}
.read-more-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-light-text);
    text-decoration: none;
}


/* Grids (Portfolio, News, Webinars) */
.portfolio-grid, .news-grid, .webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.resources-list .card { /* Specific styling for resource cards */
    text-align: left; /* Override default card centering for resource list items */
}
.resources-list .card h4 { text-align: left; }
.resources-list .card p { text-align: left; max-width: 100%; }


/* Methodology Section */
.methodology-steps .step {
    margin-bottom: var(--spacing-lg);
}

/* Progress Indicators */
.progress-indicator-container { margin-top: var(--spacing-md); }
.progress-indicator-container label {
    font-size: 0.9em;
    color: var(--color-dark-text);
    display: block;
    margin-bottom: var(--spacing-xs);
    text-align: left;
}
.neumorphic-progress {
    width: 100%;
    height: 14px;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: var(--border-radius-round); /* More biomorphic */
    background-color: var(--color-light-bg-alt);
    box-shadow: var(--shadow-neumorphic-input); /* Use input shadow for inset look */
    overflow: hidden;
}
.neumorphic-progress::-webkit-progress-bar {
    background-color: transparent;
}
.neumorphic-progress::-webkit-progress-value {
    background-image: var(--gradient-primary-accent);
    border-radius: var(--border-radius-round);
    transition: width 0.6s var(--transition-smooth);
}
.neumorphic-progress::-moz-progress-bar {
    background-image: var(--gradient-primary-accent);
    border-radius: var(--border-radius-round);
    transition: width 0.6s var(--transition-smooth);
}

/* Switches */
.switch-container {
    display: flex;
    align-items: center;
    margin-top: var(--spacing-md);
}
.switch-label {
    margin-right: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--color-dark-text);
}
.switch {
    position: relative;
    display: inline-block;
    width: 56px; /* Slightly wider */
    height: 30px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--color-light-bg-alt);
    box-shadow: var(--shadow-neumorphic-input);
    transition: .4s var(--transition-smooth);
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px; /* Slightly larger handle */
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--color-light-text);
    box-shadow: var(--shadow-neumorphic-outer); /* Handle pops out */
    transition: .4s var(--transition-smooth);
}
input:checked + .slider {
    background-image: var(--gradient-primary-accent);
    box-shadow: none; /* Flatten background when active */
}
input:focus-visible + .slider {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
input:checked + .slider:before {
    transform: translateX(26px);
    box-shadow: var(--shadow-neumorphic-outer); /* Keep handle shadow */
}
.slider.round { border-radius: var(--border-radius-round); }
.slider.round:before { border-radius: 50%; }

/* Community Section */
.community-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
}
.community-image-container {
    flex: 1 1 350px; /* Adjust flex basis */
    border-radius: var(--border-radius-large); /* Biomorphic shape */
    overflow: hidden;
    box-shadow: var(--shadow-neumorphic-outer);
}
.community-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.community-image-container:hover img {
    transform: scale(1.05);
}
.community-text {
    flex: 1 1 450px; /* Adjust flex basis */
    text-align: left; /* Align text left in this context */
}
.community-text p {
    margin-left: 0; /* Override global centering for p */
    margin-right: 0;
    max-width: none;
}
.community-actions { margin-top: var(--spacing-md); }

/* Contact CTA Section */
.contact-cta-section {
    background-image: var(--gradient-secondary-accent); /* Use a gradient */
    color: var(--color-light-text);
    border-radius: var(--border-radius-large); /* Biomorphic feel to section */
    margin: var(--spacing-xl) auto; /* Spacing around the section */
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 900px; /* Constrain width */
}
.contact-cta-section .section-title,
.contact-cta-section .section-intro {
    color: var(--color-light-text);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.contact-cta-section .neumorphic-button {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}
.contact-cta-section .neumorphic-button:hover {
    background-color: var(--color-light-text); /* Brighter hover */
    color: var(--color-secondary);
    box-shadow: var(--shadow-neumorphic-pressed), 0 0 10px var(--color-light-text);
}

/* Contact Page */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    padding: var(--spacing-lg);
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-neumorphic-outer);
}
.contact-details { text-align: center; margin-bottom: var(--spacing-lg); }
.map-placeholder.card { /* Ensure map placeholder card follows card styles */
    border-radius: var(--border-radius-medium);
}
.map-placeholder .card-image {
    height: 300px; /* Adjust as needed */
    border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
}

/* Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height, 150px)); /* Adjust footer height estimate */
    padding-top: var(--header-height); /* Ensure content below fixed header */
    text-align: center;
}
.success-icon {
    font-size: clamp(4rem, 10vw, 6rem);
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    animation: popIn 0.5s var(--transition-smooth) forwards;
}
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success-page .page-title { margin-bottom: var(--spacing-sm); }

/* Privacy & Terms Pages */
.page-hero { /* For generic page titles */
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-lg);
    min-height: auto; /* Remove fixed min-height for these pages */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: var(--spacing-lg);
}
.page-hero::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.65));
    z-index: 1;
}
.page-hero .page-title {
    position: relative;
    z-index: 2;
    color: var(--color-light-text) !important;
}

/* Content alignment for text-heavy pages */
.text-content-page {
    padding-top: calc(var(--header-height) + var(--spacing-lg)); /* Specific for privacy/terms to avoid overlap */
}
.text-content { /* Container for text on privacy/terms */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.text-content h2, .text-content h3 {
    text-align: left;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}
.text-content p, .text-content ul, .text-content li {
    text-align: left;
    margin-left: 0; /* Reset global auto margins for paragraphs */
    margin-right: 0;
    max-width: none; /* Allow full width within .text-content */
}
.text-content ul {
    list-style-position: outside;
    padding-left: var(--spacing-md); /* Indent list */
    margin-bottom: var(--spacing-md);
}
.text-content li {
    margin-bottom: var(--spacing-xs);
}


/* Footer */
.site-footer {
    background-color: var(--color-dark-text); /* Dark footer */
    color: #aab0bd; /* Lighter text for dark bg */
    padding: var(--spacing-xl) 0;
    font-size: 0.9rem;
    /* Estimate footer height for success page calculation */
    /* This can be dynamically calculated in JS if needed */
    /* For CSS, it's an estimate: var(--footer-height, 150px) */
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}
.site-footer h4 {
    color: var(--color-light-text);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    text-align: left; /* Align footer column titles left */
    text-shadow: none;
}
.site-footer ul {
    list-style: none;
}
.site-footer ul li {
    margin-bottom: var(--spacing-xs);
}
.site-footer ul li a {
    color: #aab0bd;
    text-decoration: none; /* Ensure no underline by default in footer */
    transition: color var(--transition-fast);
}
.site-footer ul li a:hover {
    color: var(--color-accent);
    text-decoration: underline; /* Underline on hover */
}
.footer-social .social-links { /* Specific for social links */
    display: flex;
    flex-direction: column; /* Text links stack nicely */
    gap: var(--spacing-xs);
}
.footer-contact-info p {
    margin-bottom: var(--spacing-xs);
    color: #aab0bd;
    text-align: left;
    max-width: none;
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(40px); /* Start slightly lower */
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Barba.js Transitions (Basic Fade) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .3s var(--transition-smooth);
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}
html.barba-locked, body.barba-locked {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    :root { /* Adjust spacing for mobile */
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    .nav-toggle { display: block; }
    .main-navigation ul {
        display: none; /* Hidden by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-light-bg);
        flex-direction: column;
        padding: var(--spacing-sm) 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 0; /* Remove gap, use padding on items */
        border-top: 1px solid var(--shadow-dark-hex);
    }
    .main-navigation ul.active { display: flex; }
    .main-navigation ul li {
        width: 100%;
        text-align: center;
    }
    .main-navigation ul li a {
        display: block;
        padding: var(--spacing-md); /* Larger tap targets */
        width: 100%;
        color: var(--color-primary);
    }
    .main-navigation ul li a::after { display: none; }
    .main-navigation ul li a:hover {
        background-color: var(--color-light-bg-alt);
        color: var(--color-secondary);
    }

    .portfolio-grid, .news-grid, .webinars-grid {
        grid-template-columns: 1fr;
    }
    .community-content { flex-direction: column; }
    .footer-container {
        grid-template-columns: 1fr; /* Single column footer on mobile */
        text-align: center;
    }
    .site-footer h4, .footer-contact-info p { text-align: center; }
    .site-footer .social-links { align-items: center; }

    .neumorphic-form label,
    .text-content h2, .text-content h3, .text-content p, .text-content ul {
        text-align: center; /* Center form labels and text content on mobile for consistency if desired */
    }
    .text-content ul {
      padding-left: 0; /* Remove indent if centered */
      list-style-position: inside;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2.section-title { font-size: 1.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }

    .neumorphic-button, button, input[type="submit"], input[type="button"] {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
    .card-image, .image-container {
        height: 180px; /* Reduce fixed height for smaller screens */
    }
}