@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

/* Base Styles & Rifle Green Theme */
:root {
    --primary-color: #132713; /* Deep darker green */
    --secondary-color: #1c351f;
    --panel-color: rgba(28, 53, 31, 0.92);
    --nav-gradient: linear-gradient(180deg, #112712 0%, #132713 60%, #0d190f 100%);
    --accent-color: #d4af37; /* Gold for ranks/highlights */
    --text-color: #e0e0e0;
    --bg-color: #0f110f;
    --nav-hover: rgba(212, 175, 55, 0.18);
    --nav-border: rgba(212, 175, 55, 0.32);
    --radius: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.splash-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 10px;
    text-transform: uppercase;
}

body, html {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(15, 17, 15, 0.84), rgba(15, 17, 15, 0.84)), url('wallpaperflag.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    cursor: url('crosshair.png') 16 16, crosshair !important;
}

/* --- Custom Regimental Scrollbar --- */
html, body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--secondary-color);
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(19, 39, 19, 0.9);
}

*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.95), rgba(212, 175, 55, 0.8));
    border-radius: 999px;
    border: 3px solid rgba(15, 17, 15, 0.9);
}

*::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 1), rgba(212, 175, 55, 0.85));
}

*::-webkit-scrollbar-corner,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
    background: rgba(15, 17, 15, 0.95);
}

/* --- Custom Crosshair Cursor --- */
a, button, .music-toggle, .burger, summary {
    cursor: url('crosshair.png') 16 16, pointer !important;
}

/* --- Cinematic Splash Screen --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.splash-text {
    color: var(--accent-color);
    font-size: 3.5rem;
    letter-spacing: 6px;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-gradient);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--nav-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    margin: 0;
    border-radius: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    font-weight: 700;
    background: var(--nav-gradient);
    border: 1px solid rgba(212, 175, 55, 0.16);
}

.nav-links li a:hover,
.nav-links li a.active-link {
    background-color: var(--nav-hover);
    color: var(--text-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Mobile Menu (Burger) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Page Content */
.page {
    display: none;
    padding: 32px;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
    background: rgba(19, 39, 19, 0.92);
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-box {
    background: var(--nav-gradient);
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.content-box h1 {
    color: var(--accent-color);
    background: none;
    padding: 0;
    margin: 0 0 20px;
    text-shadow: none !important;
}

.content-box h1,
.content-box h2,
.content-box h3,
.page h1,
.page h2,
.page h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: none !important;
}

h1, h2, h3, h1 *, h2 *, h3 * {
    text-shadow: none !important;
}

h2 { margin-top: 2rem; border-bottom: 1px solid var(--accent-color); padding-bottom: 0.5rem; }

/* Carousel */
.carousel-container {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 2px solid var(--accent-color);
    padding: 12px;
    margin-bottom: 20px;
    background-color: var(--primary-color);
}

.carousel-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: var(--radius);
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition-delay: 0s;
}

.page img,
.content-box img,
.company-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--bg-color);
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--secondary-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

/* Company Cards */
.company-card {
    background-color: rgba(15, 17, 15, 0.85);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.faq-section {
    margin-top: 20px;
}

.faq-section details {
    background: rgba(15, 17, 15, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius);
    padding: 14px 0 0 0;
    margin-bottom: 12px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.faq-section details[open] {
    background: rgba(15, 17, 15, 1);
    transform: translateY(-1px);
}

.faq-section summary {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--nav-gradient);
    padding: 12px 14px;
    display: block;
    list-style: none;
    outline: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.site-footer {
    background: var(--nav-gradient);
    border-top: 2px solid var(--nav-border);
    text-align: center;
    padding: 24px 16px;
    margin-top: 40px;
    color: var(--text-color);
}

.site-footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.site-footer p {
    margin: 0;
    color: rgba(224, 224, 224, 0.86);
    font-size: 0.95rem;
}

.site-footer p strong {
    color: var(--accent-color);
}

.enlist-section {
    text-align: center;
    margin-top: 20px;
}

.enlist-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.enlist-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    color: var(--bg-color);
}

/* Music Toggle Button */
.music-toggle {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.music-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

@media screen and (max-width: 768px) {
    .music-toggle {
        margin-right: 15px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

.site-footer {
    background: var(--nav-gradient);
    border-top: 2px solid var(--nav-border);
    text-align: center;
    padding: 24px 16px;
    margin-top: 40px;
    color: var(--text-color);
}

.site-footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.site-footer p {
    margin: 0;
    color: rgba(224, 224, 224, 0.86);
    font-size: 0.95rem;
}

.site-footer p strong {
    color: var(--accent-color);
}

.faq-section summary:before {
    content: "▶";
    display: inline-block;
    margin-right: 10px;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

.faq-section details[open] summary:before {
    transform: rotate(90deg);
}

.faq-section p {
    margin-top: 10px;
    color: #f0f0d8;
    line-height: 1.6;
}

ul { margin-left: 1.5rem; margin-bottom: 1rem; }

a, a:link, a:visited {
    color: #ffffff;
}

a:hover {
    color: #d4af37;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 60px;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links li { margin: 1.5rem 0; }

    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; }
    
    /* Burger Animation */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
}