:root {
    /* Color Palette */
    --primary: #FF9F1C;
    /* Warm Orange */
    --primary-dark: #cc7a00;
    --primary-light: #FFBF69;

    --secondary: #2EC4B6;
    /* Turquoise */
    --secondary-dark: #208b81;
    --secondary-light: #CBF3F0;

    --accent-red: #FF595E;
    --accent-yellow: #FFCA3A;
    --accent-blue: #1982C4;
    --accent-purple: #8AC926;
    /* Actually green, but fits the vibe */

    --bg-color: #FDFFFC;
    /* Soft White */
    --bg-alt: #F0F4F8;
    /* Very light gray/blue for sections */

    --text-main: #2B2D42;
    --text-light: #5D677A;

    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    /* Soft, rounded, friendly */
    --font-body: 'Outfit', sans-serif;
    /* Clean, modern */
    /* Clean, modern */


    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 9999px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(43, 45, 66, 0.05);
    --shadow-md: 0 8px 24px rgba(43, 45, 66, 0.08);
    --shadow-lg: 0 15px 35px rgba(43, 45, 66, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

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



.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Components */

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background-color: var(--primary-light);
    background-color: rgba(255, 159, 28, 0.1);
    /* transparent primary */
}

.social-link {
    color: #1877F2;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--secondary-light);
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-2deg);
}

.hero-text .lead {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Organic Blob Shape */
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
    animation: morph 8s ease-in-out infinite;
    max-width: 100%;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    /* Smaller font */
}

.footer-col p,
.footer-col ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    /* Smaller font */
}

.footer-col a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- Feature Grid (Dlaczego My) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--text-heading);
    font-weight: 700;
}

.feature-item p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Feature Icon Colors */
.icon-mint {
    background: linear-gradient(135deg, #4DB6AC, #26A69A);
}

.icon-yellow {
    background: linear-gradient(135deg, #FFCA28, #FFB300);
}

.icon-blue {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
}

.icon-purple {
    background: linear-gradient(135deg, #AB47BC, #8E24AA);
}

.icon-orange {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Cards & Other components placeholders */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--secondary);
}

.special-notice {
    background-color: #FFF3E0;
    color: #E65100;
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 5px solid #EF6C00;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
    position: relative;
    border: 4px solid white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}



/* --- Educational Cards Section --- */
.educational-section {
    background-color: #FFECB3;
    /* Light orange/yellow background */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.edu-card {
    background: white;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-10px);
}

.edu-card-inner {
    border: 2px dashed #ddd;
    border-radius: 25px;
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.edu-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.edu-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.edu-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Card Variations */
.card-blue .edu-card-inner {
    border-color: #4FC3F7;
}

.card-blue .edu-icon {
    background-color: #4FC3F7;
}

.card-pink .edu-card-inner {
    border-color: #F06292;
}

.card-pink .edu-icon {
    background-color: #AED581;
    /* Green icon for pink card as per image */
}

.card-yellow .edu-card-inner {
    border-color: #FFD54F;
}

.card-yellow .edu-icon {
    background-color: #FFD54F;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    /* Hidden by default for fade effect */
}

.lightbox.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}

/* --- Scroll Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grids */
.feature-item.visible:nth-child(1),
.card.visible:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-item.visible:nth-child(2),
.card.visible:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-item.visible:nth-child(3),
.card.visible:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-item.visible:nth-child(4),
.card.visible:nth-child(4) {
    transition-delay: 0.4s;
}

.feature-item.visible:nth-child(5) {
    transition-delay: 0.1s;
}

.feature-item.visible:nth-child(6) {
    transition-delay: 0.2s;
}

.feature-item.visible:nth-child(7) {
    transition-delay: 0.3s;
}

.feature-item.visible:nth-child(8) {
    transition-delay: 0.4s;
}

/* --- Reviews Carousel (Infinite Horizontal Scroll) --- */
.reviews-wrapper {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.reviews-wrapper::before,
.reviews-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.reviews-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #FFF3E0, transparent);
}

.reviews-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #FFF3E0, transparent);
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    padding-left: 30px;
    /* Initial offset */
}

.reviews-track:hover {
    animation-play-state: paused;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    /* Reserve space for border */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    object-fit: cover;
    /* For images */
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-heading);
}

.author-info span {
    font-size: 0.85rem;
    color: #888;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move by half the width (original set) */
}

/* Specific styling for the review section background to match */
section.reviews-section {
    background-color: #FFF3E0;
    overflow: hidden;
    /* Ensure no horizontal scrollbar on body */
}

/* --- Visual Enhancements --- */
.section-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.section-wave-top .shape-fill {
    fill: #FFFFFF;
}

.section-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.section-wave-bottom .shape-fill {
    fill: #FFFFFF;
}


/* Subtle Background Pattern (Polka Dots) */
.bg-pattern-dots {
    background-image: radial-gradient(#FF9F1C 1.5px, transparent 1.5px), radial-gradient(#FF9F1C 1.5px, #FFF9E5 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    background-color: #FFF9E5;
    /* Fallback/Base color */
    opacity: 1;
    /* Ensure opacity is full, pattern is subtle via color */
}

/* Override background for specific sections using pattern */
section[style*="background-color: #FFF9E5"] {
    background-color: #FFF9E5 !important;
    /* Ensure base color matches */
    position: relative;
    /* To allow absolute positioning of waves if needed */
}

/* Make the pattern very subtle by adjusting the dot color opacity in the gradient definitions if needed, 
   but since we can't do rgba hex easily in all browsers without checking support, sticking to light colors 
   or opacity on a pseudo-element is safer. Let's use a pseudo-element for the pattern to control opacity easily. */

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 159, 28, 0.15) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above pattern */
.section .container {
    position: relative;
    z-index: 1;
}