/* CSS Variables for colors and fonts */
:root {
    --bg-cream: #FAF1E4;
    --bg-brown: #875C53;
    --text-dark: #4a352f;
    --text-rust: #E38865;
    --text-light: #FAF1E4;
    
    --accent-green: #a3b18a;
    --accent-red: #dc2626;
    --cloud-white: #ffffff;
    
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-cream);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.title-primary {
    font-size: 4rem;
    color: var(--text-rust);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
}

.title-secondary {
    font-size: 2rem;
    color: var(--text-dark);
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
}

.section-title {
    font-size: 3rem;
    color: var(--text-rust);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.section-subtitle {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.rust-text { color: var(--text-rust); }
.light-text { color: var(--text-light); }
.text-center { text-align: center; }

/* Layout & Containers */
section {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cream-bg { background-color: var(--bg-cream); }
.brown-bg { 
    background-color: var(--bg-brown); 
    color: var(--text-light);
}

.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.two-col > * {
    flex: 1 1 300px;
}

.align-center { align-items: center; }
.flex-center { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.hero-top-left {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 0.9rem;
    z-index: 10;
}

.hero-bottom-right {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 10;
}

.hero-center {
    position: relative;
    z-index: 10;
    padding: 4rem 6rem;
}

.cloud-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 140%;
    background: var(--cloud-white);
    border-radius: 50%;
    z-index: -1;
    /* Cloud shape using multiple box-shadows or border radius tricks */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
}

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

/* Decorations (Emojis simulating PDF graphics) */
.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.decorations span {
    position: absolute;
    font-size: 3rem;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite alternate;
}

.dec-bear { top: 10%; left: 10%; font-size: 4rem; animation-delay: 0s; }
.dec-bee { top: 20%; left: 35%; font-size: 3.5rem; animation-delay: -1s; }
.dec-rainbow { top: 15%; right: 15%; font-size: 5rem; animation-delay: -2s; }
.dec-ladybug { bottom: 20%; right: 25%; font-size: 4rem; animation-delay: -3s; }
.dec-star-1 { top: 15%; right: 35%; font-size: 2rem; color: #facc15; animation-delay: -1.5s; }
.dec-star-2 { bottom: 25%; left: 15%; font-size: 2.5rem; color: #facc15; animation-delay: -0.5s; }
.dec-worm { bottom: 15%; left: 45%; font-size: 3rem; animation-delay: -2.5s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(5deg); }
}

/* UI Elements */
.squiggle-divider {
    width: 80px;
    height: 10px;
    background-image: radial-gradient(circle at 10px 10px, var(--accent-green) 10px, transparent 11px);
    background-size: 20px 20px;
    background-position: 0 -10px;
    background-repeat: repeat-x;
    margin: 1rem 0 2rem 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 { margin-bottom: 2rem; }

/* About Section */
.about p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.flower-collage {
    position: relative;
    width: 300px;
    height: 300px;
}

.petal {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #d4a373;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.petal-1 { top: 0; left: 90px; background: #e08266; }
.petal-2 { top: 60px; right: 20px; background: #a3b18a; }
.petal-3 { bottom: 30px; right: 50px; background: #f4a261; }
.petal-4 { bottom: 30px; left: 50px; background: #e9c46a; }
.petal-5 { top: 60px; left: 20px; background: #2a9d8f; }

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--bg-cream);
    border-radius: 50%;
    z-index: 2;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

/* Gallery Section */
.polaroid-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.polaroid {
    background: #fff;
    padding: 15px 15px 50px 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.polaroid:hover {
    transform: scale(1.05) translateY(-10px) !important;
    z-index: 10;
}

.polaroid-img {
    width: 250px;
    height: 250px;
    background-color: #ddd;
    /* Using generic colorful gradients to represent pictures */
    background-image: linear-gradient(135deg, #a3b18a 0%, #2a9d8f 100%);
    border-radius: 2px;
}

.img-g1 { background-image: linear-gradient(135deg, #e08266 0%, #d4a373 100%); }
.img-g2 { background-image: linear-gradient(135deg, #a3b18a 0%, #2a9d8f 100%); }
.img-g3 { background-image: linear-gradient(135deg, #f4a261 0%, #e9c46a 100%); }
.img-g4 { background-image: linear-gradient(135deg, #d4a373 0%, #e08266 100%); }
.img-g5 { background-image: linear-gradient(135deg, #2a9d8f 0%, #a3b18a 100%); }
.img-g6 { background-image: linear-gradient(135deg, #e9c46a 0%, #f4a261 100%); }
.img-g7 { background-image: linear-gradient(135deg, #e08266 0%, #e9c46a 100%); }
.img-contact { background-image: linear-gradient(135deg, #a3b18a 0%, #d4a373 100%); }

.p-tilt-left { transform: rotate(-3deg); }
.p-tilt-right { transform: rotate(4deg); }
.p-up { margin-top: -30px; }
.p-down { margin-top: 30px; }

/* Pillars Section */
.pillars-layout {
    margin-top: 3rem;
}

.pillars-list {
    list-style: none;
}

.pillars-list li {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.pillars-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.pillars-list strong {
    display: block;
    color: var(--text-rust);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.circle-img-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.book-placeholder { background: linear-gradient(135deg, #e08266 0%, #d4a373 100%); }
.group-placeholder { background: linear-gradient(135deg, #a3b18a 0%, #2a9d8f 100%); }

/* Collaboration Section */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

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

.logo-placeholder {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.kanapicko-logo { font-size: 1.5rem; color: #1e3a8a; }
.logo-item h4 {
    color: var(--text-rust);
    letter-spacing: 1px;
}

/* Contact Section */
.contact-info p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-info strong {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title-primary { font-size: 2.5rem; }
    .title-secondary { font-size: 1.5rem; }
    .hero-center { padding: 2rem; }
    
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1.5rem; }

    .hero-top-left { top: 1rem; left: 1rem; }
    .hero-bottom-right { bottom: 1rem; right: 1rem; }
    
    .pillars-layout.reverse { flex-direction: column-reverse; }
    
    .polaroid-img {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 1/1;
    }
}
