/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.nav {
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.nav.scrolled {
    background: rgba(245, 240, 232, 0.98);
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
}

.nav-link {
    position: relative;
}

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

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

.nav-bar {
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .nav-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-bar:nth-child(3) {
    width: 24px;
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0a1628;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #0a1628;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d4a017;
    color: #0a1628;
    border-color: #d4a017;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0a1628;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(10, 22, 40, 0.2);
}

.btn-secondary:hover {
    border-color: #0a1628;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #d4a017;
    color: #d4a017;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    background: #f5f0e8;
    position: relative;
}

.hero-accent-bar {
    animation: expandBar 0.8s ease forwards;
}

@keyframes expandBar {
    from { width: 0; }
    to { width: 80px; }
}

.hero-badge {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero h1 {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.35s;
}

.hero-desc {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-ctas {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.65s;
}

.hero-stats {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

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

.hero-geo {
    animation: float 6s ease-in-out infinite;
}

.hero-geo-2 { animation-delay: -2s; animation-duration: 8s; }
.hero-geo-3 { animation-delay: -4s; animation-duration: 7s; }
.hero-geo-4 { animation-delay: -1s; animation-duration: 5s; }

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

.hero-float-card {
    animation: floatCard 5s ease-in-out infinite;
}

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

/* ===== MARQUEE ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4a017, #e6b422);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state: visible (progressive enhancement) */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        transform: translateY(30px);
        opacity: 0;
    }
}

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #c4cdd8;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1a2d4a;
    border-radius: 4px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0 80px;
    }

    h1 {
        font-size: 2.75rem !important;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stats > div:nth-child(3),
    .hero-stats > div:nth-child(5) {
        display: none;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
    }
}
