/* ===== LOCAL FONTS ===== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-variable.woff2') format('woff2');
}

/* ===== ANIMATIONS ===== */

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
    animation: fade-in 0.8s ease-out both;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ===== SCROLL REVEAL ===== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* ===== NAVBAR ===== */

#navbar {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.nav-logo-text {
    color: white;
}

#navbar.scrolled .nav-link {
    color: #6b7280;
}

#navbar.scrolled .nav-link:hover {
    color: #111827;
}

#navbar.scrolled .nav-logo-text {
    color: #111827;
}

#navbar.scrolled .nav-logo-text span {
    color: #E9A030;
}

#navbar.scrolled #mobile-menu-btn svg {
    color: #374151;
}

/* ===== FEATURE CARD ===== */

.feature-card {
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, rgba(233, 160, 48, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* ===== SELECTION COLOR ===== */

::selection {
    background: rgba(233, 160, 48, 0.2);
    color: inherit;
}

/* ===== SCROLL ===== */

html {
    scroll-padding-top: 5rem;
}

/* ===== FORM ===== */

.form-input {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: #E9A030;
    box-shadow: 0 0 0 3px rgba(233, 160, 48, 0.15);
}

/* ===== COUNTER ===== */

[data-count] {
    font-variant-numeric: tabular-nums;
}

/* ===== GRADIENT TEXT FALLBACK ===== */

@supports not (background-clip: text) {
    .text-transparent.bg-clip-text {
        color: #E9A030;
    }
}
