/* Preloader */
#cinematic-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
}

.preloader-dot {
    width: 15px;
    height: 15px;
    background: var(--gold-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(201, 162, 39, 0.6);
    transition: all 0.8s ease;
}

.preloader-dot.transform {
    width: 10px;
    height: 50px;
    background: transparent;
    box-shadow: 0 0 40px var(--soft-white);
    border-radius: 0;
    animation: steam 2s infinite ease-in-out;
    transform: translateY(-20px);
}

@keyframes steam {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-40px) scaleX(1.5);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }
}

.preloader-text-wrapper {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--soft-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.preloader-text.show-text {
    opacity: 1;
    transform: translateY(0);
}

.preloader-logo-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    background-color: white;
    border: 4px solid var(--gold-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    margin: 0 auto;
}

.preloader-logo-img.show-image {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.preloader-petals {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold-accent);
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    transition: all 1s ease;
}

.preloader-petals.bloom .petal:nth-child(1) {
    opacity: 0.6;
    transform: translate(-80px, -40px) rotate(45deg);
}

.preloader-petals.bloom .petal:nth-child(2) {
    opacity: 0.6;
    transform: translate(80px, -40px) rotate(-45deg);
}

.preloader-petals.bloom .petal:nth-child(3) {
    opacity: 0.6;
    transform: translate(-60px, 40px) rotate(135deg);
}

.preloader-petals.bloom .petal:nth-child(4) {
    opacity: 0.6;
    transform: translate(60px, 40px) rotate(-135deg);
}

.preloader-tagline {
    font-family: var(--font-body);
    color: var(--gold-accent);
    font-size: 1.2rem;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 1s ease;
    letter-spacing: 2px;
}

.preloader-tagline.show-text {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* subtle parallax done with JS or css */
    animation: bgZoom 20s infinite alternate;
}

@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(41, 48, 38, 0.4) 0%, rgba(31, 27, 24, 0.8) 100%);
    background-image: linear-gradient(to bottom, rgba(41, 48, 38, 0.4) 0%, rgba(31, 27, 24, 0.9) 100%), url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    z-index: 2;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    text-align: left;
}

.hero-content h1 {
    font-size: 5vw;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.hero-content h2 {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 0 40px 0;
    opacity: 0.9;
    text-align: left;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Floating Images */
.hero-visuals {
    flex: 1;
    position: relative;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-img-box {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.15);
    animation: floatAnimation 8s ease-in-out infinite alternate;
}

.hero-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-img-box:hover img {
    transform: scale(1.1) rotate(2deg);
}

.float-1 {
    width: 260px;
    height: 380px;
    left: 10%;
    top: 80px;
    z-index: 3;
    animation-delay: 0s;
    transform: rotate(-5deg);
    border-radius: 130px 130px 20px 20px;
}

.float-2 {
    width: 300px;
    height: 420px;
    right: 5%;
    top: 20px;
    z-index: 2;
    animation-delay: -3s;
    transform: rotate(3deg);
    border-radius: 150px 150px 30px 30px;
}

.float-3 {
    width: 220px;
    height: 220px;
    bottom: -10px;
    left: 40%;
    z-index: 4;
    border-radius: 50%;
    animation-delay: -5s;
    border: 4px solid var(--gold-accent);
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-25px) scale(1.02);
    }
}

/* Sections Structure */
.section-full {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* About / Founder Story */
.founder-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.founder-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.founder-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 77, 58, 0.1);
    pointer-events: none;
}

.founder-story img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.5s;
}

.founder-img-wrapper:hover img {
    transform: scale(1.05);
}

.founder-content h3 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.founder-content .subtitle {
    color: var(--gold-accent);
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.founder-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* Signature Cards */
.signatures-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.sig-card {
    border-radius: 150px 150px 20px 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    height: 460px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sig-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.sig-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(31, 77, 58, 0.9), transparent);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.sig-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.sig-card:hover img {
    transform: scale(1.1);
}

.sig-card:hover .sig-card-content {
    transform: translateY(0);
}

.sig-card:hover .sig-card-overlay {
    opacity: 0.9;
}

/* Flower Boutique - Full Width Parallax */
.flower-boutique {
    background-image: url('../assets/images/cafe_evening_look.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    color: white;
}

.flower-boutique::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 77, 58, 0.7);
    /* Deep elegant green overlay */
}

.flower-boutique .glass-panel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    color: var(--text-dark);
}

/* Instagram Gallery Masonry */
.insta-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: white;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-visuals {
        transform: scale(0.85);
        transform-origin: right center;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 20px;
        margin-top: 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1,
    .hero-content h2,
    .hero-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visuals {
        height: 350px;
        transform: scale(0.7);
        transform-origin: center top;
        margin-top: 20px;
        width: 100%;
    }

    .float-3 {
        left: 45%;
    }

    .founder-story {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .hero-visuals {
        transform: scale(0.5);
        height: 250px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }
}