* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Rajdhani', sans-serif;
    background-color: #030712;
    color: #eef2ff;
    overflow-x: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030712;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.crest-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #0A2463, #1E3A8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.2s infinite;
}

.crest-loader::before {
    content: "★";
    font-size: 45px;
    color: white;
}

.loader-bar {
    width: 180px;
    height: 4px;
    background: #1f2937;
    margin: 25px auto 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: #0A2463;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0A0F1A 0%, #010101 100%);
    border-right: 1px solid #0A2463;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo-area {
    text-align: center;
    border-bottom: 2px solid #0A2463;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.crest-mini {
    background: #0A2463;
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.crest-mini .star {
    font-size: 38px;
    color: white;
    position: absolute;
}

.crest-mini .grb-text {
    font-size: 24px;
    font-weight: 900;
    color: white;
    z-index: 2;
}

.logo-area h1 {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, #8CB2FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tab-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
}

.tab-btn i {
    width: 28px;
    font-size: 1.3rem;
    color: #5f7fbf;
}

.tab-btn:hover {
    background: #0A246322;
    color: white;
    transform: translateX(6px);
}

.tab-btn.active {
    background: #0A2463;
    color: white;
    box-shadow: 0 6px 14px rgba(10,36,99,0.5);
}

.tab-btn.active i {
    color: white;
}

.social-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.4rem;
    color: #5a6e8f;
}

.social-footer i {
    transition: 0.2s;
    cursor: pointer;
}

.social-footer i:hover {
    color: #0A2463;
    transform: scale(1.2);
}

.main-content {
    flex: 1;
    background: #05080f;
    padding: 2rem 2.2rem;
    overflow-y: auto;
}

.hero-banner {
    background: linear-gradient(95deg, #0A0F1A 0%, #02132e 100%);
    border-radius: 28px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid #0A2463;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(10,36,99,0.3), black);
    border-radius: 28px;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 1rem 0;
    background: linear-gradient(to right, #fff, #b3cdff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.hero-stats span {
    background: rgba(0,0,0,0.6);
    padding: 6px 18px;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    border-left: 3px solid #0A2463;
}

.info-cards {
    display: flex;
    gap: 1.8rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.card {
    background: #10131f;
    padding: 1.5rem;
    border-radius: 24px;
    flex: 1;
    border: 1px solid #1e2a47;
}

.card i {
    font-size: 2.2rem;
    color: #0A2463;
    margin-bottom: 0.8rem;
}

.welcome-text {
    background: #0b1120;
    padding: 1.5rem;
    border-radius: 28px;
    border-left: 6px solid #0A2463;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: #0A2463;
    margin-top: 8px;
    border-radius: 4px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    background: #0e1424;
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    display: flex;
    align-items: baseline;
    gap: 2rem;
    flex-wrap: wrap;
    border-right: 4px solid #0A2463;
}

.year {
    font-size: 2rem;
    font-weight: 800;
    color: #0A2463;
    min-width: 100px;
}

.legacy-box {
    margin-top: 2rem;
    background: radial-gradient(ellipse at 20% 30%, #0a1230, #010101);
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid #0A2463;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
    margin: 1.5rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s, box-shadow 0.3s;
    aspect-ratio: 4/3;
    border: 1px solid #1e2c47;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item .overlay {
    position: absolute