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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animated state applied by JS only */
.scroll-reveal.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion - disable all animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Button hover glow */
button:hover,
a:hover {
    cursor: pointer;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0d1527 0%, #111d35 100%);
}

/* Smooth focus outlines */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Custom focus ring */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
