@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
    --obsidian: #060606;
    --army: #4F6F52;
    --army-light: #6B8F6E;
    --army-dark: #3A5440;
    --teal: #A8DADC;
    --silver: #C0C0C0;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background: var(--obsidian);
    color: #fff;
    font-family: var(--font);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 111, 82, 0.3);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 111, 82, 0.6);
}

/* ── Gridlines Background ── */
.gridlines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(79, 111, 82, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 111, 82, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

.gridlines::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 111, 82, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(79, 111, 82, 0.04) 0%, transparent 50%);
}

/* ── Glass ── */
.glass {
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(.4, 0, .2, 1);
}

.glass-card:hover {
    border-color: rgba(79, 111, 82, 0.5);
    background: rgba(79, 111, 82, 0.06);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(79, 111, 82, 0.1);
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.4s ease, background 0.3s ease;
}

.nav.scrolled {
    background: rgba(6, 6, 6, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 111, 82, 0.1);
}

.nav.hidden {
    transform: translateY(-110%);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    color: #fff;
    text-decoration: none;
}

.nav-brand span {
    color: var(--army);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--army-light);
}

.nav-cta {
    padding: 10px 24px;
    border: 1px solid rgba(79, 111, 82, 0.4);
    border-radius: 99px;
    color: var(--army-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    background: rgba(79, 111, 82, 0.08);
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--army);
    color: #fff;
    box-shadow: 0 0 20px rgba(79, 111, 82, 0.3);
}

/* Mobile menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 6, 6, 0.97);
    backdrop-filter: blur(30px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--army-light);
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 10;
}

.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid rgba(79, 111, 82, 0.3);
    padding: 3px;
    background: var(--surface);
    margin-bottom: 40px;
    box-shadow: 0 0 40px rgba(79, 111, 82, 0.12);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    filter: grayscale(30%);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--army-light);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    max-width: 560px;
    font-weight: 300;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    padding: 14px 36px;
    background: var(--army);
    color: #fff;
    border: none;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(79, 111, 82, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 111, 82, 0.45);
    background: var(--army-light);
}

.btn-outline {
    padding: 14px 36px;
    background: transparent;
    color: var(--silver);
    border: 1px solid rgba(192, 192, 192, 0.3);
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--army);
    color: var(--army-light);
    transform: translateY(-2px);
}

/* ── Section Common ── */
.section {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-bar {
    width: 60px;
    height: 3px;
    background: var(--army);
    border-radius: 99px;
    margin-bottom: 16px;
}

.section-desc {
    color: rgba(255, 255, 255, 0.4);
    max-width: 560px;
    font-weight: 300;
    margin-bottom: 48px;
}

/* ── Projects Grid ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    padding: 32px;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-card p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(79, 111, 82, 0.12);
    color: var(--army-light);
}

/* ── Certifications Grid ── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cert-card {
    padding: 32px;
}

.cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s;
}

.cert-icon.green {
    background: rgba(79, 111, 82, 0.12);
    color: var(--army-light);
}

.cert-icon.teal {
    background: rgba(168, 218, 220, 0.1);
    color: var(--teal);
}

.glass-card:hover .cert-icon.green {
    background: var(--army);
    color: #fff;
}

.glass-card:hover .cert-icon.teal {
    background: var(--teal);
    color: #000;
}

.cert-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cert-card .issuer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.cert-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
}

/* ═══════ GALLERY — One Image at a Time ═══════ */
.gallery-section {
    position: relative;
    z-index: 10;
    padding: 100px 0;
    overflow: hidden;
}

.gallery-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.gallery-track-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.gallery-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 20px;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 500px;
    background: #0a0a0a;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s ease;
}

.gallery-slide:hover img {
    transform: scale(1.04);
}

.gallery-slide .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.gallery-slide:hover .overlay {
    transform: translateY(0);
}

.overlay p {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

/* All slides are uniform full width */
.slide-tall,
.slide-wide,
.slide-square {
    width: 100%;
}

/* Arrow buttons */
.gallery-arrows {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
    align-items: center;
}

.gallery-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(79, 111, 82, 0.3);
    background: rgba(79, 111, 82, 0.08);
    color: var(--army-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.gallery-arrow:hover {
    background: var(--army);
    color: #fff;
    border-color: var(--army);
}

/* Scroll indicator dots */
.gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(79, 111, 82, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-dot.active {
    background: var(--army);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .gallery-slide {
        height: 350px;
    }

    .gallery-track-wrapper {
        padding: 0 16px;
    }
}

/* ── Connect ── */
.connect-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.connect-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
}

.connect-btn.glass-card {
    color: rgba(255, 255, 255, 0.7);
}

.connect-btn.glass-card:hover {
    color: var(--army-light);
}

.connect-btn.filled {
    background: var(--army);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(79, 111, 82, 0.25);
}

.connect-btn.filled:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(79, 111, 82, 0.45);
    background: var(--army-light);
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(79, 111, 82, 0.1);
    background: rgba(6, 6, 6, 1);
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
}

.footer-brand span {
    color: var(--army);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--army-light);
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--army-light);
}

/* ── Fade-in animation ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}