@font-face {
    font-family: 'Welcome Darling';
    src: url('../images/fonts/Welcome Darling.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #7d292b;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling for the cinematic experience */
    position: fixed; /* Lock page entirely */
    touch-action: none; /* Prevent browser handling of pinch-zoom/swiping */
    font-family: 'Welcome Darling', serif;
    /* background-color: var(--primary-color); */
}

/* Background Texture Wrapper */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -10;
    pointer-events: none;
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: center; /* Logo centered */
    align-items: center;
    z-index: 100; /* Always on top */
}

/* Logo Animation */
.logo-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

#logo {
    height: 80px; /* Adjust size as needed */
    width: auto;
    object-fit: contain;
    animation: dropIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    transform: translateY(-100px);
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Menu */
.hamburger-menu {
    position: absolute;
    right: 40px;
    top: 30px;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    cursor: pointer;
    display: inline-block;
    padding: 10px;
    position: relative;
    z-index: 101; /* Above menu links */
}

.nav-icon {
    background: var(--text-color);
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 30px;
}

.nav-icon:before,
.nav-icon:after {
    background: var(--text-color);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.nav-icon:before {
    top: 8px;
}

.nav-icon:after {
    top: -8px;
}

/* Menu Toggle Animation */
#menu-toggle:checked ~ .menu-icon .nav-icon {
    background: transparent;
}

#menu-toggle:checked ~ .menu-icon .nav-icon:before {
    transform: rotate(-45deg);
    top: 0;
}

#menu-toggle:checked ~ .menu-icon .nav-icon:after {
    transform: rotate(45deg);
    top: 0;
}

/* Menu Links */
.menu-links {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(125, 41, 43, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#menu-toggle:checked ~ .menu-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-links li {
    padding: 10px 30px;
    text-align: left;
}

.menu-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.menu-links li a:hover {
    color: #e0e0e0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #main-header {
        padding: 15px 20px;
    }
    .hamburger-menu {
        right: 20px;
        top: 25px;
    }
    #logo {
        height: 60px;
    }
}

/* Torn Edges Animation */
.torn-edges {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Ensure visible over bg */
}

.edge {
    position: absolute;
    opacity: 0.8;
}

.edge-top-left {
    top: 0;
    left: 0;
    width: 30%; /* Use percentage to avoid viewport unit overflow */
    min-width: 250px;
    transform-origin: top left;
    animation: breatheTopLeft 8s ease-in-out infinite alternate;
}

.edge-bottom-right {
    bottom: 0;
    right: 0;
    width: 25%;
    min-width: 200px;
    transform-origin: bottom right;
    animation: breatheBottomRight 7s ease-in-out infinite alternate;
}

@keyframes breatheTopLeft {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes breatheBottomRight {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}


/* Intro Section Content */
.content-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 50;
    transition: opacity 1s ease-out, visibility 1s;
}

.intro-text {
    color: var(--text-color);
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    opacity: 0;
    animation: fadeInText 2s ease-out 1s forwards; /* Fades in after logo */
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.minimal-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 15px 50px;
    font-size: 1.5rem;
    font-family: 'Welcome Darling', serif;
    cursor: pointer;
    border-radius: 30px;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInText 2s ease-out 1.5s forwards;
}

.minimal-btn:hover {
    background: var(--text-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .intro-text {
        font-size: 2rem;
    }
    .minimal-btn {
        font-size: 1.2rem;
        padding: 12px 40px;
    }
}

/* Product Details Styling */
.product-details {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    text-align: right;
    pointer-events: auto; /* Make clickable */
    z-index: 43; /* Above glow, near gift */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in 1s, visibility 1s; /* Delay fade in */
    max-width: 400px;
}

#gift-section.visible .product-details {
    opacity: 1;
    visibility: visible;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-description {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.book-now-btn {
    font-size: 1.2rem;
    padding: 10px 40px;
    opacity: 1; /* Override minimal-btn animation for this instance */
    animation: none;
}

/* Government Warning Styling */
.gov-warning {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 0.65rem;
    text-align: center;
    max-width: 80%;
    z-index: 44;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in 1.5s, visibility 1s; /* Delay fade in */
}

#gift-section.visible .gov-warning {
    opacity: 1;
    visibility: visible;
}

/* Hide Elements Class */
.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Gift Section Reveal */
#gift-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Touches top edge */
    z-index: 40; /* Below header, above background */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in, visibility 1.5s;
    pointer-events: none;
}

#gift-section.visible {
    opacity: 1;
    visibility: visible;
}

/* The Gift Image */
#gift-image {
    height: 90vh; /* Maximize vertical space without touching bottom */
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 42;
    margin-top: 0; /* Touches the top edge for the cut strings */
}

/* Subtle Breathing Glow behind the gift */
.glow-effect {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vh;
    height: 60vh;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 41; /* Behind gift */
    animation: breatheGlow 4s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Petals Container */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 45; /* Above gift, below header */
    overflow: hidden;
}

/* Individual Petal Style */
.petal {
    position: absolute;
    top: -10vh;
    background-color: #d11e3b; /* Base rose red color */
    border-radius: 15% 85% 15% 85% / 15% 85% 15% 85%; /* Organic petal shape */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    opacity: 0.8;
}


/* Additional Mobile Refinements */
@media (max-width: 768px) {
    #gift-section {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px; /* Space for header */
        padding-bottom: 20px;
        overflow-y: auto; /* Allow scrolling on smaller screens if needed */
        pointer-events: auto; /* Re-enable pointer events for scrolling and clicking */
    }

    #gift-section.visible {
        pointer-events: auto;
    }

    #gift-image {
        height: 45vh; /* Reduce height to fit content below */
        margin-top: 10px;
    }

    .glow-effect {
        top: 25vh; /* Adjust glow to match new image position */
        width: 45vh;
        height: 45vh;
    }

    .product-details {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 20px;
        padding: 0 20px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .product-price {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .product-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .gov-warning {
        position: static;
        transform: none;
        margin-top: 30px;
        max-width: 90%;
        font-size: 0.55rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .intro-text {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    .minimal-btn {
        font-size: 1rem;
        padding: 10px 30px;
    }
    .edge-top-left {
        width: 40%;
    }
    .edge-bottom-right {
        width: 40%;
    }
    #gift-image {
        height: 40vh; /* Even smaller for very small phones */
    }
    .glow-effect {
        top: 25vh;
        width: 40vh;
        height: 40vh;
    }
}

/* Fallback/Forced BG Image Rendering */
.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
}
