/* Główny układ wizualny dla Kinolekcji */

:root {
    --primary: #FF5E62;     /* Koralowy - mocny akcent */
    --secondary: #FFCC29;   /* Słoneczny żółty */
    --action: #00B1A2;      /* Morski dla przycisków / zachęty */
    --dark: #2E3A59;        /* Granat (czcionka/headers) */
    --text: #4A5568;        /* Tekst (paragrafy) */
    --bg-light: #F9FAFB;    /* Tło ogólne */
    --white: #FFFFFF;
    
    --radius: 16px;
    --shadow: 0 10px 30px rgba(46, 58, 89, 0.1);
    --shadow-hover: 0 15px 40px rgba(46, 58, 89, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Baloo 2', cursive;
    color: var(--dark);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ================== PRZYCISKI ================== */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF8588);
    color: var(--white) !important;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 94, 98, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(255, 94, 98, 0.4);
    transform: translateY(-3px);
}

.btn-action {
    background: var(--action);
    color: var(--white) !important;
    padding: 15px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 177, 162, 0.3);
}
.btn-action:hover {
    background: #00998B;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 177, 162, 0.4);
}

/* ================== HEADER / NAWIGACJA ================== */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}
.logo span {
    color: var(--primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px;
    bottom: 0; left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
    border-radius: 3px;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ================== GŁÓWNA ZAWARTOŚĆ ================== */
.content-wrapper {
    margin-top: 80px; /* offset na header */
    min-height: calc(100vh - 150px);
}

/* ====== MODUŁ: HERO ====== */
.module-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}
.hero-content h1 span {
    color: var(--primary);
    position: relative;
}
.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0; width: 100%; height: 12px;
    background: var(--secondary);
    z-index: -1;
    opacity: 0.5;
    border-radius: 10px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: var(--transition);
}
.hero-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

/* Dekoracje / Bloby w tle hero */
.hero-bg-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}
.shape-1 {
    background: var(--secondary);
    width: 300px; height: 300px;
    top: -50px; right: -50px;
    animation: float 8s ease-in-out infinite alternate;
}
.shape-2 {
    background: var(--primary);
    width: 400px; height: 400px;
    bottom: -100px; left: -100px;
    animation: float 10s ease-in-out infinite alternate-reverse;
}

/* ====== MODUŁY CMS ====== */
.module-wrapper {
    padding: 80px 0;
}

.module-wrapper:nth-child(even) {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
}

/* Karty Funkcji (Program Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    top: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    padding-top: 75%; /* ratio 4:3 */
    box-shadow: var(--shadow);
}
.gallery-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* ====== ANIMACJE INTERSECTION OBSERVER ====== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.anim-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Kluczowe klatki dla elementów w tle */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, -30px) rotate(15deg); }
}

/* ====== FOOTER ====== */
.main-footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.main-footer p {
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* ====== RESPONSIVE ====== */
@media(max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .main-nav, .nav-buttons { display: none; } /* włączymy hamburgera pozniej */
}
