/* assets/css/styles.css */

/* 1. CORE VARIABLES & RESET */
:root {
    --bg-color: #0f1411;
    /* Deep Jungle Dark - Almost Black */
    --text-main: #f2f2f2;
    /* Soft White */
    --text-muted: #8a9990;
    /* Muted Jungle Grey */
    --gold: #c8a951;
    /* Cinematic Old Gold */
    --gold-dim: rgba(200, 169, 81, 0.3);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth cinematic easing */
    --transition-slow: 0.6s var(--easing);
    --transition-fast: 0.3s ease-out;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    /* Security measures */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 2. TYPOGRAPHY */
h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.text-gold {
    color: var(--gold) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.small {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* 3. UTILITIES & ACCESSIBILITY */
.reduced-motion * {
    animation: none !important;
    transition: none !important;
}

/* 3.1 ADVANCED SECURITY (Anti-Capture) */
.security-blur {
    filter: blur(40px) !important;
    transition: filter 0.3s ease;
    user-select: none !important;
}

.security-hidden {
    display: none !important;
}

@media print {
    body { 
        display: none !important; 
    }
}

.security-watermark {
    position: fixed;
    z-index: 9999;
    background: rgba(200, 169, 81, 0.05);
    border: 1px solid rgba(200, 169, 81, 0.1);
    color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* 3.5 CINEMATIC LOADER */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080b09;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s var(--easing), visibility 0.8s var(--easing);
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(200, 169, 81, 0.2);
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-title {
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 10px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-family: var(--font-body);
    animation: pulse 2s infinite ease-in-out;
    animation-delay: 0.5s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(200, 169, 81, 0.3); }
}

/* 4. NAVBAR (Glassmorphism + Cinematic) */
.navbar {
    background: rgba(15, 20, 17, 0.95);
    border-bottom: 1px solid var(--gold-dim);
    padding: 1rem 0;
    transition: background 0.3s;
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--gold) !important;
    letter-spacing: 3px;
}

/* 5. HERO SECTION (Full Screen) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient representing deep jungle depth */
    background: radial-gradient(circle at center, #1a261e 0%, var(--bg-color) 80%);
    z-index: -2;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    /* Responsive typography */
    margin-bottom: 1rem;
    /* Subtle gradient on text */
    background: linear-gradient(to bottom, #fff, #c8a951);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 6px;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-cinematic {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 15px 40px;
    letter-spacing: 2px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-cinematic:hover {
    background: rgba(200, 169, 81, 0.1);
    color: #fff;
    box-shadow: 0 0 20px rgba(200, 169, 81, 0.2);
    transform: translateY(-2px);
}

/* 6. CONTENT SECTIONS */
.section-wrapper {
    padding: 8rem 0;
    position: relative;
}

/* 7. DOCUMENTARY VIDEO FRAME */
.video-frame {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* Decorative Gold Lines */
.video-frame::before,
.video-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background: var(--gold);
    top: 50%;
}

.video-frame::before {
    left: -60px;
}

.video-frame::after {
    right: -60px;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 8. GALLERY GRID (Editorial) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--easing), filter 0.5s;
    filter: grayscale(40%) sepia(10%);
}

.gallery-card:hover img {
    transform: scale(1.05);
    /* Subtle smooth zoom */
    filter: grayscale(0%) sepia(0%);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 9. RESOURCES SIDEBAR */
.sidebar-box {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-link {
    display: flex;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.resource-link:hover {
    color: var(--gold);
    padding-left: 5px;
}

.resource-icon {
    width: 40px;
    font-size: 1.1rem;
    color: var(--gold);
    opacity: 0.7;
}

/* 10. MODAL (Lightbox) */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    width: auto;
    background: transparent;
    border: none;
}

.modal-content img {
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

.modal-caption {
    margin-top: 1rem;
    color: var(--text-main);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-family: var(--font-heading);
}

/* 11. AUDIO UI (Removed) */

/* 12. FOOTER (Premium) */
.footer {
    padding: 6rem 0 3rem;
    background: linear-gradient(to bottom, #0a0e0c, #050706);
    text-align: center;
    border-top: 1px solid rgba(200, 169, 81, 0.1);
    position: relative;
    z-index: 10;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    display: block;
    text-decoration: none;
}

.footer-links {
    margin-bottom: 3rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--gold);
}

.footer-social {
    margin-bottom: 2.5rem;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0 12px;
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* 13. GRADUATION SECTION (Marketing) */
.grad-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background: #080b09;
}

.grad-banner {
    background: rgba(200, 169, 81, 0.03);
    border: 1px solid rgba(200, 169, 81, 0.1);
    padding: 4rem;
    position: relative;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.grad-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: #fff;
    font-family: var(--font-heading);
}

.grad-title span {
    color: var(--gold);
    display: block;
    font-size: 0.5em;
    letter-spacing: 8px;
    margin-top: 1rem;
}

.grad-highlight {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    padding: 5px 25px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 4px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(200, 169, 81, 0.2);
}

.grad-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a951' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hover-gold {
    transition: var(--transition-fast);
}

.hover-gold:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(200, 169, 81, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .video-frame::before,
    .video-frame::after {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        letter-spacing: 3px;
        font-size: 0.8rem;
    }

    .sidebar-box {
        border-left: none;
        padding-left: 0;
        margin-top: 3rem;
    }
}

/* Finalize mobile media query properly */

/* 15. LOGIN PAGE STYLES */
.login-card {
    background: rgba(10, 14, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 169, 81, 0.25);
    border-radius: 12px;
    padding: 3.5rem 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.login-card h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(200, 169, 81, 0.2);
}

.code-input-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.code-digit {
    flex: 1;
    width: 0;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--gold);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s var(--easing);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.code-digit:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(200, 169, 81, 0.08);
    box-shadow: 0 0 15px rgba(200, 169, 81, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.code-digit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.code-digit::placeholder {
    color: rgba(255, 255, 255, 0.1);
}

.form-control-cinematic {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    padding: 15px 15px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

.form-control-cinematic:focus {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(200, 169, 81, 0.2);
    border-color: var(--gold);
    color: #fff;
    outline: none;
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

@media (max-width: 576px) {
    .login-card {
        padding: 2.5rem 1.5rem;
        background: rgba(10, 14, 12, 0.85);
    }

    .code-input-container {
        gap: 6px;
    }

    .code-digit {
        font-size: 1.4rem;
        border-radius: 6px;
    }
}