/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1219;
}
::-webkit-scrollbar-thumb {
    background: #1a3347;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

/* Navbar blur effect */
.navbar-scrolled {
    background: rgba(10, 18, 25, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 51, 71, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Progressive enhancement: hide then reveal with JS */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu active state */
#mobileMenu.open {
    display: block;
}

#mobileMenu.hidden {
    display: none;
}

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #2dd4bf;
}

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Gold shimmer effect on hover for buttons */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::after {
    left: 100%;
}

/* Subtle pulse for the gold dot */
@keyframes softPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: softPulse 2s ease-in-out infinite;
}

/* Service card hover glow */
.group:hover .group-hover\:scale-110 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
        line-height: 1.1;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, #formSuccess, .scroll-reveal {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
