/* CSS Variables - Pastel Theme */
:root {
    --primary-bg: #fdf6f6;
    --text-color: #4a4a4a;
    --accent-pink: #ffb7b2;
    --accent-lavender: #e2f0cb;
    --pastel-pink: #ffdac1;
    --pastel-green: #b5ead7;
    --pastel-purple: #c7ceea;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--pastel-pink) 0%, var(--accent-pink) 50%, var(--pastel-purple) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Page Loader Animation Keyframes */
@keyframes petalFall {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    70% {
        transform: scale(0.9) translateY(20px);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.5) translateY(40px);
        opacity: 0;
    }
}

/* Page Loader Animation Delays */
.loader-flower .flower-center g ellipse {
    animation: petalFall 1.5s ease-in-out infinite;
    transform-origin: center;
}

.loader-flower .flower-center g:nth-child(1) ellipse {
    animation-delay: 0s;
}

.loader-flower .flower-center g:nth-child(2) ellipse {
    animation-delay: 0.3s;
}

.loader-flower .flower-center g:nth-child(3) ellipse {
    animation-delay: 0.6s;
}

.loader-flower .flower-center g:nth-child(4) ellipse {
    animation-delay: 0.9s;
}

.loader-flower .flower-center g:nth-child(5) ellipse {
    animation-delay: 1.2s;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-bg);
    background-image: linear-gradient(135deg, var(--primary-bg) 0%, #fffbf5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-flower {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--pastel-pink) 0%, var(--pastel-purple) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 100px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu ul li a {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 500;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
    transform: translateX(10px);
    color: var(--text-color);
}

/* Overlay Background */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

/* Wave Background */
.hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 0;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 550px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--accent-pink);
    position: relative;
    z-index: -1;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--pastel-green);
    opacity: 0.5;
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-pink);
    transform: translateY(-3px);
}

/* Hero Visual & Animations */
.hero-visual {
    flex: 1;
    height: 100%;
    max-width: 1870px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.flower-assembly {
    width: 100%;
    max-width: 1700px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

/* Vase Animation */
.vase-line,
.vase-base {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 2s ease-out forwards;
}

/* Stems Animation */
.stem {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.s1 {
    animation: drawLine 1.5s ease-out forwards 1s;
}

.s2 {
    animation: drawLine 1.5s ease-out forwards 1.2s;
}

.s3 {
    animation: drawLine 1.5s ease-out forwards 1.4s;
}

/* Flowers Blooming - Simple scale animation */
.flower {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transform-box: fill-box;
}

.f1 {
    animation: bloom 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 2.5s;
}

.f2 {
    animation: bloom 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 2.8s;
}

.f3 {
    animation: bloom 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 3.1s;
}

/* Swaying - DISABLED so flowers stay in place after blooming */
/* .stems-group,
.flowers-container {
    animation: sway 5s ease-in-out infinite 4s;
    transform-origin: center bottom;
    transform-box: fill-box;
} */

/* Keyframes */
@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes bloom {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes sway {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(1.5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-pink);
    margin: 10px auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Kako Nastaju Section */
.kako-nastaju {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-lavender) 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.process-step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

.gallery {
    padding: 5rem 5%;
    background-color: var(--primary-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    background-color: #ddd;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background-color: var(--primary-bg);
    border-radius: 10px;
}

.detail-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.detail-item a {
    color: var(--accent-pink);
    transition: opacity 0.3s ease;
}

.detail-item a:hover {
    opacity: 0.7;
}

/* Contact Form */
.contact-form {
    background-color: var(--primary-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    border-radius: 20px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pastel-pink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.submit-button {
    width: 100%;
    padding: 1rem 2.5rem;
    background-color: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--accent-pink);
    transform: translateY(-3px);
}

/* Footer - Simplified */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 5%;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Navigation */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 100px 2% 2rem;
        height: auto;
        min-height: 100vh;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 1rem;
        order: 1;
    }

    .hero-visual {
        max-width: 100%;
        order: 2;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Flower Animation - Much Larger on Mobile */
    .flower-assembly {
        width: 95vw;
        max-width: none;
        height: auto;
    }

    /* Wave Background */
    .hero-bg {
        height: 30%;
    }

    /* About Section */
    .section-title {
        font-size: 2rem;
    }

    .about {
        padding: 3rem 5%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    /* Gallery */
    .gallery {
        padding: 3rem 5%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact Section */
    .contact {
        padding: 3rem 5%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .submit-button {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 1rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .flower-assembly {
        width: 90vw;
        max-width: none;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Image Styles */
.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}