/* Custom styles for Local.E */

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

/* Selection color */
::selection {
    background-color: rgba(58, 176, 158, 0.3);
    color: #fff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060D1A;
}
::-webkit-scrollbar-thumb {
    background: #1A3655;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3AB09E;
}

/* Service cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    }
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .gallery-item {
        opacity: 0;
        transform: scale(0.96);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .gallery-item.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(6, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-6px) translateX(4px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: float-delayed 5s ease-in-out infinite 0.5s;
}
.floating-card-3 {
    animation: float-slow 6s ease-in-out infinite 1s;
}

/* Gallery hover */
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero content animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* About section animations */
.about-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.about-content.revealed > * {
    opacity: 1;
    transform: translateY(0);
}
.about-content.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.about-content.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.about-content.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.about-content.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.about-content.revealed > *:nth-child(5) { transition-delay: 0.5s; }

/* Parallax subtle on hero */
@media (prefers-reduced-motion: no-preference) {
    #hero .absolute img {
        will-change: transform;
    }
}

/* CTA section */
.cta-section h2 {
    background: linear-gradient(135deg, #ffffff 0%, #BCEFDA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text gradient for special headings */
.text-gradient-mint {
    background: linear-gradient(135deg, #8ADBC8 0%, #3AB09E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
