/* Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Enhanced Background */
.bg-hero-pattern {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1605152276897-4f618f831968');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Force consistent background across all pages */
.bg-gray-900,
.bg-gray-800 {
    background-color: #030712 !important; /* Tailwind gray-950 */
}

/* Smooth Animations */
.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Optimized Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(8px);
        transition: right 0.3s ease;
    }

    .mobile-menu.active {
        right: 0;
    }
}

/* Animations */
.fade-in { animation: fadeIn 0.6s ease; }
.fade-up { animation: fadeUp 0.6s ease; }
.fade-down { animation: fadeDown 0.6s ease; }
.scale-up { animation: scaleUp 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95);} to { opacity: 1; transform: scale(1);} }

/* Cards */
.card-hover {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, #1f2937, #111827);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}
.card-glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.button-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.button-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(38, 96, 220, 0.2);
}
.button-glow {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Navigation */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Text Effects */
.title-glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.text-gradient {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
}

.bg-custom-dark { background-color: #030712 !important; }
