/* Import Sui Generis Rg Font */
@font-face {
    font-family: 'Sui Generis Rg';
    src: url('../fonts/SuiGenerisRg.woff2') format('woff2'),
         url('../fonts/SuiGenerisRg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sui Generis Rg', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 16px;
    color: #1D64AB;
    background: -webkit-gradient(linear, left top, right top, from(#1D64AB), to(#29A9A5));
    background: linear-gradient(to right, #1D64AB, #29A9A5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.7;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.section {
    padding: 40px 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
    color: #1f2937;
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 24px;
    color: #6b7280;
}

/* Header and Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    height: 51px;
    width: 210px;
}

.nav-logo-img {
    height: 51px;
    width: 210px;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.nav-logo-img.color-logo {
    opacity: 1;
}

.nav-logo-img.white-logo {
    opacity: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    color: #228aa8;
    font-size: 16px;
}

.nav-link:hover,
.nav-link.active {
    color: #228aa8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #228aa8;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #228aa8;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 8px;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #1e7a8c;
    transform: translateX(4px);
}

.superscript {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background-color: #4b5563;
    transition: all 0.3s ease;
}

/* Header Scrolled State */
.header.scrolled {
    background-color: rgba(34, 138, 168, 0.98);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-link {
    color: white;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #e5e7eb;
}

.header.scrolled .nav-link.active::after {
    background-color: white;
}

.header.scrolled .nav-toggle span {
    background-color: white;
}

.header.scrolled .nav-logo-img.color-logo {
    opacity: 0;
}

.header.scrolled .nav-logo-img.white-logo {
    opacity: 1;
}

/* Page Hero Headings Override */
.page-hero h1,
.page-hero .page-title {
    color: white;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: white;
}

/* CTA Section Headings Override */
.cta-section h2 {
    color: white;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: white;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    padding: 60px 0 40px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-right {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.1;
}

.hero-title-animated {
    animation: none; /* Remove default animation */
}

/* Hero Text Rows */
.hero-text-row {
    display: block;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-text-row-1 {
    animation: heroTextSlideUp 0.8s ease 0.2s forwards;
}

.hero-text-row-2 {
    animation: heroTextSlideUp 0.8s ease 0.5s forwards;
}

.hero-text-row-3 {
    animation: heroTextSlideUp 0.8s ease 0.8s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #6b7280;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Hero Title Color Styling */
.hero-title .text-unleash {
    color: #e69137;
}

.hero-title .text-power {
    color: #4485c6;
}

.hero-title .text-possibilities {
    color: #cf0c00;
}

/* Override gradient styling for hero title specifically */
.hero-title {
    color: #1f2937;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

.hero-title .text-unleash,
.hero-title .text-power,
.hero-title .text-possibilities {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

.hero-video {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(34, 138, 168, 0.2);
    animation: fadeInUp 1s ease 0.9s both;
}

/* Page Hero */
.page-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #228aa8, #2dd4bf);
    color: white;
    text-align: center;
    position: relative; /* Added for pseudo-element positioning */
    overflow: hidden; /* Added to contain the animation */
}

.page-hero .container {
    position: relative; /* Added to ensure text is above animation */
    z-index: 2; /* Added to ensure text is above animation */
}

/* Ripple effect for hero banner */
.hero-ripple {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: scale(0);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.hero-ripple.active {
    animation: ripple-expand 1.5s ease-out forwards;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: white;
    color: #228aa8;
    border-color: #228aa8;
}

.btn-primary:hover {
    background-color: #228aa8;
    color: white;
    border-color: #228aa8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 138, 168, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #228aa8;
    border-color: #228aa8;
}

.btn-secondary:hover {
    background-color: #228aa8;
    color: white;
    border-color: #228aa8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 138, 168, 0.3);
}

/* Grids */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 32px 0 12px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2dd4bf;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-link {
    color: #d1d5db;
    text-decoration: none;
    padding: 8px;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #2dd4bf;
    transform: translateY(-2px);
    background-color: rgba(45, 212, 191, 0.1);
}

/* Screen reader only text for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes heroTextSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-text-row-1,
    .hero-text-row-2,
    .hero-text-row-3 {
        animation: heroTextFadeIn 0.3s ease forwards;
    }
    
    .hero-text-row-1 {
        animation-delay: 0.1s;
    }
    
    .hero-text-row-2 {
        animation-delay: 0.2s;
    }
    
    .hero-text-row-3 {
        animation-delay: 0.3s;
    }
}

@keyframes heroTextFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-16 {
    margin-bottom: 64px;
}

.mt-8 {
    margin-top: 32px;
}

.hidden {
    display: none;
}

/* World Map Styles */
.world-map {
    height: 500px;
    width: 100%;
    margin-top: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.world-map.map-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Pin Styles */
.pulsing-icon {
    width: 20px !important;
    height: 20px !important;
    background-color: #228aa8 !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 0 rgba(34, 138, 168, 0.8) !important;
    animation: pulse-pin 2s infinite !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1000 !important;
}

.pulsing-icon::before {
    content: '📍' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 12px !important;
    z-index: 1001 !important;
}

.pulsing-icon:hover {
    background-color: #1e7a8c !important;
    animation-duration: 0.8s !important;
    transform: scale(1.2) !important;
}

@keyframes pulse-pin {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 138, 168, 0.8);
        transform: scale(1);
    }
    25% {
        box-shadow: 0 0 0 8px rgba(34, 138, 168, 0.4);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 138, 168, 0.2);
        transform: scale(1.15);
    }
    75% {
        box-shadow: 0 0 0 20px rgba(34, 138, 168, 0.1);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 25px rgba(34, 138, 168, 0);
        transform: scale(1);
    }
}

/* Custom popup styling */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.custom-popup .leaflet-popup-tip {
    background: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Main content spacing for fixed header */
main {
    margin-top: 70px;
}

/* Footer Headings Override */
.footer h3,
.footer h4 {
    color: white;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: white;
}