/* =========================================
   1. Base & Typography
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a1628;
    color: #f5f0e6;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .serif-font {
    font-family: 'Cormorant Garamond', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}


/* =========================================
   2. Animations & Keyframes
   ========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes floatSlow {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, 15px); }
    100% { transform: translate(0, 0); }
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes beam-spin {
    to { transform: rotate(360deg); }
}

@keyframes dots-move {
    0% { background-position: 0 0; }
    100% { background-position: 24px 24px; }
}

@keyframes infiniteScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-slide-in {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

.animate-scroll-vertical {
    animation: infiniteScroll 40s linear infinite;
}

.group:hover .animate-scroll-vertical {
    animation-play-state: paused;
}

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.t-delay-75 { transition-delay: 75ms; }
.t-delay-100 { transition-delay: 100ms; }
.t-delay-150 { transition-delay: 150ms; }
.t-delay-200 { transition-delay: 200ms; }
.t-delay-225 { transition-delay: 225ms; }
.t-delay-300 { transition-delay: 300ms; }
.t-delay-375 { transition-delay: 375ms; }
.t-delay-450 { transition-delay: 450ms; }

/* Hover Lift */
.hover-lift { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.hover-lift:hover { transform: translateY(-8px) scale(1.005); }


/* =========================================
   3. Glass Effects & Utilities
   ========================================= */
.glass-nav {
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card {
    background: rgba(15, 29, 50, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(30, 58, 95, 0.8);
}

.glass-panel {
    background: linear-gradient(180deg, rgba(15, 29, 50, 0.6) 0%, rgba(10, 22, 40, 0.8) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 58, 95, 0.6);
}


/* =========================================
   4. Component Styles
   ========================================= */

/* Buttons */
.ignite-btn {
    background: linear-gradient(to bottom, #d4a84b, #b8860b);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
    color: #0a1628;
    transition: all 0.3s ease;
    cursor: pointer;
}
.ignite-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.ignite-btn-outline {
    background: transparent;
    border: 1px solid rgba(184, 134, 11, 0.5);
    color: #b8860b;
    transition: all 0.3s ease;
    cursor: pointer;
}
.ignite-btn-outline:hover {
    background: rgba(184, 134, 11, 0.1);
    border-color: #b8860b;
    color: #f5f0e6;
}

.ignite-btn-secondary {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: #f5f0e6;
    transition: all 0.3s ease;
    cursor: pointer;
}
.ignite-btn-secondary:hover {
    background: rgba(30, 58, 95, 0.6);
    border-color: #b8860b;
}

/* Cards */
.ignite-card {
    background: radial-gradient(circle at center, #0f1d32 0%, #0a1628 100%);
    border-top: 1px solid rgba(184, 134, 11, 0.4);
    border-left: 1px solid #1e3a5f;
    border-right: 1px solid #1e3a5f;
    border-bottom: 1px solid #1e3a5f;
}

.stat-card {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(30, 58, 95, 0.5);
    backdrop-filter: blur(4px);
}

/* Icons */
.medallion-icon {
    border-radius: 50%;
    border: 1px solid rgba(184, 134, 11, 0.5);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1628;
}

/* Inputs */
.ignite-input {
    background-color: #0a1628;
    border: 1px solid #1e3a5f;
    color: #f5f0e6;
    transition: all 0.3s ease;
}
.ignite-input:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.2);
    outline: none;
}

/* Section Divider */
.section-divider {
    height: 16px;
    width: 100%;
    max-width: 280px;
    margin: 48px auto;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='16' viewBox='0 0 40 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8h10l5-5 5 5h10l5-5 5 5' stroke='%23b8860b' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.8;
}

/* Our Services Specific Divider override if needed, but keeping generalized */
/* Note: our-services.html had a different section-divider style. 
   Merging: create a modifier class if needed, or unify. 
   The one in our-services is a linear gradient line. 
   Let's create a variant. */
.section-divider.divider-line {
    height: 1px;
    max-width: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
    background-image: none;
    margin: 64px 0;
}

/* Logo Scroll */
.logo-scroll-container {
    display: flex;
    animation: scrollLogos 40s linear infinite;
    will-change: transform;
}
.logo-scroll-container:hover {
    animation-play-state: paused;
}

/* Badges */
.gold-badge {
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.2);
    color: #b8860b;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
