/* Modern & Elegant News Card Enhancements */
.news-content img {
    max-width: 100%;
    border-radius: 1rem;
    margin: 1.2rem 0;
    box-shadow: 0 4px 24px rgba(var(--eu-primary-rgb), 0.07);
    transition: transform 0.2s;
}

.news-content img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(var(--eu-primary-rgb), 0.13);
}

.news-content video {
    display: block;
    margin: 1.2rem auto;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(var(--eu-primary-rgb), 0.07);
    max-width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.card.news-elegant {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(var(--eu-primary-rgb), 0.10), 0 1.5px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    background: linear-gradient(135deg, #fff 80%, var(--eu-blue-light) 100%);
    position: relative;
    margin-bottom: 2.5rem;
    transition: box-shadow 0.2s, transform 0.3s;
}

.card.news-elegant:hover {
    box-shadow: 0 16px 48px rgba(var(--eu-primary-rgb), 0.18), 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* Highlight effect when navigating to article via anchor link */
.highlight-article {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(var(--eu-primary-rgb), 0.10), 0 1.5px 8px rgba(0, 0, 0, 0.04);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 16px 48px rgba(var(--eu-primary-rgb), 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
    }
}

.card.news-elegant .card-body {
    padding: 2.2rem 2rem 2rem 2rem;
}

.card.news-elegant .card-title {
    color: var(--eu-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
}

.card.news-elegant .news-meta {
    font-size: 1em;
    color: var(--gray-600);
    margin-bottom: 0.7rem;
}

.card.news-elegant .badge.bg-eu-blue {
    font-size: 1em;
    padding: 0.6em 1.1em;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--eu-blue) 0%, var(--eu-blue-light) 100%);
    box-shadow: 0 2px 8px rgba(var(--eu-primary-rgb), 0.09);
}

.card.news-elegant .text-muted.small {
    font-size: 1em;
    margin-left: 0.7em;
}

.card.news-elegant .news-content {
    font-size: 1.13rem;
    color: var(--gray-800);
    line-height: 1.7;
}

@media (max-width: 576px) {
    .card.news-elegant .card-body {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }

    .card.news-elegant .card-title {
        font-size: 1.1rem;
    }

    .card.news-elegant .news-content {
        font-size: 1rem;
    }
}

/* Modern News Page Styles */
.news-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1rem 0;
}

.news-meta,
.card .news-meta {
    font-size: 0.95em;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.news-block,
.card.news-block {
    margin-bottom: 2rem;
}

.card.fade-in {
    animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
}

.card .card-title {
    color: var(--eu-blue);
    font-weight: 600;
}

.card .badge.bg-eu-blue {
    background: linear-gradient(90deg, var(--eu-blue) 0%, var(--eu-blue-light) 100%);
    color: #fff;
    font-size: 0.95em;
    border-radius: 4px;
    padding: 0.5em 0.9em;
    box-shadow: 0 2px 8px rgba(var(--eu-primary-rgb), 0.07);
}

.card .text-muted.small {
    font-size: 0.95em;
    margin-left: 0.5em;
}

@media (max-width: 576px) {
    .card .card-title {
        font-size: 1.1rem;
    }

    .news-content {
        font-size: 1rem;
    }
}

/* Delta-Hub Horizon Europe Website Styles */

/* Modern Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Custom Properties for EU Branding */
:root {
    /* Primary palette: refreshed teal-green with vibrant accents */
    --eu-blue: #1f6f54;
    /* primary */
    --eu-blue-dark: #175542;
    /* hover/active */
    --eu-blue-light: #2f9d7e;
    /* accents/gradients */
    --eu-primary-rgb: 31, 111, 84;
    /* rgb of --eu-blue for rgba() uses */

    /* Enhanced accent colors for modern appeal */
    --accent-teal: #00d4aa;
    --accent-coral: #ff6b6b;
    --accent-purple: #6c5ce7;
    --accent-gold: #feca57;

    --eu-yellow: #ffdd00;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #495057;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #198754;
    --warning: #ffc107;
    --info: #0dcaf0;
    --danger: #dc3545;

    /* Glass-morphism variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    font-weight: 400;
    letter-spacing: -0.011em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* EU Blue Theme */
.bg-eu-blue {
    background-color: var(--eu-blue) !important;
}

.text-eu-blue {
    color: var(--eu-blue) !important;
}

.btn-eu-blue {
    background-color: var(--eu-blue);
    border-color: var(--eu-blue);
    color: white;
}

.btn-eu-blue:hover {
    background-color: var(--eu-blue-dark);
    border-color: var(--eu-blue-dark);
    color: white;
}

.border-eu-blue {
    border-color: var(--eu-blue) !important;
}

/* Gradient Background */
.bg-gradient-blue {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-light) 100%);
}

/* EU Flag Styling */
.eu-flag {
    width: 60px;
    height: auto;
}

.eu-flag-small {
    width: 30px;
    height: auto;
}

/* Project logo */
.project-logo {
    max-height: 40px;
    /* reduced from default size */
    width: auto;
}

@media (max-width: 576px) {
    .project-logo {
        height: 40px;
    }
}

/* Header Styling */
header.sticky-top {
    box-shadow: 0 2px 10px rgba(var(--eu-primary-rgb), 0.1);
    z-index: 1030;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section with Modern Enhancements */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-light) 50%, var(--eu-blue-dark) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 0 !important;
    /* override py-5 top padding so it touches the header */
    padding-bottom: 3rem;
    /* keep some bottom spacing for content */
}

/* Animated gradient background for hero */
.hero-section::after {
    animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-section h1 {
    text-shadow:
        2px 4px 16px rgba(0, 0, 0, 0.8),
        1px 2px 4px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.hero-section .lead {
    text-shadow:
        1px 2px 12px rgba(0, 0, 0, 0.8),
        0 1px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* Ensure all hero text is highly visible */
.hero-section p,
.hero-section .btn {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Utility class for high contrast text on any background */
.text-high-contrast {
    text-shadow:
        1px 2px 8px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* Enhanced contrast for backgrounds with images/videos */
.bg-overlay-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.bg-overlay-dark>* {
    position: relative;
    z-index: 2;
}

.hero-section .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    filter: saturate(110%) contrast(105%);
}

/* Overlay to enhance text readability - LIGHT */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.05) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Edge fade effect (transparent/blur toward margins) */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.15), transparent 60%),
        radial-gradient(circle at 100% 50%, rgba(0, 0, 0, 0.05), transparent 60%);
    z-index: 2;
    pointer-events: none;
}

/* Ensure content sits above overlays/videos */
.hero-section>.container,
.hero-section .row,
.hero-section .col-lg-8,
.hero-section .col-lg-4 {
    position: relative;
    z-index: 3;
}

/* Removed decorative SVG overlay to keep the video clean */

/* Card Hover Effects with Glass-morphism */
.hover-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(var(--eu-primary-rgb), 0.2),
        0 0 0 1px rgba(var(--eu-primary-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--eu-blue-light);
    background: #ffffff;
}

/* Ensure card text has good contrast */
.hover-card .card-body h5,
.hover-card .card-body h6 {
    color: var(--gray-900);
    font-weight: 600;
}

.hover-card .card-body p {
    color: var(--gray-700);
}

.hover-card .card-body .text-muted {
    color: var(--gray-600) !important;
}

/* Glass Card Variant */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Video inside cards */
.card-video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
}

/* Section Titles with Modern Styling */
.section-title {
    position: relative;
    color: var(--eu-blue);
    font-weight: 700;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal) 0%, var(--eu-blue) 50%, var(--accent-purple) 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(var(--eu-primary-rgb), 0.3);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--eu-blue-light), transparent);
    opacity: 0.3;
    border-radius: 4px;
}

.text-center .section-title::after,
.text-center .section-title::before {
    left: 50%;
}

.text-start .section-title::after {
    left: 0;
    transform: none;
}

.text-start .section-title::before {
    left: 40px;
    transform: none;
}

/* Modern Section Background Patterns */
section.bg-light {
    background: linear-gradient(180deg, #ffffff 0%, var(--gray-100) 100%);
    position: relative;
}

section.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 20% 50%, var(--eu-blue) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, var(--accent-teal) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Button Styles with Modern Micro-interactions */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

/* Animated Gradient Button */
.btn-eu-blue {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-light) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-eu-blue:hover {
    background: linear-gradient(135deg, var(--eu-blue-dark) 0%, var(--eu-blue) 100%);
    animation: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Ripple Effect for Buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Form Styles */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--eu-blue-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--eu-primary-rgb), 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-800);
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    background-color: var(--gray-200);
}

.progress-bar {
    border-radius: 10px;
}

/* Footer Styles */
footer {
    background-color: var(--gray-900) !important;
    margin-top: auto;
}

footer a {
    color: var(--gray-200);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* EU Funding Text - White color for visibility */
footer .small,
footer span {
    color: white !important;
}

/* Flash messages spacing: hide when empty, no top gap */
#flashMessages {
    margin-top: 0 !important;
}

#flashMessages:empty {
    display: none;
}

#flashMessages:not(:empty) {
    margin-top: 1rem !important;
    /* match mt-3 only when content exists */
}

/* Social Media Links */
.fab {
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.2);
}

/* News and Blog Styles */
article.card {
    border: none;
    border-left: 4px solid var(--eu-blue);
}

.social-share a {
    transition: color 0.3s ease;
}

.social-share a:hover {
    color: var(--eu-blue) !important;
}

/* Workshop Cards */
.card.border-start {
    border-left-width: 4px !important;
}

/* Partner Logo Container */
.partner-logo-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team photo styling */
.team-photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-photo-container.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f5ff;
    color: var(--eu-blue);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge Styles */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 4px;
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success);
}

.alert-danger {
    border-left-color: var(--danger);
}

/* Contact Form Validation */
.was-validated .form-control:valid {
    border-color: var(--success);
}

.was-validated .form-control:invalid {
    border-color: var(--danger);
}

/* Admin Panel Styles */
.card-header {
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--eu-blue);
    outline-offset: 2px;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
        padding: 80px 0 20px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1040;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-collapse::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .navbar-collapse.show::before {
        opacity: 1;
        pointer-events: all;
    }

    .navbar-nav {
        padding: 0 1rem;
    }

    .navbar-nav .nav-link {
        padding: 1rem 1.5rem;
        margin: 8px 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        transform: translateX(5px);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .navbar-toggler {
        position: relative;
        z-index: 1050;
        border: none;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        backdrop-filter: blur(10px);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    }

    /* Mobile responsive adjustments */
    .display-4 {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: 50vh;
        text-align: center;
    }

    .section-title::after {
        width: 40px;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Touch-friendly button sizes */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .eu-flag {
        width: 45px;
    }

    .card-body {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .navbar,
    .btn,
    .social-share {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Dark Mode Support - Disabled for now to maintain design consistency */
/* @media (prefers-color-scheme: dark) {

    .card {
        background-color: var(--gray-900);
        color: white;
    }

    .text-muted {
        color: var(--gray-200) !important;
    }
} */

/* Advanced Animation Classes */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll-triggered animations (will be activated via JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Parallax effect */
.parallax {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Floating animation for icons/elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading States with Modern Skeleton Screens */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 0;
}

.skeleton-title {
    height: 2rem;
    margin: 1rem 0;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

    .btn-outline-primary,
    .btn-outline-secondary {
        border-width: 2px;
    }

    .card {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}