/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #1a4d2e;
    --secondary-color: #2d6a4f;
    --accent-color: #b8860b;
    --gold-color: #d4af37;
    --dark-bg: #0a1612;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* ===================================
   Navigation Bar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h3 {
    color: var(--gold-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold-color);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 106, 79, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-color);
    color: var(--gold-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-color);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    display: inline-block;
    background: var(--gold-color);
    color: var(--dark-bg);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--gold-color));
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Overview Section
   =================================== */
.section-overview {
    background: var(--light-bg);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.overview-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.overview-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.overview-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Early Life Section
   =================================== */
.section-early-life {
    background: white;
}

.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.content-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.content-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.info-box {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--gold-color);
}

.info-box h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    padding: 12px 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.timeline-list li:last-child {
    border-bottom: none;
}

/* ===================================
   Academy Section
   =================================== */
.section-academy {
    background: var(--light-bg);
}

.academy-content {
    max-width: 900px;
    margin: 0 auto;
}

.academy-main {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.academy-main h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.academy-main p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.honor-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.honor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.honor-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.honor-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.honor-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.regiment-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    border-radius: 15px;
    color: white;
}

.regiment-info h3 {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.regiment-info p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===================================
   Timeline Section
   =================================== */
.section-career {
    background: white;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--gold-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

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

.timeline-item.highlight .timeline-marker {
    width: 24px;
    height: 24px;
    left: -37px;
    background: var(--accent-color);
}

.timeline-content {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-item.highlight .timeline-content {
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.05), rgba(212, 175, 55, 0.05));
    border-left: 4px solid var(--gold-color);
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-subtitle {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
}

.timeline-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===================================
   Decorations Section
   =================================== */
.section-decorations {
    background: var(--light-bg);
}

.decorations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.decoration-category {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.decoration-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-color);
}

.decoration-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.decoration-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.decoration-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.decoration-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.decoration-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===================================
   Leadership Section
   =================================== */
.section-leadership {
    background: white;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.leadership-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-color), var(--accent-color));
    transition: width 0.3s ease;
}

.leadership-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.leadership-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-color);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.leadership-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.leadership-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Lessons Section
   =================================== */
.section-lessons {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.section-lessons .section-label {
    color: var(--gold-color);
}

.section-lessons .section-header h2 {
    color: white;
}

.lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.lesson-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.lesson-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.lesson-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.lesson-card h3 {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.lesson-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

/* ===================================
   FAQ Section
   =================================== */
.section-faq {
    background: var(--light-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-main h3 {
    color: var(--gold-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.footer-main p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-years {
    font-size: 1.2rem;
    color: var(--gold-color) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-top: 10px !important;
}

.footer-links h4 {
    color: var(--gold-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ===================================
   Profile Section
   =================================== */
.section-profile {
    background: var(--light-bg);
}

.profile-body {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.profile-body p {
    margin-bottom: 20px;
}

.profile-highlight {
    max-width: 900px;
    margin: 40px auto 0;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.profile-highlight h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.profile-highlight > p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.profile-highlight ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.profile-highlight ul li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ===================================
   Narrative Section
   =================================== */
.section-narrative {
    background: white;
}

.narrative-block {
    max-width: 900px;
    margin: 0 auto 50px;
}

.narrative-block h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.narrative-block h4 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.narrative-block p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.narrative-block ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.narrative-block ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ===================================
   Career Overview
   =================================== */
.career-overview {
    max-width: 900px;
    margin: 0 auto 40px;
}

.career-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* ===================================
   Honor & Regiment Lists
   =================================== */
.honor-list,
.regiment-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.honor-list li,
.regiment-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
    line-height: 1.7;
}

.honor-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--gold-color);
    font-size: 1.2rem;
}

.regiment-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* ===================================
   Decorations Intro
   =================================== */
.decorations-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.decorations-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===================================
   Leadership Essay
   =================================== */
.leadership-essay {
    max-width: 900px;
    margin: 50px auto 0;
}

.leadership-essay > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.leadership-essay article {
    margin-bottom: 40px;
}

.leadership-essay article h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.leadership-essay article p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.leadership-essay article ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 15px;
}

.leadership-essay article ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ===================================
   Lessons Essay
   =================================== */
.lessons-essay {
    max-width: 900px;
    margin: 50px auto 0;
}

.lessons-essay article {
    margin-bottom: 40px;
}

.lessons-essay article h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.lessons-essay article p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.lessons-essay article ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 15px;
}

.lessons-essay article ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ===================================
   Conclusion Section
   =================================== */
.section-conclusion {
    background: var(--light-bg);
}

.conclusion-body {
    max-width: 900px;
    margin: 0 auto;
}

.conclusion-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        gap: 15px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .content-row {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .decorations-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .academy-main {
        padding: 25px;
    }

    .honors-grid {
        grid-template-columns: 1fr;
    }

    .leadership-grid,
    .lessons-container {
        grid-template-columns: 1fr;
    }
}
