/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Space+Grotesk:wght@700&display=swap');

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Selection Color */
::selection {
    background: #f97316;
    color: white;
}

/* Hero Animation Classes */
.hero-reveal {
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.hero-reveal:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-reveal:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade In Animation for Sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Elements */
.parallax-element {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Masonry Grid Improvements */
.masonry-grid {
    column-fill: balance;
}

/* Gallery Item Hover Enhancement */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
    z-index: 10;
}

.gallery-item:hover::before {
    border-color: #f97316;
}

/* Image Loading State */
img {
    background: linear-gradient(110deg, #1a1a1a 8%, #2a2a2a 18%, #1a1a1a 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

img[src] {
    animation: none;
    background: transparent;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

/* Lightbox Transition */
#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* Custom Cursor for Gallery */
@media (hover: hover) {
    .gallery-item {
        cursor: zoom-in;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-reveal {
        animation-duration: 0.8s;
    }
    
    .masonry-grid {
        columns: 1 !important;
    }
}

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

/* Slider Transitions */
.slide {
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Orange Accent Glow */
.text-orange-500 {
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

/* Navigation Blur Effect */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Smooth Image Zoom */
.gallery-item img {
    will-change: transform;
    backface-visibility: hidden;
}