:root {
    /* Red palette (from mushroom cap) */
    --pink: #E53935;
    --pink-light: #FFCDD2;
    --pink-dark: #C62828;

    /* Green palette (from grass) */
    --green: #43A047;
    --green-light: #A5D6A7;
    --green-dark: #2E7D32;

    /* Accent colors - warm cream from logo background */
    --sunny: #FFCA28;
    --sunny-light: #FFF8E1;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FEFEFE;
    --cream: #FFF9F5;
    --text-dark: #3E2723;
    --text-light: #5D4037;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    margin: 0;
    padding: 0;
}

/* ============================================
   FANCY NAVIGATION
   ============================================ */
.navbar {
    background: linear-gradient(180deg, var(--white) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
    position: relative;
    margin-bottom: 0;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--sunny), var(--green));
    z-index: 10;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.logo-img:hover {
    transform: scale(1.08) rotate(-2deg);
}

/* Fancy Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--pink-light) 100%);
    padding: 0.4rem;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: transparent;
    z-index: 1;
}

.main-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: 30px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-nav .nav-link:hover {
    color: var(--pink-dark) !important;
    transform: translateY(-2px);
}

.main-nav .nav-link:hover::before {
    transform: scale(1);
}

.main-nav .nav-link.active {
    color: var(--white) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.main-nav .nav-link.active::before {
    transform: scale(1);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.btn-lang {
    background: var(--white);
    border: 2px solid var(--green-light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-lang:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--green);
    background: var(--green-light);
}

.btn-lang::after {
    font-size: 0.65rem;
    opacity: 0.7;
}

.language-switcher .dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    padding: 0.6rem;
    min-width: 160px;
    animation: dropIn 0.3s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-switcher .dropdown-item {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.language-switcher .dropdown-item:hover {
    background: linear-gradient(135deg, var(--green-light), var(--pink-light));
    transform: translateX(4px);
}

/* Flag Icons */
.flag {
    display: inline-block;
    width: 26px;
    height: 18px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.flag-pl {
    background-image: url('/images/flag-pl.png');
}

.flag-en {
    background-image: url('/images/flag-en.png');
}

.flag-uk {
    background-image: url('/images/flag-uk.png');
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--sunny-light) 50%, var(--pink-light) 100%);
    padding: 4rem 0;
    margin-top: 3px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    border: none;
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--pink-rgb), 0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--pink-rgb), 0.6);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border: none;
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--green-rgb), 0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--green-rgb), 0.6);
}

/* ============================================
   CARDS
   ============================================ */
.card-custom {
    border: none;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    background: var(--white);
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-custom .card-body {
    padding: 2.5rem;
}

.card-icon {
    font-size: 3rem;
    color: var(--pink);
    margin-bottom: 1rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 180px;
    height: 5px;
    background: linear-gradient(90deg, var(--pink), var(--sunny), var(--green));
    border-radius: 3px;
    margin-top: 0.8rem;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ============================================
   FEATURE BOX
   ============================================ */
.feature-box {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.feature-box:hover {
    transform: translateY(-6px);
    border-color: var(--green);
    box-shadow: 0 15px 40px rgba(var(--green-rgb), 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--pink-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(var(--green-rgb), 0.3);
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--green) 0%, var(--pink) 100%);
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--green-dark);
    transition: color 0.3s ease;
}

.feature-box:hover .feature-icon i {
    color: var(--white);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--sunny-light) 50%, var(--pink-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.gallery-placeholder:hover {
    transform: scale(1.02);
}

.gallery-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
    opacity: 0.4;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-info-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--green);
    box-shadow: 0 15px 40px rgba(var(--green-rgb), 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--green-light), var(--green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 6px 15px rgba(var(--green-rgb), 0.3);
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control-custom {
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    transition: all 0.3s ease;
    background: var(--off-white);
}

.form-control-custom:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(var(--green-rgb), 0.15);
    background: var(--white);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   EU FUNDING SECTION
   ============================================ */
.eu-funding-section {
    background: var(--white);
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.eu-funding-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.eu-strip {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .eu-strip {
        max-height: 100px;
    }
}

.eu-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    max-width: 800px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1512 100%);
    color: var(--white);
    margin-top: 4px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--sunny), var(--green));
    z-index: 10;
}

.footer h5 {
    color: var(--pink);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--green-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--pink);
    padding-left: 5px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--sunny-light) 50%, var(--green-light) 100%);
    padding: 2rem 0;
    margin-top: 3px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--sunny), var(--pink));
}

/* Decorative circles */
.page-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(var(--pink-rgb), 0.2);
    border-radius: 50%;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .container::before,
.page-header .container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.page-header .container::before {
    top: -30px;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(var(--green-rgb), 0.25);
}

.page-header .container::after {
    bottom: -40px;
    right: 15%;
    width: 80px;
    height: 80px;
    background: rgba(var(--sunny-rgb), 0.35);
}

.page-header h1 {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: 4rem 0;
}

.bg-light-custom {
    background: linear-gradient(180deg, var(--green-light) 0%, var(--cream) 100%);
}

.bg-accent {
    background: linear-gradient(180deg, var(--pink-light) 0%, var(--cream) 100%);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .main-nav {
        background: var(--white);
        padding: 1rem;
        border-radius: 20px;
        margin-top: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .main-nav .nav-link {
        padding: 0.8rem 1.2rem !important;
        margin: 0.2rem 0;
    }

    .hero-section .col-lg-6:first-child {
        text-align: center;
    }

    .hero-section .btn {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .feature-box {
        padding: 1.8rem 1.5rem;
    }

    .content-section {
        padding: 3rem 0;
    }
}

/* ============================================
   FOCUS STATES
   ============================================ */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--green-rgb), 0.4);
}

/* ============================================
   ALERT STYLES
   ============================================ */
.alert {
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1512 100%);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.4s ease;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    color: var(--white);
    font-size: 0.95rem;
    flex: 1;
}

.cookie-text a {
    text-decoration: underline;
}

.btn-cookie {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-cookie {
        width: 100%;
    }
}

/* ============================================
   UTILITY CLASSES (moved from inline styles)
   ============================================ */
.link-accent {
    color: var(--green-dark);
}

.link-accent:hover {
    color: var(--green);
}

.link-accent-light {
    color: var(--green-light);
}

.link-accent-light:hover {
    color: var(--pink);
}

.link-primary {
    color: var(--green);
}

.link-primary:hover {
    color: var(--pink);
}

.alert-gallery {
    background-color: var(--green-light);
    border: none;
    border-radius: 15px;
}

.alert-form {
    border-radius: 15px;
}

.hero-logo {
    max-height: 300px;
}

.text-accent {
    color: var(--green-dark);
}

.text-accent-bold {
    font-weight: 600;
    color: var(--green-dark);
}

/* ============================================
   BANNER CAROUSEL
   ============================================ */
.banner-carousel-section {
    padding: 2rem 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--sunny-light) 50%, var(--cream) 100%);
}

.banner-carousel-section .carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                0 0 0 4px rgba(255, 255, 255, 0.5);
}

.banner-carousel-section .carousel-inner {
    border-radius: 20px;
}

.banner-carousel-section .banner-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center center;
}

.banner-carousel-section .banner-link {
    display: block;
    transition: transform 0.3s ease;
}

.banner-carousel-section .banner-link:hover {
    transform: scale(1.02);
}

.banner-carousel-section .carousel-control-prev,
.banner-carousel-section .carousel-control-next {
    width: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-carousel-section .carousel:hover .carousel-control-prev,
.banner-carousel-section .carousel:hover .carousel-control-next {
    opacity: 1;
}

.banner-carousel-section .carousel-control-prev-icon,
.banner-carousel-section .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 50%;
}

.banner-carousel-section .carousel-indicators {
    margin-bottom: 1rem;
}

.banner-carousel-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.banner-carousel-section .carousel-indicators button.active {
    background-color: var(--pink);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .banner-carousel-section {
        padding: 1rem 0;
    }

    .banner-carousel-section .carousel {
        border-radius: 15px;
    }

    .banner-carousel-section .banner-image {
        height: 300px;
    }

    .banner-carousel-section .carousel-control-prev,
    .banner-carousel-section .carousel-control-next {
        width: 40px;
        opacity: 1;
    }

    .banner-carousel-section .carousel-control-prev-icon,
    .banner-carousel-section .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }
}
