/* Custom Variables */
:root {
    --primary: #0A1F44;
    --primary-light: #1a2f54;
    --primary-dark: #061634;
    --secondary: #000000;
    --gold: #D4AF37;
    --gold-light: #e6c65c;
    --gold-dark: #b39127;
    --white: #FFFFFF;
    --gradient-dark: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-gold: linear-gradient(145deg, var(--gold) 0%, var(--gold-dark) 100%);
    --gradient-primary: linear-gradient(145deg, var(--primary-light) 0%, var(--primary) 100%);
    --box-shadow-gold: 0 5px 15px rgba(212, 175, 55, 0.3);
    --box-shadow-dark: 0 5px 15px rgba(10, 31, 68, 0.3);
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navigation */
#mainNav {
    background-color: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

/* Adjust spacing for sections that come after fixed navbar */
.page-header,
.hero-section,
section:first-of-type {
    padding-top: 160px !important;
}

#mainNav .navbar-brand {
    padding: 0;
}

#mainNav .navbar-brand img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

#mainNav .navbar-brand:hover img {
    transform: scale(1.05);
}

#mainNav .nav-link {
    color: var(--white);
    transition: color 0.3s ease;
}

#mainNav .nav-link:hover {
    color: var(--gold);
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary {
    background: var(--gradient-gold);
    border: none;
    color: var(--secondary);
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-gold);
    background: var(--gold);
    color: var(--secondary);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.btn-outline-gold:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-outline-gold:hover::after {
    opacity: 1;
}

.btn i {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.2);
}

/* Enhanced Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Badge */
.hero-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.badge-circle {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: pulseGold 2s infinite;
}

.badge-ribbon {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    z-index: 1;
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.title-accent {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform-origin: left;
    animation: slideRight 1s ease forwards;
}

/* Hero Tagline */
.hero-tagline {
    position: relative;
    display: inline-block;
    margin: 2rem 0;
}

.tagline-text {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
}

.tagline-icons {
    margin-top: 1rem;
}

.tagline-icons i {
    margin: 0 10px;
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.tagline-icons i:nth-child(1) { animation-delay: 0.3s; }
.tagline-icons i:nth-child(2) { animation-delay: 0.5s; }
.tagline-icons i:nth-child(3) { animation-delay: 0.7s; }

/* Hero Location */
.hero-location {
    position: relative;
    display: inline-block;
}

.location-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold) 0%, rgba(212, 175, 55, 0) 70%);
    top: -150px;
    right: -100px;
    opacity: 0.1;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(10, 31, 68, 0) 70%);
    bottom: -100px;
    left: -50px;
    opacity: 0.15;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--gold) 0%, rgba(212, 175, 55, 0) 70%);
    top: 50%;
    right: 10%;
    opacity: 0.1;
}

/* Animations */
@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes slideRight {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(10, 31, 68, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    animation: pulseGlow 2s infinite;
}

.icon-circle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-gold);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: rotate 10s linear infinite;
}

.impact-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.1);
}

.highlight-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.highlight-item span {
    color: var(--white);
    font-size: 0.9rem;
}

.hero-shapes .shape {
    position: absolute;
    background: var(--gradient-gold);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.text-gold {
    color: var(--gold) !important;
}

/* Impact Stats Section */
.impact-stats {
    position: relative;
    background: var(--gradient-primary);
    padding: 4rem 0;
}

.impact-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.343 0L13.857 8.485 15.272 9.9l9.9-9.9h-2.83zM32 0l-3.657 3.657 1.414 1.414L33.514 0H32zm-6.485 0L20.343 5.172l1.414 1.414L26.514 0h-1zM42.485 0L28 14.485 29.414 15.9 44.9 0h-2.414zm-6.485 0L18.343 17.657l1.414 1.414L36.514 0h-1zM12.485 0L0 12.485l1.414 1.414L13.9 0h-1.414zM48 0L34.828 13.172l1.414 1.414L53.414 0H48zm-7.071 0L28 13.929l1.414 1.414L50.343 0h-9.414zM0 3.414l1.414 1.414L8.485 0H0v3.414zm0 10L11.414 1.414 12.828 0H0v13.414zm0 10l21.414-21.414L23.828 0H0v23.414zM0 36.485l32.485-32.485L34.9 0H0v36.485zm0 10l42.485-42.485L44.9 0H0v46.485zm14.485-14.485c2.343-2.343 5.343-4.343 8.485-7.485l1.415 1.414c-4.343 4.342-7.657 7.656-8.485 8.485l-1.415-2.414zm-4.243 4.242l-1.414 1.414c1.414-1.414 2.828-2.828 4.242-4.242L21.9 32.9c-2.828 2.829-5.656 5.657-7.071 7.07l-4.486-4.485zm21.214-21.213c1.414-1.414 2.828-2.828 4.242-4.242L36.9 12.9c-2.828 2.829-5.656 5.657-7.071 7.07l1.414 1.415zM12.485 0L0 12.485v2.829L14.899 0h-2.414zm7.071 0L0 19.556v2.829L22.435 0h-2.879zM48 0L0 48v2.829L50.899 0H48zm-7.071 0L0 40.97v2.828L43.435 0h-2.506zM54.627 0L0 54.627v2.829L57.435 0h-2.808z' fill='%23D4AF37' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-dark);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-card i {
    font-size: 2.5rem;
}

.stat-card h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin: 1rem 0;
}

/* Programs Section */
.program-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 50%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
}

.program-card:hover::after {
    opacity: 0.05;
    transform: scale(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-gold);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover .card-icon {
    transform: scale(1.1);
    border-color: var(--gold);
}

.program-card:hover .card-icon::before {
    opacity: 0.2;
}

.card-icon i {
    font-size: 2rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.program-card:hover .card-icon i {
    transform: scale(1.1);
    color: var(--gold-light);
}

.program-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--white);
}

.footer h5 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--gold);
}

.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Value Cards */
.value-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.value-card:hover .card-icon {
    transform: scale(1.1);
}

.value-icons i {
    font-size: 1.2rem;
    opacity: 0.7;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.value-card:hover .value-icons i {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover .value-icons i:nth-child(1) { transition-delay: 0.1s; }
.value-card:hover .value-icons i:nth-child(2) { transition-delay: 0.2s; }
.value-card:hover .value-icons i:nth-child(3) { transition-delay: 0.3s; }

/* Performance-optimized animations */
.animate-gold-glow {
    animation: goldGlow 3s infinite;
    will-change: box-shadow;
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--gold);
    }
    50% {
        box-shadow: 0 0 15px var(--gold);
    }
}

/* Icon Pulse Animation - optimized */
.card-icon i {
    animation: iconPulse 3s infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.1) translateZ(0);
    }
}

/* Optimize GPU acceleration for animations */
.btn,
.program-card,
.stat-card,
.value-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* Use CSS classes for hover states instead of JS */
.program-card.hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .animate-gold-glow {
        animation: none;
        box-shadow: 0 0 10px var(--gold);
    }
    
    .card-icon i {
        animation: none;
        transform: scale(1);
    }
    
    .hero-shapes {
        display: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .program-card {
        margin-bottom: 1rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}