:root {
    /* Color Palette */
    --bg-dark: #f5f7fa; /* Light grey/white */
    --bg-darker: #e4e7eb; /* Slightly darker grey */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
    
    --text-main: #1f2937; /* Dark text */
    --text-muted: #6b7280; /* Muted grey text */
    
    --primary: #6d28d9;
    --secondary: #0891b2;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: 20%;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 40%;
    left: 20%;
    opacity: 0.2;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography & Utilities */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-inline-block { display: inline-block; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 9, 19, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-social {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.social-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.hero, .section, .footer {
    opacity: 0.15;
    transform: scale(0.92) translateY(40px);
    filter: blur(4px);
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.hero.in-focus, .section.in-focus, .footer.in-focus {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
}

.stat-symbol {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* References Grid */
.references-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.ref-btn {
    min-width: 180px;
}

/* Sliding Marquee for Images */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 3rem;
    animation: scroll-marquee 15s linear infinite;
}

.ref-logo {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--glass-bg);
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--glass-border);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* Agencies Layout & Slider */
.agency-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.agency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.15);
    color: var(--text-main);
}

.agency-logo {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    border-radius: 12px;
}

.marquee-content .agency-card {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    padding: 0.8rem;
}

.contact-card {
    border: 2px dashed var(--secondary);
    background: transparent;
    text-align: center;
    cursor: pointer;
}

.contact-card p {
    font-size: 0.9rem;
}

.justify-center {
    display: flex;
    justify-content: center;
}

.inline-contact {
    max-width: 320px;
    width: 100%;
}

/* TradingView Carousel */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track-container {
    flex: 1;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    box-shadow: inset 0 0 0 1px var(--glass-border);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
}

.carousel-btn {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
    z-index: 10;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.5);
}

.tradingview-container-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.tradingview-container-wrapper > div {
    height: 100% !important;
    width: 100% !important;
}

/* Features/Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Aims Section */
.aims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.aim-card {
    padding: 2.5rem 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.aim-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.aim-number {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.aim-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.aim-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Video Placeholder */
.video-wrapper {
    padding: 1rem;
    border-radius: 24px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    color: var(--secondary);
}

/* Footer */
.footer {
    padding: 6rem 2rem 4rem;
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.mailing-links a {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.mailing-links a:hover {
    color: var(--secondary);
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 3rem 0 2rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}



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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .carousel-track-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    
    .hero, .section, .footer {
        min-height: auto;
        scroll-snap-align: none;
        display: block;
        opacity: 1 !important;
        transform: scale(1) !important;
        filter: blur(0) !important;
    }

    .section {
        padding: 4rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        margin: 5rem 1rem 2rem;
        padding: 4rem 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .carousel-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .carousel-track-container {
        height: 320px;
        width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}

/* NFA Modal Styles */
.nfa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nfa-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nfa-modal-content {
    max-width: 580px;
    width: 90%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(109, 40, 217, 0.35);
    border: 1px solid var(--primary);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
    max-height: 90vh;
}

.nfa-modal-overlay.active .nfa-modal-content {
    transform: scale(1);
}

.nfa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.nfa-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.nfa-modal-close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.nfa-modal-close:hover {
    color: var(--primary);
}

.nfa-points {
    text-align: left;
    margin-top: 1rem;
}

.nfa-points li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.nfa-points li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.nfa-modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* Glowing Scrolled Navbar NFA Button */
.navbar.scrolled .nfa-btn {
    background: var(--gradient);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.6);
    transform: scale(1.08);
    font-weight: 800;
}
/* ============================================================
   IFREQS WATERMARK
   ============================================================ */
.ifreqs-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: clamp(5rem, 18vw, 16rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(109, 40, 217, 0.12);
    text-stroke: 2px rgba(109, 40, 217, 0.12);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    animation: watermark-breathe 8s ease-in-out infinite;
}

@keyframes watermark-breathe {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) rotate(-20deg) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) rotate(-20deg) scale(1.03); }
}

/* Ensure all page content stays above background layers */
.navbar,
.mobile-menu-overlay,
.hero,
.section,
.footer,
.nfa-modal-overlay {
    position: relative;
    z-index: 1;
}
.bg-shape {
    z-index: 0;
}

