/* Global Reset & Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px; /* Thinner for luxury feel */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00cfff;
    border-radius: 10px;
}

/* =========================================
   1. Premium Typography & Selection
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em; /* Tighter tracking for headings */
}

::selection {
    background-color: #00cfff;
    color: #FFFFFF;
}

/* =========================================
   2. Glassmorphism Navigation
   ========================================= */
.glass-effect {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* =========================================
   3. Luxury Button with Shine Effect
   ========================================= */
.btn-luxury {
    background: linear-gradient(135deg, #00cfff 0%, #0066FF 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 207, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-luxury::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease-in-out;
    }

    .btn-luxury:hover::before {
        left: 100%;
    }

    .btn-luxury:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 207, 255, 0.4);
    }

/* =========================================
   4. Luxury Underline Animation (Nav Links)
   ========================================= */
.luxury-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #00cfff;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-underline:hover::after {
    width: 100%;
}

/* =========================================
   5. Premium Custom Cursor (Desktop Only)
   ========================================= */
.luxury-cursor {
    cursor: none; /* Hide default cursor */
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #00cfff;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 207, 255, 0.5);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

    .cursor-outline.hovered {
        width: 60px;
        height: 60px;
        background-color: rgba(0, 207, 255, 0.1);
        border-color: transparent;
    }

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .luxury-cursor {
        cursor: auto;
    }

    .cursor-dot, .cursor-outline {
        display: none;
    }
}

/* =========================================
   6. Global Scroll Reveal Animations
   ========================================= */
.reveal, .reveal-left, .reveal-right, .reveal-zoom {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-zoom {
    transform: scale(0.95);
}

    .reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible, .reveal-zoom.is-visible {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-zoom {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Scroll-triggered Text Fill Animation */
.text-fill {
    background: linear-gradient(to right, #00cfff var(--fill-width, 0%), rgba(255, 255, 255, 0.25) var(--fill-width, 0%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: background-position 0.1s ease;
}

/* Ambient Glowing Blobs Animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 8s infinite alternate ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}
