/* --- SYSTEM CORE VARIABLES --- */
:root {
    --bg-body: #050505;
    --bg-card: rgba(12, 12, 12, 0.92);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent: #00fa1d; 
    --radius: 0px;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* --- BACKGROUND ENGINE --- */
#canvas-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: #000; opacity: 0.35; }
.bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: linear-gradient(180deg, transparent 0%, var(--bg-body) 100%); pointer-events: none; }

/* --- UI: NAVIGATION --- */
.navbar { background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 250, 29, 0.2); z-index: 1000; }
.company-name { font-family: 'Fira Code', monospace; font-weight: 700; color: var(--accent); letter-spacing: 1px; }

/* --- UI: BUTTON STANDARDS --- */
.btn-social, .btn-terminal, .btn-email-me {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 48px;
    white-space: nowrap;
}

.btn-social:hover, .btn-email-me:hover { transform: translateY(-3px); color: white !important; }

.btn-linkedin { background: #0077b5; color: white !important; }
.btn-github { background: #24292e; color: white !important; }
.btn-x { background: #000000; border: 1px solid #333; color: white !important; }
.btn-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white !important; }

.btn-email-me { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: white !important; }
.btn-email-me:hover { border-color: var(--accent); background: rgba(0, 250, 29, 0.1); box-shadow: 0 0 15px rgba(0, 250, 29, 0.2); }

.btn-terminal { width: 100%; background: rgba(0, 250, 29, 0.05); color: var(--accent); border-color: var(--accent); }
.btn-terminal:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent); }

/* --- IMAGE POPUP (LIGHTBOX) --- */
#cyberLightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(15px);
    z-index: 9999; display: none; align-items: center; justify-content: center;
    cursor: zoom-out; animation: fadeIn 0.3s ease;
}
#cyberLightbox.active { display: flex; }
.lightbox-container {
    max-width: 95%; max-height: 95%; position: relative;
    border: 1px solid var(--accent); background: #000; padding: 5px;
}
.lightbox-img { width: auto; height: auto; max-width: 100%; max-height: 90vh; object-fit: contain; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- TYPEWRITER --- */
.typewriter-trigger { white-space: pre-wrap; word-wrap: break-word; }
.typewriter::after { content: '_'; animation: blink 0.8s infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* --- COMPONENT: HERO --- */
.hero-wrapper { min-height: 85vh; display: flex; align-items: center; padding-top: 100px; padding-bottom: 50px; }
.hero-avatar-giant {
    width: 100%; max-width: 380px; aspect-ratio: 1/1; object-fit: cover;
    border: 1px solid #333; padding: 10px; background: #111; transition: var(--transition);
    display: block; margin: 0 auto;
}
.hero-avatar-giant:hover { border-color: var(--accent); box-shadow: 0 0 30px rgba(0, 250, 29, 0.2); }
.hero-name-giant { font-size: 5.5vw; font-weight: 900; line-height: 0.85; text-transform: uppercase; letter-spacing: -0.03em; }
.hero-job-label { font-family: 'Fira Code', monospace; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; display: block; font-size: 0.9rem; }
.hero-bio { font-size: 1.1rem; color: #ffffff; max-width: 550px; border-left: 2px solid var(--accent); padding-left: 1.5rem; }

/* --- COMPONENT: HORIZONTAL SLIDER --- */
.section-feed-container { position: relative; width: 100%; margin: 0 auto; }
.section-feed { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; gap: 3rem; padding: 4rem 0; scrollbar-width: none; }
.section-feed::-webkit-scrollbar { display: none; }

.feed-card {
    flex: 0 0 calc(50% - 1.5rem); 
    min-width: 450px; background: var(--bg-card); border: 1px solid #1a1a1a;
    display: flex; flex-direction: column; 
    opacity: 0.1; transform: scale(0.9); filter: blur(4px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    backdrop-filter: blur(8px);
}
.feed-card.in-focus { opacity: 1; transform: scale(1); filter: blur(0px); border-color: #333; }

.card-media { height: 320px; width: 100%; overflow: hidden; background: #000; position: relative; }
.media-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.media-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.5s; cursor: zoom-in; }

.mini-nav {
    position: absolute; bottom: 15px; right: 15px; z-index: 10;
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.8); padding: 5px 12px; border: 1px solid var(--accent);
}
.mini-nav button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 1rem; padding: 0; }
.media-counter { font-family: 'Fira Code', monospace; color: white; font-size: 0.7rem; font-weight: bold; }

.card-body { padding: 3.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.1; color: #fff; }
.card-text { color: #ffffff !important; font-size: 1.05rem; line-height: 1.6; }

.nav-ctrl {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 100;
    background: var(--bg-body); color: var(--accent); border: 1px solid var(--accent);
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.8rem; transition: 0.3s;
}
.nav-ctrl:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent); }
.prev-btn { left: -80px; }
.next-btn { right: -80px; }

/* --- COMPONENT: DETAIL PAGE (REAL SIZE FIX) --- */
.detail-card {
    background: var(--bg-card); border: 1px solid var(--accent);
    padding: 4rem; margin-top: 30px; backdrop-filter: blur(15px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}
.vault-container {
    width: 100%;
    min-height: 300px; /* Minimum height for small images */
    height: auto;      /* Grow based on content */
    background: #000;
    border: 1px solid #333;
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}
.media-slide { 
    display: none; 
    width: 100%; 
    justify-content: center; 
    align-items: center;
}
.media-slide.active { display: flex; }
.media-slide img { 
    width: auto; 
    height: auto; 
    max-width: 100%; 
    max-height: 85vh; /* Prevents extremely tall images from breaking the layout */
    object-fit: contain; 
    cursor: zoom-in; 
}

.data-label { color: var(--accent); font-family: 'Fira Code', monospace; font-size: 0.9rem; letter-spacing: 1px; display: block; margin-bottom: 0.5rem; opacity: 0.9; }
.vault-nav { position: absolute; bottom: 20px; right: 20px; z-index: 50; background: rgba(0,0,0,0.9); border: 1px solid var(--accent); padding: 8px 15px; display: flex; align-items: center; gap: 15px; }
.back-nav-btn { font-family: 'Fira Code', monospace; color: var(--accent); text-decoration: none; border: 1px solid var(--accent); padding: 10px 20px; font-size: 0.75rem; transition: 0.3s; clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%); }
.back-nav-btn:hover { background: var(--accent); color: #000; }

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .hero-wrapper .row { flex-direction: column-reverse; }
    .hero-name-giant { font-size: 3.5rem; }
    .hero-bio { border-left: none; padding-left: 0; }
    .section-feed { gap: 1.5rem; }
    .feed-card { flex: 0 0 90%; min-width: 300px; opacity: 1; transform: none; filter: none; }
    .nav-ctrl { display: none; }
}