@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Roboto+Mono:wght@300;400;600;700&display=swap');

:root {
    /* Classy Army Theme */
    --bg-color: #1a1e16;
    /* Deep Army Green */
    --text-color: #e3d5b8;
    /* Bone / Parchment */
    --card-bg: #262c20;
    /* Slightly lighter green */
    --border-color: #aa9c75;
    /* Brass/Goldish */
    --accent-color: #d4af37;
    /* Gold */
    --text-muted: #808a73;
    /* Muted Camo Green */

    --font-heading: 'Black Ops One', cursive;
    --font-body: 'Roboto Mono', monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Keep theme consistent across modes for this specific strong theme */
        --bg-color: #1a1e16;
        --text-color: #e3d5b8;
        --card-bg: #262c20;
        --border-color: #aa9c75;
        --accent-color: #d4af37;
        --text-muted: #808a73;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle texture */
    background-blend-mode: overlay;
}

/* Lenis Recommended CSS */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 1px solid var(--bg-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(26, 30, 22, 0.95);
    border-bottom: 2px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: 0.3s;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    /* Tactical slash */
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: -100%;
        background: var(--card-bg);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: 0.4s ease;
        border-bottom: 4px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 0;
    position: relative;
}

.profile-container {
    position: relative;
    margin-bottom: 30px;
}

.profile-img-wrapper {
    width: 200px;
    height: 200px;
    padding: 5px;
    background: var(--card-bg);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    cursor: pointer;
    /* Tactical Corners using clip-path */
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--text-color);
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--accent-color);
    font-weight: normal;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    /* Slight background to be visible */
    border: 2px solid var(--accent-color);
    /* Bright border */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    /* Bright icon color */
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
    overflow: visible;
    /* Changed from hidden */
    /* clip-path removed for debugging */
}

.social-icon:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Page Containers */
.container {
    padding: 120px 5% 50px;
    min-height: 100vh;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 0 auto 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-bottom: 4px solid var(--border-color);
    display: table;
    padding-bottom: 10px;
    color: var(--text-color);
}

/* About Page */
.about-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-color);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-content::before {
    content: "CLASSIFIED";
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--bg-color);
    color: var(--accent-color);
    padding: 0 10px;
    font-weight: bold;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.about-content strong {
    color: var(--accent-color);
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.gallery-item {
    height: 300px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    box-sizing: border-box;
    transform: scale(0.95);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
    filter: sepia(20%) contrast(1.1);
    /* Slight vintage military look */
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: sepia(0%) contrast(1);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 35px;
    color: var(--accent-color);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 40px;
    cursor: pointer;
    padding: 16px;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-color);
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* GSAP Helper Classes */
.opacity-0 {
    opacity: 0;
}

.translate-y-20 {
    transform: translateY(20px);
}

/* Mobile Optimizations */
/* Mobile Optimizations */
@media (max-width: 768px) {
    .nav-links {
        background: rgba(26, 30, 22, 0.98);
        /* Less transparent on mobile */
        border-bottom: 2px solid var(--accent-color);
        padding-top: 80px;
        /* Give space for fixed header */
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Larger touch targets */
        display: block;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 80px 15px 30px;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        /* Allow content to flow if vertically tight */
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 1rem;
        padding-left: 10px;
        margin-bottom: 30px;
    }

    .profile-img-wrapper {
        width: 160px;
        height: 160px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column on update */
        gap: 20px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .about-content {
        padding: 25px;
    }
}