/* Custom styles for Tipsy Cow Bar */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #061829;
}
::-webkit-scrollbar-thumb {
    background: #1a456e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5f8a;
}

/* Selection color */
::selection {
    background: rgba(22, 201, 123, 0.3);
    color: #e8eef5;
}

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}
#mobileMenu.hidden {
    animation: slideUp 0.2s ease-in;
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(3, 14, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover effects */
.rounded-2xl overflow-hidden,
.rounded-3xl overflow-hidden {
    will-change: transform;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

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

/* Form success animation */
#formSuccess.show {
    animation: fadeIn 0.4s ease-out;
}

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

/* Counter animation */
.counter {
    display: inline-block;
}

/* Geometric shape decorations */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Glass morphism utility */
.glass {
    background: rgba(10, 34, 61, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #86efac, #4ade80, #16c97b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .mobile-link {
        padding: 8px 0;
        border-bottom: 1px solid rgba(26, 69, 110, 0.5);
    }
    .mobile-link:last-child {
        border-bottom: none;
    }
}

/* Gallery grid responsive */
@media (max-width: 768px) {
    .col-span-2 {
        col-span: 1;
    }
}

/* Ensure all images have proper aspect ratio handling */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    #navbar,
    #hero .absolute.bottom-8,
    button {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
