/* ===== RESET & VARIABLES ===== */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #dc2626;
    --accent-color: #fbbf24;
    --dark-bg: #0f172a;
    --dark-bg-2: #1e293b;
    --dark-bg-3: #334155;
    --light-text: #f1f5f9;
    --gray-text: #cbd5e1;
    --success: #10b981;
    --success-color: #10b981;
    --error: #ef4444;
    --danger-color: #ef4444;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== IMAGE PROTECTION ===== */
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

img::selection {
    background: transparent;
}

/* Prevent right-click context menu on images */
img {
    -webkit-touch-callout: none;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid var(--primary-color);
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    animation: rotateIn 1s ease-out;
}

.nav-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--light-text);
}

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

.nav-link.active {
    color: var(--light-text);
    text-shadow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color),
                0 0 20px var(--primary-color);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-bg-2);
    border: 1px solid var(--dark-bg-4);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-link:hover {
    background: var(--dark-bg-3);
    color: var(--light-text);
    padding-left: 2rem;
}

.nav-dropdown-link.active {
    color: var(--gold);
    background: var(--dark-bg-3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.nav-dropdown-link.disabled {
    color: var(--dark-bg-4);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.nav-dropdown-link.disabled:hover {
    background: transparent;
    padding-left: 1.5rem;
}

.nav-dropdown-link.disabled i {
    font-size: 0.75em;
    margin-left: 0.5rem;
}

.nav-login {
    background: var(--primary-color);
    padding: 0.6rem 1.5rem !important;
    border-radius: 5px;
    color: var(--light-text) !important;
}

.nav-login::after {
    display: none;
}

.nav-login:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    overflow: hidden;
}

/* Hero Image Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
    margin-bottom: 5rem; /* provide space under buttons so arrows/indicators don't overlap even when bouncing */
}

/* Ensure hero content (buttons) sits above the scroll indicator chevron */
.hero-content {
    position: relative;
    z-index: 5;
}
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

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

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

.btn-danger {
    background: var(--secondary-color);
    color: var(--light-text);
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-3px);
}

.btn-success {
    background: var(--success);
    color: var(--light-text);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
}

.btn-warning {
    background: var(--accent-color);
    color: var(--dark-bg);
}

.btn-warning:hover {
    background: #f59e0b;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-logout {
    background: var(--secondary-color);
    color: var(--light-text);
}

.btn-logout:hover {
    background: #b91c1c;
}

/* ===== TABLES ===== */
.dashboard-table-container {
    background: var(--dark-bg-2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--dark-bg-3);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead {
    background: var(--dark-bg-3);
}

.dashboard-table th {
    padding: 1rem;
    text-align: left;
    color: var(--light-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.dashboard-table tbody tr {
    border-bottom: 1px solid var(--dark-bg-3);
    transition: var(--transition);
}

.dashboard-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.dashboard-table tbody tr:last-child {
    border-bottom: none;
}

.dashboard-table td {
    padding: 1rem;
    color: var(--gray-text);
}

.dashboard-table td button {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Audit log action colors */
.text-success {
    color: #28a745;
    font-weight: 600;
}

.text-danger {
    color: #dc3545;
    font-weight: 600;
}

.text-warning {
    color: #ffc107;
    font-weight: 600;
}

.text-info {
    color: #17a2b8;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    /* keep the scroll arrow behind interactive buttons to avoid overlap */
    z-index: 0;
}

.scroll-indicator:hover {
    color: var(--primary-light);
    transform: translateX(-50%) scale(1.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 4rem 0;
    background: var(--dark-bg-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--dark-bg-3);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-light);
}

.stat-card-highlight {
    background: linear-gradient(135deg, var(--dark-bg-3) 0%, var(--primary-dark) 100%);
    border-color: var(--accent-color);
}

.stat-card-highlight:hover {
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.stat-card-highlight .stat-icon {
    color: var(--accent-color);
}

.stat-number {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.2;
    max-width: 100%;
}

.stat-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    min-height: 2rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SUBDIVISIONS SECTION ===== */
.subdiv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subdiv-card {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.subdiv-card-inner {
    background: var(--dark-bg-2);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.2);
    height: 100%;
}

.subdiv-card:hover .subdiv-card-inner {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-light);
}

.subdiv-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.3));
    transition: var(--transition);
}

.subdiv-card:hover .subdiv-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.5));
}

.subdiv-logo-small {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
}

.subdiv-card-inner h3 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.subdiv-preview {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subdiv-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}

.subdiv-card:hover .subdiv-cta {
    color: var(--accent-color);
    transform: translateX(5px);
}

.subdiv-cta::after {
    content: '→';
    font-size: 1.2rem;
}

/* Subdivision Detail Page */
.subdiv-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 2px solid var(--dark-bg-3);
    margin-bottom: 3rem;
}

.subdiv-hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.4));
}

.subdiv-hero h1 {
    font-size: 3rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.subdiv-preview-large {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.8;
}

.subdiv-body h2 {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.subdiv-body h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.subdiv-body p,
.subdiv-body ul {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.subdiv-body ul {
    padding-left: 2rem;
}

.subdiv-body li {
    margin-bottom: 0.75rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--dark-bg-2);
    border-radius: 8px;
    transition: var(--transition);
    margin-top: 2rem;
}

.btn-back:hover {
    background: var(--primary-color);
    transform: translateX(-5px);
}

.btn-back::before {
    content: '←';
    font-size: 1.2rem;
}

/* Dashboard Subdivision Cards */
.dashboard-card .subdiv-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.dashboard-card .subdiv-logo-small {
    flex-shrink: 0;
}

/* ===== SECTION STYLING ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
}

/* ===== MISSION SECTION ===== */
.mission-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.mission-content {
    display: grid;
    gap: 3rem;
}

.mission-statement {
    background: linear-gradient(135deg, var(--dark-bg-2) 0%, var(--dark-bg-3) 100%);
    padding: 3rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-light);
}

.mission-statement .statement-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.statement-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.3));
}

.mission-statement .statement-header h3 {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.mission-statement .statement-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 0;
    border-left: 3px solid var(--primary-light);
    padding-left: 1.5rem;
}

.colonel-statement {
    background: linear-gradient(135deg, var(--dark-bg-2) 0%, var(--dark-bg-3) 100%);
    padding: 3rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
}

.statement-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.statement-insignia {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.statement-header h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.statement-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-light);
    padding-left: 1.5rem;
}

.statement-author {
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* ===== HIGH COMMAND SECTION ===== */
.high-command-section {
    padding: 6rem 0;
    background: var(--dark-bg-2);
}

.high-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.command-card {
    background: var(--dark-bg-3);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: fadeIn 0.6s ease-out;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.command-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-light);
}

.command-card:active {
    transform: translateY(-5px);
}

.command-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    text-align: center;
}

.command-insignia {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.command-rank {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.command-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light-text);
}

.command-body {
    padding: 1.5rem;
}

.command-statement {
    font-style: italic;
    color: var(--gray-text);
    line-height: 1.6;
}

/* ===== HC PROFILES SECTION ===== */
.hc-profiles-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hc-profile-card {
    background: linear-gradient(135deg, var(--dark-bg-2) 0%, var(--dark-bg) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
}

.hc-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hc-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
    border-color: var(--accent-color);
}

.hc-profile-card:hover::before {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-5px) scale(1);
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 25px 70px rgba(255, 215, 0, 0.4);
    }
}

.hc-profile-image {
    width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hc-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hc-profile-card:hover .hc-profile-image img {
    transform: scale(1.05);
}

.hc-profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.hc-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.hc-profile-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--light-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.hc-profile-rank-badge {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--accent-color);
}

.hc-profile-bio {
    color: var(--gray-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.hc-profile-bio p {
    margin: 0.8rem 0;
}

.hc-profile-bio ul,
.hc-profile-bio ol {
    margin: 0.8rem 0;
    padding-left: 2rem;
}

.hc-profile-bio strong {
    color: var(--light-text);
}

@media (max-width: 968px) {
    .hc-profile-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .hc-profile-image {
        width: 100%;
        height: 350px;
        margin: 0 auto;
    }

    .hc-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Modal responsive styling */
    .modal-large {
        max-width: 95%;
        width: 95%;
    }

    #profileModalBody > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #profileModalBody img {
        max-width: 100% !important;
    }
}

/* ===== MEETINGS SECTION ===== */
.meetings-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.meetings-grid {
    display: grid;
    gap: 2rem;
}

.meeting-card {
    background: var(--dark-bg-2);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-light);
    transition: var(--transition);
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.meeting-card:hover {
    transform: translateX(10px);
    box-shadow: var(--card-shadow);
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.meeting-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.meeting-date {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meeting-notes {
    color: var(--gray-text);
    line-height: 1.8;
    white-space: pre-line;
}

.meeting-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--dark-bg-2);
    border-radius: 10px;
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--light-text);
    font-weight: 600;
    font-size: 1rem;
    min-width: 80px;
    text-align: center;
}

/* ===== REQUIREMENTS SECTION ===== */
.requirements-section {
    padding: 6rem 0;
    background: var(--dark-bg-2);
}

.requirements-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.requirement-card {
    background: var(--dark-bg-3);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.requirement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.requirement-step {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: var(--light-text);
}

.requirement-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.requirement-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.requirement-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-top: 1rem;
}

/* ===== LINKS SECTION ===== */
.links-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.link-card {
    background: var(--dark-bg-2);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-light);
}

.link-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.link-card h3 {
    color: var(--light-text);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--gray-text);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg-2);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-text);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-bg-3);
    color: var(--gray-text);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    font-size: 3rem;
    color: var(--primary-light);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-card {
    background: var(--dark-bg-2);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--light-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--dark-bg-3);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login {
    width: 100%;
    margin-top: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--primary-light);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* ===== DASHBOARD ===== */
.dashboard-page {
    background: var(--dark-bg);
}

.dashboard-nav {
    background: var(--dark-bg-2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.dashboard-nav-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.btn-logout {
    background: var(--secondary-color);
    color: var(--light-text);
}

.btn-logout:hover {
    background: #b91c1c;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 250px;
    background: var(--dark-bg-2);
    padding: 2rem 0;
    border-right: 1px solid var(--dark-bg-3);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-text);
    font-weight: 500;
}

.sidebar-item:hover {
    background: var(--dark-bg-3);
    color: var(--light-text);
}

.sidebar-item.active {
    background: var(--primary-color);
    color: var(--light-text);
    border-right: 4px solid var(--primary-light);
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header-dash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-dash h2 {
    font-size: 2rem;
    color: var(--light-text);
}

.dashboard-cards {
    display: grid;
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--dark-bg-2);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--dark-bg-3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: var(--transition);
}

.dashboard-card:hover {
    border-color: var(--primary-light);
}

.dashboard-card .card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
    gap: 1rem;
}

.dashboard-card .card-info {
    flex: 1;
}

.dashboard-card .card-info p {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.dashboard-card .card-info .date-added {
    font-size: 0.85rem;
    color: var(--dark-bg-3);
    margin-top: 0.5rem;
}

.dashboard-card .card-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-image-preview {
    width: 150px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 2px solid var(--dark-bg-3);
}

.dashboard-card-content h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.dashboard-card-content p {
    color: var(--gray-text);
    margin-bottom: 0.3rem;
}

.dashboard-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background: var(--primary-color);
    color: var(--light-text);
}

.btn-edit:hover {
    background: var(--primary-light);
}

.btn-delete {
    background: var(--secondary-color);
    color: var(--light-text);
}

.btn-delete:hover {
    background: #b91c1c;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dark-bg-2);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--card-shadow);
    animation: slideInDown 0.3s ease-out;
}

.modal-large {
    max-width: 900px;
}

.modal-large {
    max-width: 900px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-bg-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--light-text);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-text);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--light-text);
}

.modal-content form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* ===== RICH TEXT EDITOR ===== */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--dark-bg-3);
    border: 1px solid var(--dark-bg-4);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.editor-btn {
    background: var(--dark-bg-2);
    border: 1px solid var(--dark-bg-4);
    color: var(--gray-text);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.editor-btn:hover {
    background: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.editor-btn.active {
    background: var(--primary-color);
    color: var(--light-text);
}

.editor-select {
    background: var(--dark-bg-2);
    border: 1px solid var(--dark-bg-4);
    color: var(--gray-text);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-primary);
}

.editor-color {
    width: 40px;
    height: 32px;
    border: 1px solid var(--dark-bg-4);
    border-radius: 5px;
    cursor: pointer;
    background: var(--dark-bg-2);
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--dark-bg-4);
}

.rich-editor {
    min-height: 300px;
    padding: 1rem;
    background: var(--dark-bg-2);
    border: 1px solid var(--dark-bg-4);
    border-radius: 0 0 8px 8px;
    color: var(--light-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 500px;
}

.rich-editor:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rich-editor:empty:before {
    content: attr(placeholder);
    color: var(--gray-text);
    font-style: italic;
}

.rich-editor p {
    margin: 0.5rem 0;
}

.rich-editor ul, .rich-editor ol {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.color-picker-btn {
    position: relative;
    overflow: hidden;
}

.color-picker-btn input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-picker-btn i {
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--dark-bg-2);
        width: 100%;
        padding: 2rem;
        transition: var(--transition);
        border-top: 1px solid var(--dark-bg-3);
        align-items: flex-start;
    }

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

    .nav-toggle {
        display: flex;
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--dark-bg-3);
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 500px;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown.active .nav-dropdown-toggle i {
        transform: rotate(180deg);
    }

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

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

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

    .dashboard-sidebar {
        position: fixed;
        left: -250px;
        height: 100%;
        z-index: 99;
        transition: var(--transition);
    }

    .dashboard-sidebar.active {
        left: 0;
    }

    .stats-grid,
    .high-command-grid,
    .requirements-content,
    .links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .hero-logo {
        width: 100px;
        height: 100px;
    }

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

/* ===== GALLERY PAGE ===== */
.gallery-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    margin-top: 80px;
    overflow: hidden;
}

.gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(220, 38, 38, 0.15) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
}

.gallery-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.gallery-badge {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    animation: float 3s ease-in-out infinite;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
}

.gallery-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.gallery-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--gray-text);
}

.gallery-stats i {
    color: var(--primary-color);
}

.gallery-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--dark-bg-2);
    border: 2px solid var(--dark-bg-3);
    border-radius: 8px;
    color: var(--light-text);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: var(--dark-bg-3);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-image::before {
    opacity: 1;
}

.gallery-item:hover .gallery-item-image {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-item-info p {
    font-size: 0.9rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-item-expand {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    background: rgba(30, 58, 138, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
}

.gallery-item:hover .gallery-item-expand {
    opacity: 1;
    transform: scale(1);
}

.gallery-item-expand:hover {
    background: var(--primary-color);
    border-color: var(--primary-light);
    transform: scale(1.1);
}

.gallery-loading,
.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--gray-text);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--dark-bg-3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--dark-bg-3);
    margin-bottom: 1rem;
}

.gallery-empty p {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-empty small {
    font-size: 0.9rem;
    color: var(--dark-bg-3);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: var(--gray-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(30, 58, 138, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-light);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--dark-bg-3);
}

/* Credits Section */
.credits-section {
    padding: 4rem 0;
    background: var(--dark-bg-2);
}

.credits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.credits-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.credits-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.credit-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--dark-bg-3);
    text-align: center;
    transition: var(--transition);
}

.credit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.credit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.credit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

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

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== SNOW EFFECT ===== */
@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(25vh) translateX(10px);
    }
    50% {
        transform: translateY(50vh) translateX(-10px);
    }
    75% {
        transform: translateY(75vh) translateX(5px);
    }
    100% {
        transform: translateY(100vh) translateX(0);
    }
}

#snowContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}
