﻿/* --- 1. CORE THEME & RESET --- */
:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --accent-color: #00ff41;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. NAVIGATION & LOGO --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.code-logo {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.logo-symbol {
    color: var(--accent-color);
}

.logo-text {
    color: #fff;
    font-size: 0.9rem;
    margin: 0 5px;
}

.cursor {
    width: 8px;
    height: 15px;
    background: var(--accent-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.logo-text-full {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-weight: bold;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container for the logo image */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    /*width: 45px;*/ /* Adjust size as needed */
    height: 70px;
    margin-right: 12px;
/*    overflow: hidden;*/
}

/* Ensure the image scales properly */
.nav-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Optional: add a slight glow to match the 'Bits' tech vibe */
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.3));
}

/* Updated logo container layout */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text-full {
    font-family: 'Courier New', monospace; /* Keeping your dev aesthetic */
    font-weight: bold;
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-wrapper {
/*        width: 35px;*/
        height: 60px;
    }

    .logo-text-full {
        font-size: 1.1rem;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .nav-links a {
        color: var(--text-main);
        text-decoration: none;
        font-family: var(--font-mono);
        font-size: 0.8rem;
        text-transform: uppercase;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: var(--accent-color);
        }

.mobile-socials {
    display: none;
}

/* --- 3. HERO & TYPEWRITER --- */
.hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), url('Images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.typewriter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.typewriter-text {
    font-family: var(--font-mono);
    color: var(--accent-color);
    overflow: hidden;
    border-right: .15em solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-color);
    }
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--accent-color);
}

.subtitle {
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- 4. MASONRY GALLERY --- */
.gallery {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-mono);
    color: var(--accent-color);
}

.grid-container {
    column-count: 3;
    column-gap: 20px;
}

.photo-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #222;
    transition: 0.3s;
}

    .photo-card:hover {
        transform: translateY(-8px);
        border-color: var(--accent-color);
        box-shadow: 0 10px 20px rgba(0,255,65,0.1);
    }

    .photo-card img {
        width: 100%;
        height: auto;
        display: block;
    }

.exif-overlay {
    padding: 12px;
    background: #111;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    font-family: var(--font-mono);
}

/* --- 5. VIDEO WINDOW --- */
.video-section {
    padding: 80px 5%;
    background: #080808;
    display: flex;
    justify-content: center;
}

.video-window {
    width: 100%;
    max-width: 850px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.window-header {
    background: #252525;
    padding: 12px;
    display: flex;
    align-items: center;
    position: relative;
}

.window-buttons {
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.window-title {
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    position: absolute;
    left: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* --- 6. FOOTER --- */
.site-footer {
    background: #050505;
    border-top: 1px solid #222;
    padding: 40px 5%;
    font-family: var(--font-mono);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.footer-text {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.social-icons a {
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid #333;
    padding: 6px 12px;
    font-size: 0.75rem;
    margin-left: 10px;
    transition: 0.3s;
}

    .social-icons a:hover {
        border-color: var(--accent-color);
        color: var(--accent-color);
    }

/* --- 7. LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
}

.lightbox img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 1px solid #333;
}

.close-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    color: var(--accent-color);
    font-family: var(--font-mono);
    cursor: pointer;
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    background: rgba(0,0,0,0.5);
}

.download-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 30px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-mono);
    background: rgba(0,255,65,0.05);
    transition: 0.3s;
}

    .download-btn:hover {
        background: var(--accent-color);
        color: #000;
    }

/* --- 8. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .logo-text-full {
        display: none;
    }

    .grid-container {
        column-count: 1;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1100;
    }

    .bar {
        width: 25px;
        height: 2px;
        background: var(--accent-color);
        transition: 0.3s;
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 85%;
        background: #0d0d0d;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
        border-left: 1px solid var(--accent-color);
    }

        .nav-links.active {
            right: 0;
        }

        .nav-links a {
            font-size: 1.5rem;
        }

    .mobile-socials {
        display: flex;
        gap: 15px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #333;
    }

        .mobile-socials a {
            border: 1px solid var(--accent-color);
            padding: 8px 15px;
            font-size: 0.7rem;
        }

    .hero h1 {
        font-size: 2.5rem;
    }
}
/* --- HERO SECTION LAYOUT --- */
.hero {
    padding: 60px 20px;
    background-color: #0a0a0a; /* Dark background to make camera UI pop */
    display: flex;
    justify-content: center;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
}

/* --- CAMERA VIEWFINDER (100x100) --- */
.viewfinder {
    width: 100px;
    height: 100px;
    border: 1px solid #333;
    background: #000;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.viewfinder-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Corner Brackets */
.corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.top-left {
    top: 6px;
    left: 6px;
    border-right: 0;
    border-bottom: 0;
}

.top-right {
    top: 6px;
    right: 6px;
    border-left: 0;
    border-bottom: 0;
}

.bottom-left {
    bottom: 6px;
    left: 6px;
    border-right: 0;
    border-top: 0;
}

.bottom-right {
    bottom: 6px;
    right: 6px;
    border-left: 0;
    border-top: 0;
}

/* REC Indicator */
.rec-group {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rec-dot {
    width: 5px;
    height: 5px;
    background: #ff4136;
    border-radius: 50%;
    animation: blink 1s step-end infinite;
}

.rec-text {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Center Focus Bracket */
.focus-bracket {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    animation: focus-pulse 4s infinite ease-in-out;
}

/* --- IMAGE CYCLING LOGIC --- */
.cycle-inner {
    display: flex;
    height: 100px;
    width: 300%; /* Change to 400% if you have 4 images */
    animation: imageCycle 12s infinite ease-in-out;
}

.cycle-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    filter: brightness(0.8);
}

/* --- TYPOGRAPHY & TEXT --- */
.hero-content {
    text-align: left;
}

h1 {
    font-size: 3rem;
    margin: 10px 0;
    color: #fff;
}

.highlight {
    color: #00ff41; /* Match your microchip green */
}

.subtitle {
    font-family: 'Courier New', monospace;
    color: #888;
    font-size: 1rem;
    letter-spacing: 1px;
}

.code-terminal {
    font-family: 'Courier New', monospace;
    color: #00ff41;
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
@keyframes imageCycle {
    0%, 30% {
        transform: translateX(0);
    }

    33%, 63% {
        transform: translateX(-100px);
    }

    66%, 96% {
        transform: translateX(-200px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes focus-pulse {
    0%, 100% {
        width: 24px;
        height: 24px;
        opacity: 0.3;
    }

    50% {
        width: 18px;
        height: 18px;
        opacity: 0.7;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }
}