/* EFSI Website - Dark Aerospace Theme */

:root {
    --efsi-charcoal: #0d1117;
    --efsi-dark: #161b22;
    --efsi-navy: #1c2333;
    --efsi-slate: #21262d;
    --efsi-border: #30363d;
    --efsi-blue: #1f6feb;
    --efsi-blue-hover: #388bfd;
    --efsi-blue-glow: rgba(31,111,235,0.3);
    --efsi-coral: #e8491d;
    --efsi-teal: #3fb9a0;
    --efsi-white: #f0f6fc;
    --efsi-text: #c9d1d9;
    --efsi-text-muted: #8b949e;
    --efsi-text-bright: #ffffff;
}

/* Reset & base */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    color: var(--efsi-text);
    background-color: var(--efsi-charcoal);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--efsi-text-bright);
}

a { color: var(--efsi-blue); text-decoration: none; }
a:hover { color: var(--efsi-blue-hover); }

/* Navbar */
.navbar {
    background-color: #0d1117 !important;
    padding: 5px 0;
    border-bottom: 2px solid var(--efsi-border);
    z-index: 1050;
}

.navbar-brand img {
    max-height: 50px;
    filter: brightness(1.1);
}

.navbar .nav-link {
    color: var(--efsi-text) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 1rem 1.15rem !important;
    transition: color 0.2s, border-bottom-color 0.2s;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.02em;
}

.navbar .nav-link:hover {
    color: var(--efsi-text-bright) !important;
    border-bottom-color: var(--efsi-blue);
}

.navbar .nav-link.active {
    color: var(--efsi-text-bright) !important;
    border-bottom-color: var(--efsi-blue);
}

.navbar-toggler {
    border-color: var(--efsi-border);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201,209,217,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menus */
.dropdown-menu {
    background-color: var(--efsi-dark);
    border: 1px solid var(--efsi-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.dropdown-item {
    color: var(--efsi-text);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--efsi-slate);
    color: var(--efsi-text-bright);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(13,17,23,0.3) 0%,
        rgba(13,17,23,0.5) 50%,
        rgba(13,17,23,0.85) 100%
    );
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--efsi-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 2.4rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 16px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.hero-stat .counter-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--efsi-blue);
    display: block;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--efsi-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* Mission logos bar */
.logo-bar {
    background-color: var(--efsi-dark);
    border-top: 1px solid var(--efsi-border);
    border-bottom: 1px solid var(--efsi-border);
    padding: 30px 0;
}

.logo-bar h6 {
    color: var(--efsi-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.logo-bar .mission-logo {
    display: inline-block;
    padding: 10px 25px;
    color: var(--efsi-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--efsi-border);
    border-radius: 6px;
    margin: 5px;
    transition: all 0.25s;
}

.logo-bar .mission-logo:hover {
    color: var(--efsi-text-bright);
    border-color: var(--efsi-blue);
    background-color: rgba(31,111,235,0.08);
}

/* Content sections */
.content-section {
    padding: 80px 0;
}

.content-section-alt {
    padding: 80px 0;
    background-color: var(--efsi-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--efsi-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.efsi-card {
    background: var(--efsi-dark);
    border: 1px solid var(--efsi-border);
    border-radius: 12px;
    padding: 32px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-section-alt .efsi-card {
    background: var(--efsi-slate);
}

.efsi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--efsi-blue), var(--efsi-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.efsi-card:hover {
    transform: translateY(-4px);
    border-color: var(--efsi-blue);
    box-shadow: 0 8px 30px rgba(31,111,235,0.1);
}

.efsi-card:hover::before {
    opacity: 1;
}

.efsi-card .card-icon {
    font-size: 2rem;
    color: var(--efsi-blue);
    margin-bottom: 16px;
}

.efsi-card h5 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--efsi-text-bright);
}

.efsi-card p {
    color: var(--efsi-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.efsi-card a {
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

/* Image cards (for ground systems, simulators) */
.image-card {
    background: var(--efsi-dark);
    border: 1px solid var(--efsi-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    height: 100%;
}

.image-card:hover {
    transform: translateY(-4px);
    border-color: var(--efsi-blue);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-card .card-body {
    padding: 24px;
}

/* Buttons */
.btn-efsi {
    background: var(--efsi-blue);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-efsi:hover {
    background: var(--efsi-blue-hover);
    color: #fff;
    box-shadow: 0 4px 20px var(--efsi-blue-glow);
}

.btn-efsi-outline {
    background: transparent;
    color: var(--efsi-blue);
    border: 1px solid var(--efsi-blue);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-efsi-outline:hover {
    background: var(--efsi-blue);
    color: #fff;
    box-shadow: 0 4px 20px var(--efsi-blue-glow);
}

/* Feature row (side-by-side image + text) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.feature-row.reversed { flex-direction: row-reverse; }

.feature-row .feature-image {
    flex: 0 0 45%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--efsi-border);
}

.feature-row .feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-row .feature-text { flex: 1; }

/* Team section */
.team-card {
    background: var(--efsi-dark);
    border: 1px solid var(--efsi-border);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.3s;
}

.team-card:hover {
    border-color: var(--efsi-blue);
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--efsi-blue);
}

.team-card h4 {
    margin-top: 16px;
    margin-bottom: 4px;
}

.team-card .title {
    color: var(--efsi-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact form */
.contact-form .form-control,
.contact-form .form-select {
    background-color: var(--efsi-slate);
    border: 1px solid var(--efsi-border);
    color: var(--efsi-text-bright);
    border-radius: 8px;
    padding: 12px 16px;
}

.contact-form .form-control:focus {
    border-color: var(--efsi-blue);
    box-shadow: 0 0 0 3px var(--efsi-blue-glow);
    background-color: var(--efsi-slate);
    color: var(--efsi-text-bright);
}

.contact-form .form-label {
    color: var(--efsi-text);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--efsi-text);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--efsi-teal);
}

/* Ground system links */
.gs-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--efsi-slate);
    border: 1px solid var(--efsi-border);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: border-color 0.2s, background-color 0.2s;
    color: var(--efsi-text);
    text-decoration: none;
}

.gs-link:hover {
    border-color: var(--efsi-blue);
    background-color: rgba(31,111,235,0.05);
    color: var(--efsi-text-bright);
}

.gs-link .gs-icon {
    font-size: 1.5rem;
    color: var(--efsi-blue);
    flex-shrink: 0;
}

.gs-link h6 { margin: 0; color: var(--efsi-text-bright); font-size: 0.95rem; }
.gs-link p { margin: 0; font-size: 0.82rem; color: var(--efsi-text-muted); }

/* Footer */
.site-footer {
    background-color: var(--efsi-charcoal);
    border-top: 1px solid var(--efsi-border);
    color: var(--efsi-text-muted);
    padding: 50px 0 25px;
}

.site-footer h6 {
    color: var(--efsi-text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.site-footer a {
    color: var(--efsi-text-muted);
    font-size: 0.88rem;
    display: block;
    padding: 3px 0;
    transition: color 0.2s;
}

.site-footer a:hover { color: var(--efsi-blue); }

.footer-bottom {
    border-top: 1px solid var(--efsi-border);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 991px) {
    .feature-row { flex-direction: column; }
    .feature-row.reversed { flex-direction: column; }
    .feature-row .feature-image { flex: none; width: 100%; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 60vh; }
    .hero-bg { background-attachment: scroll; }
    .hero-section h1 { font-size: 2rem; }
    .hero-stats { gap: 15px; }
    .hero-stat { padding: 14px 20px; }
    .hero-stat .counter-value { font-size: 2rem; }
    .content-section, .content-section-alt { padding: 50px 0; }
    .navbar .nav-link { padding: 0.5rem 1rem !important; border-bottom: none; }
}
