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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Mobile Menu */
.menu-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #0a1f3d;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 5px;
}

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 5px;
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(10, 31, 61, 0.05);
}

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

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #0a1f3d;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #152d4d;
}

/* Selection */
::selection {
    background: #b8e6d3;
    color: #0a1f3d;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image hover */
img {
    display: block;
    max-width: 100%;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Print styles */
@media print {
    header, footer, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
