/* ========================================
   ERA ALLIANCE - Custom CSS
   ======================================== */

/* ========================================
   Color Variables
   ======================================== */
:root {
    /* Primary Colors */
    --navy-dark: #0A192F;
    --navy-medium: #112240;
    --navy-light: #1E3A5F;
    
    /* Accent Colors */
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --gold-light: #FFE55C;
    
    /* Surface Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    
    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --text-light: #ADB5BD;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #3969a9 /*var(--text-primary)*/;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ========================================
   Header/Navigation
   ======================================== */
#mainNavbar {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-medium);
}

#mainNavbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-primary) !important;
    background-color: rgba(255, 215, 0, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    border: none;
    color: var(--navy-dark) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--navy-dark) !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(17, 34, 64, 0.8)), 
                url('../images/hero-bg.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-btn {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    animation: fadeInUp 1s ease 0.6s both;
}

/* ========================================
   Section Styling
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 2px;
}

/* ========================================
   Card Components
   ======================================== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy-medium);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-medium);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gold-primary);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy-medium);
}

/* ========================================
   Quote Section
   ======================================== */
.quote-section {
    background: linear-gradient(135deg, var(--navy-medium) 0%, var(--navy-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 2rem;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--gold-primary);
    position: absolute;
    line-height: 1;
}

.quote-text::before {
    top: -20px;
    left: -10px;
}

.quote-text::after {
    bottom: -40px;
    right: -10px;
}

.quote-author {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-primary);
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold-primary);
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--gold-primary);
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    top: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    border-left: 15px solid var(--white);
    right: -15px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    border-right: 15px solid var(--white);
    left: -15px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

/* ========================================
   Statistics Section
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--navy-medium) 0%, var(--navy-dark) 100%);
    color: var(--white);
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--gold-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-light);
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    color: var(--gold-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-contact li {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--gold-primary);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gold-primary);
    color: var(--navy-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--gold-primary);
}

/* ========================================
   Back to Top Button
   ======================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
}

.btn-back-to-top.show {
    display: flex;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

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

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

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content::after {
        border-right: 15px solid var(--white);
        border-left: none;
        left: -15px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .quote-text {
        font-size: 1.4rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.bg-navy {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
}

.text-gold {
    color: var(--gold-primary) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-soft) !important;
}

.shadow-medium {
    box-shadow: var(--shadow-medium) !important;
}

.rounded-xl {
    border-radius: 15px !important;
}

/* ========================================
   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;
}

:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* ========================================
   Language Switching Animation
   ======================================== */
body.language-switching {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.language-switching * {
    animation: languageSwitchFade 0.3s ease;
}

@keyframes languageSwitchFade {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Language dropdown active state */
.dropdown-item.active {
    background-color: var(--gold-primary);
    color: var(--navy-dark);
}

/* Language Switcher Buttons */
.language-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.lang-btn:not(.active) {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn:not(.active):hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--navy-dark);
    border-color: var(--gold-primary);
}

/* Mobile Language Switcher */
@media (max-width: 991.98px) {
    .language-switcher {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .language-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .lang-btn {
        flex: 1;
        justify-content: center;
        padding: 0.75rem;
        font-size: 1.1rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .footer,
    .btn-back-to-top {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}