/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-script {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 15px;
}

.loader-line {
    width: 100px;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: lineAnim 1.5s infinite;
}

/* Navbar Masterpiece Design */
.navbar {
    padding: 15px 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2500;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 10px 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-family: var(--font-cinzel);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--primary) !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dark) !important;
    position: relative;
    padding: 0.5rem 1.5rem !important;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover { opacity: 1; color: var(--primary) !important; }
.nav-link:hover::before { transform: translateX(-50%) scaleX(1); }

.navbar-toggler {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    font-size: 1.4rem;
}

.offcanvas {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: -15px 0 50px rgba(0,0,0,0.05) !important;
    z-index: 3500 !important;
    height: 100vh !important;
    top: 0 !important;
}

.offcanvas-header { padding: 30px 25px; background: rgba(255, 255, 255, 0.2); }
.offcanvas-title { font-size: 1.2rem; letter-spacing: 4px; }
.offcanvas-body { padding: 40px 25px; }
.offcanvas .nav-link { font-size: 1.3rem; margin-bottom: 25px; text-align: center; padding: 10px !important; }

/* Music Control */
.music-control {
    position: fixed;
    bottom: clamp(20px, 5vw, 30px);
    left: clamp(20px, 5vw, 30px);
    z-index: 2000;
}

.music-icon-wrapper {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    box-shadow: 0 15px 35px rgba(91, 143, 185, 0.4);
}

/* Glass Morphism Cards */
.glass-morphism {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.aesthetic-card {
    padding: clamp(2.5rem, 10vw, 5rem) clamp(1.2rem, 5vw, 4rem);
    border-radius: 40px;
    position: relative;
    text-align: center;
}

/* Timer Box */
.timer-box-premium {
    background: var(--white);
    padding: clamp(15px, 4vw, 30px) 10px;
    border-radius: clamp(15px, 3vw, 25px);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.timer-box-premium span {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.timer-box-premium p {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    color: var(--text-muted);
}

/* Form Styles */
.form-container {
    padding: clamp(1.5rem, 5vw, 4rem);
    border-radius: 40px;
    background: #fff;
}

.form-control-custom {
    width: 100%;
    border: 2px solid #f0f5f9;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 0.95rem;
    background: #fdfdfd;
    transition: 0.3s;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.btn-check-custom {
    border: 2px solid #f0f5f9;
    border-radius: 15px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-check:checked + .btn-check-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-aesthetic-dark {
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 15px;
    transition: 0.3s;
}

.btn-aesthetic-dark:hover {
    background: #1a2a3a;
    transform: translateY(-2px);
}

/* Ornaments */
.hero-ornament { width: clamp(100px, 25vw, 200px); position: absolute; z-index: 1; }
.top-left { top: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }
.hero-ornament img { width: 100%; opacity: 0.6; }

/* Modal/Swal Customization */
.swal2-popup {
    border-radius: 25px !important;
    font-family: var(--font-sans) !important;
    width: 90% !important;
    max-width: 400px !important;
}
