/*
 * Dden By Balos — Obsidian Noir Dark Luxury Design
 * Custom styles for animations, glassmorphism, and premium effects
 */

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #09090B;
    color: #E2E8F0;
}

.font-heading {
    font-family: 'Poppins', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #09090B;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 3px;
}

/* ===== Animations ===== */

/* Fade in up animation for hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Scroll indicator dot */
@keyframes scrollDot {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for scroll reveal */
.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal:nth-child(2) { transition-delay: 80ms; }
.scroll-reveal:nth-child(3) { transition-delay: 160ms; }
.scroll-reveal:nth-child(4) { transition-delay: 240ms; }
.scroll-reveal:nth-child(5) { transition-delay: 320ms; }
.scroll-reveal:nth-child(6) { transition-delay: 400ms; }

/* ===== Navbar ===== */
#navbar.scrolled {
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Parallax Hero ===== */
.hero-parallax {
    transition: transform 0.1s linear;
}

/* ===== Glassmorphism Cards ===== */
.glass-card {
    background: rgba(17, 17, 21, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
}

/* ===== Gold Border Glow ===== */
.gold-border-hover {
    position: relative;
}

.gold-border-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.gold-border-hover:hover::after {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1),
                inset 0 0 20px rgba(212, 175, 55, 0.02);
}

/* ===== Counter Animation ===== */
.counter {
    display: inline-block;
    min-width: 3ch;
}

/* ===== Button Press Effect ===== */
button:active,
a:active {
    transform: scale(0.97);
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
    .text-section-title {
        font-size: 2rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Selection Color ===== */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #fff;
}
