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

body {
    font-family: 'Montserrat', sans-serif;
    color: #f5f5f5;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    /* Fallback */
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    z-index: -1;
    background-color: #000;
    /* Dark background for letterboxing */
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fills screen again */
    object-position: center 25%;
    /* Shifted slightly down to frame both faces */
    filter: blur(3px);
    /* Slightly blurry */
    transform: scale(1.02);
    /* Restore scale */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(3px);
}

/* Main Content */
.main-content {
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    max-height: 100vh;
    /* Hide scrollbar but allow scroll */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-content::-webkit-scrollbar {
    display: none;
}

/* 3D Cube Animation */
.cube-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    perspective: 800px;
}

.scene {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateBox 12s infinite linear;
}

.cube__face {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid #ffea98;
    /* Gold border */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #ffea98;
    background: rgba(255, 255, 255, 0.05);
    /* Very transparent */
    backdrop-filter: blur(1px);
    /* minimal blur for glass feel */
    box-shadow: 0 0 10px rgba(255, 234, 152, 0.2);
    cursor: pointer;
    /* Whole cube faces clickable */
    transition: all 0.3s ease;
}

.cube__face:hover {
    background: rgba(255, 234, 152, 0.1);
    box-shadow: 0 0 20px rgba(255, 234, 152, 0.4);
}

.cube__face--front {
    transform: rotateY(0deg) translateZ(60px);
}

.cube__face--right {
    transform: rotateY(90deg) translateZ(60px);
}

.cube__face--back {
    transform: rotateY(180deg) translateZ(60px);
}

.cube__face--left {
    transform: rotateY(-90deg) translateZ(60px);
}

.cube__face--top {
    transform: rotateX(90deg) translateZ(60px);
}

.cube__face--bottom {
    transform: rotateX(-90deg) translateZ(60px);
}

@keyframes rotateBox {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Text Content */
.content-text h1 {
    font-family: 'Ibarra Real Nova', serif;
    font-size: 3.2rem;
    /* Reduced from 3.8rem as requested */
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth dynamic eased transition */
    cursor: default;
}

.content-text h1:hover {
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 80px rgba(255, 255, 255, 0.4);
    /* Deep white glow */
    transform: scale(1.05);
    /* Subtle smooth zoom */
    letter-spacing: 8px;
    /* Dynamic expansion */
}

.intro-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.story-block {
    text-align: center;
    /* Or left if preferred, center looks good for intro */
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1.05rem;
    color: #ddd;
}

.story-block p {
    margin-bottom: 1rem;
}

.story-block .signature {
    margin-top: 2rem;
    font-weight: 500;
    color: #ffea98;
    font-style: italic;
}

/* Newsletter */
.newsletter-section {
    margin-bottom: 2.5rem;
}

.newsletter-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #ffea98;
}

#newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#newsletter-form input {
    padding: 12px 20px;
    border: 1px solid #ffea98;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 30px;
    width: 250px;
    font-family: 'Montserrat', sans-serif;
}

#newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#newsletter-form button {
    padding: 12px 30px;
    background: #ffea98;
    border: none;
    color: #000;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#newsletter-form button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 234, 152, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-btn {
    text-decoration: none;
    padding: 10px 25px;
    border: 1px solid transparent;
    /* Transparent border to keep spacing */
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-btn.instagram:hover {
    border-color: transparent;
    background: rgba(225, 48, 108, 0.1);
    color: #fff;
    /* Keep white or switch */
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.3);
}

.social-btn.tiktok:hover {
    border-color: transparent;
    background: rgba(0, 242, 234, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.mobile-break {
    display: none;
    /* Hidden on desktop */
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow: hidden;
        /* Prevent scrolling on mobile */
        height: 100dvh;
    }

    .main-content {
        padding: 1rem;
        padding-top: 5rem;
        /* Shift contents lower */
        padding-bottom: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Keep items together */
        gap: 1.5rem;
        /* Consistent spacing between grouped items */
        height: 100%;
    }

    .mobile-break {
        display: block;
        /* Visible on mobile for Under construction */
    }

    .brand-line,
    .subtitle-line {
        display: block;
        /* Stack title lines */
        width: 100%;
    }

    .content-text h1 {
        font-size: 1.8rem;
        /* significantly smaller to fit */
        line-height: 1.1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }

    .under-construction {
        font-size: 1.2rem;
        /* Reduced as requested */
        margin-bottom: 0.5rem;
    }

    .magic-text-soon {
        font-size: 1.5rem;
        /* Reduced */
    }

    .countdown {
        gap: 0.5rem;
    }

    .time-unit span {
        font-size: 1.2rem;
    }

    .cube-wrapper {
        margin-top: 1rem;
        margin-bottom: 1rem;
        height: 110px;
        /* Reduced height for smaller cube */
        order: -1;
        /* Place 2nd (after H1 which is -2) */
    }

    .cube,
    .cube__face {
        width: 96px;
        /* 20% Smaller (was 120px) */
        height: 96px;
    }

    .cube__face--front {
        transform: rotateY(0deg) translateZ(48px);
    }

    .cube__face--right {
        transform: rotateY(90deg) translateZ(48px);
    }

    .cube__face--back {
        transform: rotateY(180deg) translateZ(48px);
    }

    .cube__face--left {
        transform: rotateY(-90deg) translateZ(48px);
    }

    .cube__face--top {
        transform: rotateX(90deg) translateZ(48px);
    }

    .cube__face--bottom {
        transform: rotateX(-90deg) translateZ(48px);
    }

    /* Reordering Logic */
    .content-text {
        display: contents;
        /* Ungroup children for flex reordering */
    }

    .content-text h1 {
        order: -2;
        /* Place First */
    }

    /* All other elements (H2, magic text, etc.) stay at order 0 (Third+) */

    #newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    #newsletter-form input {
        width: 100%;
    }

    /* Zoom out modal on mobile */
    .modal-content.glass-mokkum {
        width: 90%;
        padding: 2rem 1rem;
        transform: scale(0.9);
        /* Zoom out effect */
    }

    .magic-line {
        font-size: 0.8rem;
        /* Smaller on mobile as requested */
    }

    /* Force background to fill screen on mobile */
    .background-container {
        height: 100dvh;
        width: 100%;
        position: fixed;
    }

    .bg-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
        /* Center image on mobile */
        transform: scale(1.3);
    }
}

/* Modal Styling - Invisible Luxury */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* No scroll */
    background-color: rgba(0, 0, 0, 0.4);
    /* Lighter overlay for glass effect */
    /* Lighter overlay for glass effect */
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-out;
}

.modal-content.glass-mokkum {
    background: rgba(255, 255, 255, 0.02);
    /* Almost transparent */
    /* Invisible background as requested */
    border: 1px solid rgba(255, 234, 152, 0.4);
    /* Very subtle elegant border */
    backdrop-filter: blur(20px);
    /* Stronger blur as requested */
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    border-radius: 0;
    /* Sharp corners - Professional Look */
    width: 100%;
    max-width: 700px;
    text-align: center;
    box-shadow: none;
    /* No shadow, floating text */
    position: relative;
    color: #fff;
}

.modal-content h2 {
    font-family: 'Ibarra Real Nova', serif;
    color: #ffea98;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
    /* Thinner, more elegant */
}

.modal-content p {
    font-family: 'Great Vibes', cursive;
    /* Holiday style script */
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 1.8rem;
    /* Script fonts need to be larger */
}

/* Close Button - Minimalist */
.close-btn {
    color: #ffea98;
    font-size: 40px;
    /* Larger */
    font-weight: 100;
    /* Thin */
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 0.5s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    /* Clean sans for X */
    line-height: 0.5;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    transform: rotate(180deg) scale(1.2);
}

/* Modal Form - Sharp & Minimal */
#modal-newsletter-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

#modal-newsletter-form input {
    padding: 15px 5px;
    width: 80%;
    /* Wider input */
    max-width: 400px;
    border-radius: 0;
    /* Sharp */
    border: none;
    border-bottom: 1px solid #555;
    /* Dark line initially */
    background: transparent;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

#modal-newsletter-form input::placeholder {
    color: #666;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

#modal-newsletter-form input:focus {
    outline: none;
    border-bottom: 1px solid #ffea98;
    /* Gold on focus */
}

#modal-newsletter-form button {
    padding: 15px 50px;
    background: transparent;
    color: #ffea98;
    border: 1px solid #ffea98;
    border-radius: 0;
    /* Sharp */
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: all 0.4s ease;
    margin-top: 1rem;
}

#modal-newsletter-form button:hover {
    background: #ffea98;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 234, 152, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Clickable Faces */
.clickable-face {
    cursor: pointer;
    transition: background 0.3s;
}

.clickable-face:hover {
    background: rgba(255, 234, 152, 0.2);
    /* Highlight on hover */
}

/* Dynamic Animation State */
.cube.spinning-custom {
    animation: none;
    /* Stop default animation */
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);
    /* Ease out for landing */
}

/* Under Construction Text */
.under-construction {
    font-family: 'Ibarra Real Nova', serif;
    font-size: 2rem;
    color: #ffea98;
    /* Gold */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-style: italic;
    transition: all 0.3s ease;
    cursor: default;
    text-align: center;
    /* Ensure stacked text is centered */
    line-height: 1.2;
}

.under-construction:hover {
    color: #fff;
    /* Brighten text */
    text-shadow:
        0 0 10px rgba(255, 234, 152, 0.8),
        0 0 20px rgba(255, 234, 152, 0.6),
        0 0 30px rgba(255, 234, 152, 0.4);
    /* Golden glow */
    transform: scale(1.02);
    /* Slight pop */
    letter-spacing: 3px;
    /* Subtle expansion */
}

/* Subtext Part 1: Old Standard TT */
.magic-line {
    font-family: 'Old Standard TT', serif;
    /* Requested font */
    font-size: 1.1rem;
    /* Reduced for elegance */
    color: #e0e0e0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    margin-bottom: 0.2rem;
    /* Small gap between lines */
    text-align: center;
}

/* Subtext Part 2: Great Vibes (Holiday) */
.magic-text-soon {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    /* Larger for impact */
    color: #ffea98;
    /* Goldish tint for emphasis */
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    text-align: center;
}

/* Character Animation Class */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px);
    animation: charFadeInDown 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Animations */
@keyframes charFadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

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

/* Deprecated block fade in - replaced by JS char animation */
/* @keyframes fadeInDown ... removed */

/* Close Button Exit Animation */
.rotating-exit {
    animation: rotateOut 0.5s forwards ease-in;
}

@keyframes rotateOut {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) scale(0);
        opacity: 0;
    }
}

.modal.fade-out {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}