/* Base reset and custom styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

::-webkit-scrollbar-track {
    background: #040b18;
}

::-webkit-scrollbar-thumb {
    background: #142c56;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2ec79b;
}

/* Selection color */
::selection {
    background: rgba(46, 199, 155, 0.3);
    color: #f0fdf9;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0c1a35 0%, #142c56 100%);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2ec79b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Geometric shape floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-10px) rotate(45deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

.floating-shape-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-shape-2 {
    animation: float-slow 6s ease-in-out infinite;
}

/* Pulse animation for decorative dots */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #2ec79b 0%, #5fe1be 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 60px -15px rgba(46, 199, 155, 0.15);
}
