/* ===== CUSTOM STYLES ===== */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
/* Default: content is visible */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS runs and prefers-reduced-motion allows, add hidden state */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-square {
    transform: rotate(45deg);
}

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background-color: rgba(74, 222, 128, 0.3);
    color: white;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* ===== IMAGE LAZY LOADING PLACEHOLDER ===== */
img {
    background-color: #1a2744;
}

/* ===== NAVBAR SCROLL STATE ===== */
nav.scrolled {
    background-color: rgba(13, 20, 37, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== CARD TILT EFFECT (optional enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .group:hover .group-hover\:scale-105 {
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ===== FORM INPUT AUTOFILL ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a2744 inset !important;
    -webkit-text-fill-color: white !important;
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ===== WIDE SCREENS ===== */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
