/* ============================================================
   ALESHA TOUR — Custom Stylesheet
   Premium Umrah & Travel Services
   ============================================================ */

/* --- Tailwind Configuration --- */
/* Note: Tailwind config tetap inline di index.html karena menggunakan CDN */

/* ============================================================
   1. GLOBAL & BACKGROUND
   ============================================================ */

body {
    background-color: #FAFAFA;
    /* Subtle modern mesh/grid background for white theme */
    background-image: 
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 0, 0, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

/* ============================================================
   2. HERO BACKGROUND EFFECTS
   ============================================================ */

/* Subtle Grid Pattern */
.hero-grid {
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

/* Animated Gold Aurora Blobs */
.aurora-blob {
    animation: auroraFloat 12s ease-in-out infinite alternate;
}

.aurora-blob.aurora-1 { animation-delay: 0s; }
.aurora-blob.aurora-2 { animation-delay: -4s; }
.aurora-blob.aurora-3 { animation-delay: -8s; }

@keyframes auroraFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 8%) scale(1.12); }
    100% { transform: translate(-3%, -4%) scale(0.92); }
}

/* ============================================================
   3. MODERN NAVIGATION (Scroll Effect)
   ============================================================ */

#navbar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ============================================================
   4. TEXT UTILITIES
   ============================================================ */

.text-gradient-gold {
    background: linear-gradient(135deg, #A67C00 0%, #D4AF37 50%, #C5A059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   3. GLASSMORPHISM (Light Theme)
   ============================================================ */

.glass-panel-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ============================================================
   4. GLOSSY CARDS (Light Theme)
   ============================================================ */

.glossy-card-light {
    background: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(250,250,250,0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.glossy-card-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-20deg);
    transition: 0.7s;
    z-index: 1;
}

.glossy-card-light:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(255,255,255,1);
}

.glossy-card-light:hover::before {
    left: 200%;
}

/* ============================================================
   5. Z-INDEX HELPER
   ============================================================ */

.content-z {
    position: relative;
    z-index: 2;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn-black-glossy {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid #000;
}

.btn-black-glossy:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-gold-glossy {
    background: linear-gradient(135deg, #D4AF37 0%, #A67C00 100%);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    color: white;
    transition: all 0.3s ease;
    border: none;
}

.btn-gold-glossy:hover {
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ============================================================
   7. SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ============================================================
   8. CUSTOM CURSOR (Gold Theme)
   ============================================================ */

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #D4AF37;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    transition: transform 0.12s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
}

body.cursor-hover .cursor-dot {
    width: 0; height: 0; opacity: 0;
}

body.cursor-hover .cursor-outline {
    width: 56px; height: 56px;
    background-color: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Hide default cursor */
body {
    cursor: none;
}

a, button, input, select, textarea, .tilt-card, .glossy-card-light, .faq-item {
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    a, button, input, select, textarea { cursor: pointer; }
}

/* ============================================================
   10. FLOATING DECORATIVE BLOBS
   ============================================================ */

.float-blob {
    animation: floatBlob 8s ease-in-out infinite;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================================
   11. GLASS CARD SPOTLIGHT EFFECT
   ============================================================ */

.glossy-card-light {
    position: relative;
    overflow: hidden;
}

.glossy-card-light::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(212, 175, 55, 0.08),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glossy-card-light:hover::after {
    opacity: 1;
}

.glossy-card-light > * {
    position: relative;
    z-index: 2;
}

.glossy-card-light::before {
    z-index: 1;
}

/* ============================================================
   12. 3D MOCKUP WINDOW
   ============================================================ */

.hero-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 750px;
    height: 340px;
    margin: 0 auto;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.mockup-window {
    position: relative;
    width: 95%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0,0,0,0.03),
        0 4px 0 rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform: rotateX(8deg) rotateY(0deg);
}

.mockup-header {
    height: 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 6px;
    background: rgba(0,0,0,0.01);
}

.mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #FF5F56; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #27C93F; }

.mockup-body {
    flex: 1;
    padding: 18px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.04), transparent 70%);
}

.mockup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-widget {
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.04);
}

.mockup-main-area {
    display: flex;
    flex-direction: column;
}

.mockup-card {
    background: white;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    flex: 1;
}

/* Floating Cards around Mockup */
.float-card-mockup {
    position: absolute;
    animation: floatCard 6s ease-in-out infinite;
}

.float-card-mockup.left-card {
    left: -3%;
    top: 25%;
    animation-delay: -2s;
}

.float-card-mockup.right-card {
    right: -3%;
    bottom: 20%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
    .hero-mockup-wrapper {
        height: 250px;
        max-width: 100%;
    }
    .mockup-body {
        grid-template-columns: 100px 1fr;
        gap: 10px;
        padding: 12px;
    }
    .float-card-mockup.left-card { left: 0; top: -10px; }
    .float-card-mockup.right-card { right: 0; bottom: -10px; }
}

/* ============================================================
   13. TILT EFFECT (Mockup Window)
   ============================================================ */

.tilt-effect {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ============================================================
   15. MAGNETIC BUTTON
   ============================================================ */

.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* ============================================================
   16. COUNTER ANIMATION
   ============================================================ */

.counter {
    display: inline-block;
}

/* ============================================================
   17. SPLASH SCREEN
   ============================================================ */

#splash {
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#splash .animate-pulse {
    animation: splashPulse 2s ease-in-out infinite;
}

@keyframes splashPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
