:root {
    --trade-blue: #0055A4;
    --accent-teal: #008080;
    --gold: #D4AF37;
    --dark-gray: #2C2C2C;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    overflow-x: hidden;
    cursor: default;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', sans-serif;
}

.text-mono {
    font-family: 'Roboto Mono', monospace;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s;
}

/* Particle Canvas */
#particle-canvas, #cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

#cursor-canvas {
    z-index: 9999;
}

/* Layout Utilities that need to be above particles */
.relative-z {
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn-primary {
    background-color: var(--trade-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #004080;
    box-shadow: 0 0 15px rgba(0, 85, 164, 0.5);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b8962e;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--trade-blue);
    border: 2px solid var(--trade-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--trade-blue);
    color: var(--white);
}

/* Magnetic effect wrapper */
.magnetic-wrap {
    display: inline-block;
}

/* Wave Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glowing Elements */
.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(0, 128, 128, 0.4);
}

/* Stagger Reveals */
.stagger-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Map Trade Route Animation */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.map-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    animation: pulse-dot 2s infinite;
}

.map-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: map-dash 5s linear infinite;
}

@keyframes map-dash {
    to { stroke-dashoffset: 0; }
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Nav */
nav a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--trade-blue);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--trade-blue);
}

/* Tabs */
.tab-btn {
    border-bottom: 2px solid transparent;
}
.tab-btn.active {
    border-bottom-color: var(--gold);
    color: var(--trade-blue);
    font-weight: 600;
}
.tab-content {
    display: none;
    animation: fade-in 0.4s ease;
}
.tab-content.active {
    display: block;
}

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

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Counters */
.counter-val {
    display: inline-block;
    min-width: 2ch;
}
