/* ===== Northstar Financial — Custom Styles ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0d1529;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c9a227;
    transition: width 0.3s ease;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 21, 41, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #c9a227;
    margin: 4px auto 0;
    transition: width 0.3s ease;
}

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

/* Hamburger animation */
#mobile-menu-btn.active #hamburger span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

#mobile-menu-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active #hamburger span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

/* ===== Hero Floating Cards ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 5s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

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

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Section Dividers ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.2), transparent);
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

::-webkit-scrollbar-track {
    background: #0d1529;
}

::-webkit-scrollbar-thumb {
    background: #2e4468;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a227;
}

/* ===== Selection ===== */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #fff;
}

/* ===== Form Styles ===== */
select option {
    background: #1a2744;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}

/* ===== Print ===== */
@media print {
    nav, #mobile-menu-btn, button {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
