:root {
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --primary: #BF0A30; /* Crimson Red */
    --secondary: #1E3254; /* Navy Blue */
    --muted-gray: #4A4A4A; /* Dark Gray */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(30, 50, 84, 0.1);
    --text-main: #1E3254;
    --text-muted: #4A4A4A;
    --font-head: 'Exo 2', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-weight: 800;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Navigation */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    transition: all 0.4s ease;
    padding: 25px 0;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    /* Transparent header (not scrolled) sits over the dark hero: show the white logo */
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

nav.scrolled .logo img {
    filter: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    /* Transparent header: red + bold for legibility over the hero */
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
    font-family: var(--font-head);
}

.nav-links a:hover {
    /* Transparent header sits over a dark hero: hover must stay legible (white), not navy */
    color: white;
}

nav.scrolled .nav-links a {
    color: var(--secondary);
    font-weight: 700;
}

nav.scrolled .nav-links a:hover {
    color: var(--primary);
}

.lang-toggle {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    font-family: var(--font-head);
    font-weight: 800;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: white;
    background-color: var(--secondary);
    padding: 160px 0 60px;
}

.hero-video.video-fallback {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 50, 84, 0.8) 0%, rgba(191, 10, 48, 0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 640px;
    text-align: left;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-tag .line {
    width: 6px; height: 20px;
    background: var(--primary);
}

.hero-tag span {
    font-size: 14px;
    font-family: var(--font-head);
    color: white;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 5rem);
    line-height: 1.05;
    margin-bottom: 30px;
    color: white;
}

.hero h1 span {
    color: white;
    -webkit-text-stroke: 1px white;
    background: linear-gradient(to bottom, #FFFFFF, #E0E0E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 45px;
    font-weight: 300;
}

.btn-group {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 38px;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.15em;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(191, 10, 48, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 50, 84, 0.3);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.hero .btn-outline:hover {
    background: white;
    color: var(--secondary);
}

/* Sections */
section {
    padding: 140px 0;
}

.section-header {
    margin-bottom: 90px;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.section-header h2 span {
    color: var(--primary);
}

.section-header .divider {
    width: 100px; height: 5px;
    background: var(--primary);
    margin: 0 auto;
}

/* Grid */
.grid-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.grid-3 .card {
    flex: 1 1 320px;
    max-width: 380px;
}

.card {
    padding: 50px 40px;
    position: relative;
    transition: all 0.5s;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
}

.card .btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
}

.card .btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* Statistics */
/* Video container fallback pattern */
.video-fallback {
    position: relative;
}

.video-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.stat-number {
    font-size: 4.5rem;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-head);
    font-size: 12px;
    color: var(--secondary);
    letter-spacing: 0.3em;
    font-weight: 700;
}

/* Allies Section - "partner spotlight" layout */
.allies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.ally-card {
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 22px;
    padding: 22px 28px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.4s;
}

.ally-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 5px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s;
}

.ally-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.ally-card:hover::before {
    transform: scaleY(1);
}

.ally-logo {
    flex-shrink: 0;
    width: 124px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    background: var(--light-bg);
}

.ally-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ally-card .ally-info {
    flex: 1;
    min-width: 0;
}

.ally-card .ally-country {
    display: block;
    font-family: var(--font-head);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ally-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.ally-card .ally-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}

.ally-card .ally-link .arrow {
    transition: transform 0.3s;
}

.ally-card .ally-link:hover {
    color: var(--primary);
}

.ally-card .ally-link:hover .arrow {
    transform: translateX(4px);
}

/* Footer */
footer {
    padding: 100px 0;
    background: var(--secondary);
    border-top: 5px solid var(--primary);
    text-align: center;
    color: white;
}

.footer-logo {
    height: 50px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 0.1em;
}
.ssapi-logo{
    position: absolute; 
    bottom: 30px;
    right: 30px; 
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero {
        padding: 120px 0 50px;
    }
    .hero-content {
        text-align: center;
        max-width: none;
    }
    .hero-content .hero-tag {
        justify-content: center;
    }
    .hero-content .btn-group {
        justify-content: center;
    }
    .ally-card {
        flex-direction: column;
        text-align: center;
    }
    .ally-card .ally-link {
        justify-content: center;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .btn-group a{
        flex: 1;
    }
    
}

@media (max-width: 376px) {
    .ssapi-logo{
        position: absolute; 
        top: 46%; 
        left: 42%; 
        transform: translate(-50%, -50%); 
        z-index: 10;
    }
}