/* ============================================
   Malibu Dallas - Homepage Custom Styles
   Premium, legal, professional aesthetic
   ============================================ */

/* ---- Smooth scrolling ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ---- Base body ---- */
body {
    background-color: #0a0e17;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Hero grid pattern ---- */
.hero-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade in down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll dot animation */
@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
    }
    80% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Animation delays */
.animation-delay-200 {
    animation-delay: 200ms;
    opacity: 0;
    animation-fill-mode: forwards;
}

.animation-delay-400 {
    animation-delay: 400ms;
    opacity: 0;
    animation-fill-mode: forwards;
}

.animation-delay-600 {
    animation-delay: 600ms;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ============================================
   Scroll-triggered animations
   ============================================ */

/* Elements start hidden and animate in on scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Custom selection color
   ============================================ */
::selection {
    background-color: rgba(245, 158, 11, 0.3);
    color: #fff;
}

::-moz-selection {
    background-color: rgba(245, 158, 11, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #0a0e17;
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.4);
}

/* ============================================
   Video section responsive
   ============================================ */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* ============================================
   Image loading placeholder
   ============================================ */
img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Images fade in when loaded */

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    nav, footer, .animate-bounce, .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   Reduced motion support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
