/* Base styles and custom utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 74, 0.3);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: #383847;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b4a;
}

/* Reveal animations — progressive enhancement only */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Hero geometric animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-geo-1 {
        animation: float-slow 8s ease-in-out infinite;
    }
    
    .hero-geo-2 {
        animation: float-medium 6s ease-in-out infinite;
        animation-delay: -2s;
    }
    
    .hero-geo-3 {
        animation: pulse-ring 4s ease-in-out infinite;
    }
    
    .hero-geo-4 {
        animation: float-fast 3s ease-in-out infinite;
    }
    
    .hero-geo-5 {
        animation: float-fast 4s ease-in-out infinite;
        animation-delay: -1s;
    }
    
    .hero-geo-6 {
        animation: float-medium 5s ease-in-out infinite;
        animation-delay: -3s;
    }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(8, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 74, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Button focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #ff6b4a;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    loading: lazy;
    decoding: async;
}

/* Aspect ratio utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* Custom focus ring for form inputs */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 1px #ff6b4a;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
    }
}
