/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(94, 234, 212, 0.3);
    color: white;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #040f54 0%,
        #071a8a 20%,
        #0f766e 50%,
        #115e59 70%,
        #042f2e 100%
    );
}

/* ===== Hero Orbs ===== */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    background: radial-gradient(circle, rgba(94, 234, 212, 0.5), transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    background: radial-gradient(circle, rgba(252, 179, 25, 0.4), transparent 70%);
    top: 50%;
    right: 5%;
    animation-delay: -3s;
}

.orb-3 {
    background: radial-gradient(circle, rgba(34, 71, 245, 0.5), transparent 70%);
    bottom: 10%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== CTA Gradient ===== */
.cta-gradient {
    background: linear-gradient(
        135deg,
        #071a8a 0%,
        #0f766e 50%,
        #115e59 100%
    );
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(4, 15, 84, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5eead4, #fcb319);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: white !important;
}

/* ===== Scroll Reveal ===== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 0;
    }
    
    .reveal-up {
        transform: translateY(40px);
    }
    
    .reveal-left {
        transform: translateX(-40px);
    }
    
    .reveal-right {
        transform: translateX(40px);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* ===== Menu Card Hover ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0f766e, #115e59);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5eead4, #0f766e);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

/* ===== Image Loading ===== */
img {
    image-rendering: auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(
            180deg,
            #040f54 0%,
            #071a8a 40%,
            #0f766e 100%
        );
    }
}
