/* Base Styles */
:root {
    --primary-white: #ffffff;
    --primary-black: #000000;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.5);
    --transition-smooth: 0.3s ease;
}

@keyframes nh-bg-zoom {
    0%   { transform: scale(1.25); }
    100% { transform: scale(1); }
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    background: #0a0a0a;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(to bottom,
                rgba(0,0,0,0) 0%,
                rgba(0,0,0,0.6) 60%,
                rgba(0,0,0,0.9) 100%),
                url("../images/forge-maps/Tahira Temple/3.efee8ef56016.png") center / cover no-repeat;
    background-attachment: fixed;
    filter: grayscale(0%) brightness(1);
    animation: nh-bg-zoom 4s ease-out forwards;
    transform-origin: center;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: none;
}

.about-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    position: relative;
    min-height: 100vh;
}

/* Common Section Styles */
section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

section:not(.hero) {
    position: relative;
    z-index: 10;
    margin: 0 auto 80px auto;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

section:not(.hero):last-child {
    margin-bottom: 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.section-emblem {
    height: 32px;
    width: 32px;
    margin-bottom: 20px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 80px;
}

.hero-content h1 {
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--accent-gold) 0%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 100%);
    transform: translateX(-50%);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    display: flex;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    display: flex;
    justify-content: flex-end;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--accent-gold);
    border: 3px solid rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-marker.active {
    background: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.2);
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.timeline-content:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.timeline-date {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
}

.timeline-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
    margin: 0;
}

.timeline-content.expanded .timeline-description {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.timeline-description p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pillar-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.pillar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.pillar-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pillar-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Division Cards */
.division-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.division-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.division-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.division-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
}

.division-card:hover {
    transform: translateY(-10px);
}

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

.card-content h3 {
    margin: 0 0 15px;
    font-size: 1.6rem;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.division-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.division-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Community Stats */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 1rem;
}

/* Leadership Section */
.leadership-tiers {
    max-width: 1000px;
    margin: 0 auto;
}

.tier {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.tier:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.tier.chancellor {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    text-align: center;
}

.tier.chancellor p {
    text-align: center;
    margin-top: 15px;
}

.command-section {
    margin-bottom: 30px;
}

.command-section:last-child {
    margin-bottom: 0;
}

.command-section h4 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ranks {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rank img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-light);
    transition: var(--transition-smooth);
}

.rank:hover img {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.rank span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* CTA Section */
.cta {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn.primary {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn.secondary:hover {
    background: var(--text-primary);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .pillar-tags {
        display: none;
    }

    .division-card {
        min-width: 100%;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .timeline-content {
        padding: 20px;
    }

    .pillar-card {
        padding: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .rank img {
        width: 50px;
        height: 50px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.introduction {
    margin-top: 0 !important;
}

.introduction .section-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 1000px;
    margin-bottom: 0;
}

.introduction .section-header {
    margin-bottom: 25px;
}

.introduction .section-header h2 {
    font-size: 3rem;
    letter-spacing: 0.15em;
} 