/* Orbital Alliance — Custom Styles */

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

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

/* Selection color */
::selection {
    background-color: rgba(126, 200, 200, 0.3);
    color: #0A1628;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FDFCFA;
}
::-webkit-scrollbar-thumb {
    background: #7EC8C8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5AA8A8;
}

/* Hero animations */
.hero-lead {
    animation: slideUp 0.8s ease-out 0.2s both;
}
.hero-title {
    animation: slideUp 0.8s ease-out 0.4s both;
}
.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.6s both;
}
#hero .overflow-hidden > div,
#hero .overflow-hidden > p,
#hero .overflow-hidden > a {
    animation: slideUp 0.8s ease-out both;
}

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

/* Scroll indicator line animation */
.scroll-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #7EC8C8);
    animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service card stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.5s ease;
}
.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* Navbar styles */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hamburger animation */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active #bar2 {
    opacity: 0;
}
#menu-toggle.active #bar3 {
    width: 24px;
    margin: 0;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #7EC8C8 !important;
}

/* Hover underline for links */
a:not(.service-card):not(button):not(#menu-toggle) {
    position: relative;
}

/* Subtle parallax for decorative elements */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        will-change: transform, opacity;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .scroll-indicator { display: none; }
    body { color: #000; background: #fff; }
    section { padding: 20px 0; }
}

/* Tablet adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }
    #about .relative > div:first-child {
        margin-bottom: 2rem;
    }
}
