@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Satisfy&display=swap');

:root {
    /* Color Palette — Light "American" (red/white/blue) */
    --bg-dark: #0c1420;          /* page background (dark navy) */
    --bg-card: #142035;          /* cards */
    --bg-card-glass: rgba(20, 32, 53, 0.88);
    --border-color: rgba(255, 255, 255, 0.10);
    --primary: #b22234;          /* Old Glory red */
    --primary-hover: #8f1b29;
    --primary-glow: rgba(178, 34, 52, 0.22);
    --navy: #0a3161;             /* Old Glory blue (secondary accent) */
    --navy-deep: #071f3d;
    --text-main: #e8edf5;        /* light text on dark */
    --text-muted: #7d93b2;
    --text-dark: #ffffff;        /* text on colored buttons */
    --steel-gray: #334155;
    --success: #10b981;
    
    /* Typography */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: rgba(12, 20, 32, 0.95);
    box-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary) 0 33%, #ffffff 33% 66%, var(--navy) 66% 100%) 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.8;
    margin-top: 2px;
}

.logo-script {
    font-family: 'Satisfy', cursive;
    font-size: 1.95rem;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    margin-top: 1px;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary);
}

/* Mode Switch Button */
.btn-toggle-view {
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: var(--text-dark);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-header);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
}

.btn-toggle-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 34, 52, 0.4);
}

/* View Sections */
.view-section {
    display: none;
    padding-top: 80px; /* Header spacing */
}

.view-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Common Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* HERO SECTION */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    animation: kenburns 12s infinite alternate ease-in-out;
}

@keyframes kenburns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-1%, -1%);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: #ff6b6b;
    display: block;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card-glass);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.stat-value {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    font-family: var(--font-header);
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 34, 52, 0.4);
}

/* SECTION TYPOGRAPHY */
.section-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

/* JOB OVERVIEW & ROLES */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-5px);
    border-color: rgba(178, 34, 52, 0.3);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.role-tag {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.role-card h3 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.role-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-family: var(--font-header);
}

.role-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.role-list {
    list-style: none;
    margin-bottom: 2rem;
}

.role-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
}

.role-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* REQUIREMENTS SECTION */
.requirements-section {
    background: #0e1a2b;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.req-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

.req-card:hover {
    border-color: rgba(178, 34, 52, 0.25);
}

.req-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.req-card h4 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.req-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FLEET GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 76, 0.92), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text h5 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: #ffffff;
}

.gallery-text p {
    font-size: 0.8rem;
    color: var(--primary);
}

/* APPLICATION FORM */
.apply-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(178, 34, 52, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.checkbox-group input {
    margin-top: 0.25rem;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-group label span {
    color: var(--text-main);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* FOOTER */
footer {
    background: var(--navy-deep);
    border-top: 4px solid var(--primary);
    padding: 4rem 2rem 2rem 2rem;
}
/* Footer dark-theme text overrides (anchors the light site) */
footer .footer-info h4, footer .footer-links h5 { color: #ffffff; }
footer .footer-info p, footer .contact-item, footer .footer-links ul a { color: #a9b6c8; }
footer .contact-item span { color: #6f9fd8; }
footer .footer-links ul a:hover { color: #ff8a8a; }
footer .footer-bottom { color: #8494a8; border-top-color: rgba(255,255,255,0.12); }

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h4 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.contact-item span {
    color: var(--primary);
    font-weight: 600;
}

.footer-links h5 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}




/* Lightbox overlay */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .roles-grid, .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .submissions-card {
        grid-column: span 1;
    }
    .requirements-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    nav {
        gap: 1rem;
    }
    .requirements-grid, .gallery-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        gap: 2rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .apply-container {
        padding: 1.5rem;
    }
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--success);
    border-left: 5px solid var(--success);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--success);
    font-size: 1.5rem;
}
.toast-content h4 {
    margin: 0;
    font-family: var(--font-header);
    font-size: 1rem;
}
.toast-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =================== FLEET VIDEO SLIDESHOW =================== */
.fleet-slideshow-section {
    padding: 0;
    background: #08111d;
    position: relative;
}

.fleet-slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    background: #08111d;
}

.fleet-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.fleet-slide.active {
    opacity: 1;
}

.fleet-slide video,
.fleet-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,17,29,0.90) 0%, rgba(8,17,29,0.20) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 3rem;
}

.fleet-slide-caption h4 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.fleet-slide-caption p {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
}

.fleet-slide-caption .slide-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

/* Dot navigation */
.fleet-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.fleet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}

.fleet-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

/* Arrow controls */
.fleet-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12,20,32,0.65);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.fleet-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.fleet-arrow.prev { left: 1.5rem; }
.fleet-arrow.next { right: 1.5rem; }

/* Thumbnail strip below the main slide */
.fleet-thumb-strip {
    display: flex;
    gap: 0;
    background: #08111d;
}

.fleet-thumb {
    flex: 1;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    border-right: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.fleet-thumb:last-child { border-right: none; }

.fleet-thumb img,
.fleet-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.fleet-thumb.active,
.fleet-thumb:hover {
    opacity: 1;
}

.fleet-thumb.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .fleet-slideshow-wrapper { height: 280px; }
    .fleet-slide-overlay { padding: 1.2rem; }
    .fleet-slide-caption h4 { font-size: 1.1rem; }
    .fleet-thumb-strip { display: none; }
    .fleet-arrow { width: 36px; height: 36px; font-size: 1rem; }
}

/* About expanded text grid */
.about-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text-grid p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .about-text-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Hero dual CTA buttons */
.hero .btn-primary + .btn-primary {
    margin-top: 0;
}
