:root {
    --bg-main: #05100b;
    --bg-secondary: #0d1f17;
    --accent-cyan: #10b981; /* Emerald 500 */
    --accent-purple: #4ade80; /* Green 400 */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.app-container {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(5, 16, 11, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-tabs {
    display: flex;
    gap: 0.5rem;
    border: none;
    background: transparent;
    overflow: visible;
}

.logo-tab {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #ff0080;
    --bg: rgba(5, 16, 11, 0.9);
    --clip: polygon(
        0 0,
        calc(100% - 6px) 0,
        100% 6px,
        100% 100%,
        6px 100%,
        0 calc(100% - 6px)
    );
    
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.25;
    color: var(--text-muted);
    background: var(--bg);
    clip-path: var(--clip);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.6s ease;
    border: none;
}

.logo-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(16, 185, 129, 0.1) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: cyber-btn-shimmer 5s infinite linear;
}

/* Tab Background */
.logo-tab .cyber-tab__bg {
    position: absolute;
    inset: 2px;
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(5, 16, 11, 0.95) 50%,
        rgba(16, 185, 129, 0.1) 100%
    );
    clip-path: var(--clip);
    z-index: -1;
}

/* Animated Borders */
.logo-tab .cyber-tab__borders {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.logo-tab .cyber-tab__borders span {
    position: absolute;
    background: var(--primary);
}

.logo-tab .cyber-tab__borders span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation: cyber-border-top 4s infinite linear;
    transform-origin: left;
}

.logo-tab .cyber-tab__borders span:nth-child(2) {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    animation: cyber-border-right 4s infinite linear;
    animation-delay: 1s;
    transform-origin: top;
}

.logo-tab .cyber-tab__borders span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    animation: cyber-border-bottom 4s infinite linear;
    animation-delay: 2s;
    transform-origin: right;
}

.logo-tab .cyber-tab__borders span:nth-child(4) {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    animation: cyber-border-left 4s infinite linear;
    animation-delay: 3s;
    transform-origin: bottom;
}

/* Scanlines */
.logo-tab .cyber-tab__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    animation: cyber-scanlines 12s infinite linear;
}

/* Noise Effect */
.logo-tab .cyber-tab__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

/* Glitch Text */
.logo-tab .cyber-tab__glitch {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.logo-tab .cyber-tab__glitch::before,
.logo-tab .cyber-tab__glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.logo-tab .cyber-tab__glitch::before {
    color: #ff0080;
    animation: none;
    opacity: 0;
}

.logo-tab .cyber-tab__glitch::after {
    color: #00ffff;
    animation: none;
    opacity: 0;
}

/* Hover Effects */
.logo-tab:hover {
    color: var(--primary);
    text-shadow: 
        0 0 8px var(--primary),
        0 0 16px var(--primary);
    box-shadow:
        0 0 15px rgba(16, 185, 129, 0.4),
        inset 0 0 15px rgba(16, 185, 129, 0.1);
}

.logo-tab:hover .cyber-tab__glitch::before,
.logo-tab:hover .cyber-tab__glitch::after {
    animation: cyber-glitch-subtle 2s infinite;
}

.logo-tab:hover .cyber-tab__borders span {
    animation-duration: 1s;
    background: #fff;
    box-shadow: 0 0 8px var(--primary);
}

.logo-tab:hover .cyber-tab__bg {
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.2) 0%,
        rgba(5, 16, 11, 0.9) 50%,
        rgba(16, 185, 129, 0.2) 100%
    );
}

/* Active State */
.logo-tab.active {
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.3) 0%,
        rgba(16, 185, 129, 0.5) 50%,
        rgba(16, 185, 129, 0.3) 100%
    );
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    box-shadow:
        0 0 20px rgba(16, 185, 129, 0.6),
        inset 0 0 20px rgba(16, 185, 129, 0.2);
}

.logo-tab.active .cyber-tab__bg {
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.4) 0%,
        rgba(16, 185, 129, 0.6) 50%,
        rgba(16, 185, 129, 0.4) 100%
    );
}

.logo-tab.active .cyber-tab__borders span {
    background: #fff;
    box-shadow: 0 0 10px var(--primary);
    animation-duration: 2s;
}

/* Glow animation on idle */
.logo-tab {
    animation: cyber-tab-glow 5s infinite ease-in-out;
}

@keyframes cyber-tab-glow {
    0%, 100% { 
        box-shadow: 
            0 0 3px rgba(16, 185, 129, 0.2),
            inset 0 0 3px rgba(16, 185, 129, 0.05);
    }
    50% { 
        box-shadow: 
            0 0 12px rgba(16, 185, 129, 0.4),
            0 0 24px rgba(16, 185, 129, 0.15),
            inset 0 0 8px rgba(16, 185, 129, 0.08);
    }
}

.logo-tab.active {
    animation: cyber-tab-active-glow 4s infinite ease-in-out;
}

@keyframes cyber-tab-active-glow {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(16, 185, 129, 0.6),
            0 0 30px rgba(16, 185, 129, 0.3),
            inset 0 0 15px rgba(16, 185, 129, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 25px rgba(16, 185, 129, 0.8),
            0 0 50px rgba(16, 185, 129, 0.4),
            inset 0 0 25px rgba(16, 185, 129, 0.3);
    }
}

.cursor {
    display: inline-block;
    -webkit-text-fill-color: var(--accent-cyan);
    color: var(--accent-cyan);
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin-left: 20rem;
}

.nav-links li {
    list-style: none;
}

/* Cyberpunk Navigation Links */
.cyber-nav-link {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #ff0080;
    --bg: rgba(5, 16, 11, 0.9);
    --clip: polygon(
        0 0,
        calc(100% - 6px) 0,
        100% 6px,
        100% 100%,
        6px 100%,
        0 calc(100% - 6px)
    );
    
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.25;
    color: var(--text-muted);
    background: var(--bg);
    clip-path: var(--clip);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.6s ease;
    border: none;
}

.cyber-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(16, 185, 129, 0.1) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: cyber-btn-shimmer 5s infinite linear;
}

/* Nav Link Background */
.cyber-nav-link .cyber-nav-link__bg {
    position: absolute;
    inset: 2px;
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(5, 16, 11, 0.95) 50%,
        rgba(16, 185, 129, 0.1) 100%
    );
    clip-path: var(--clip);
    z-index: -1;
}

/* Animated Borders */
.cyber-nav-link .cyber-nav-link__borders {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cyber-nav-link .cyber-nav-link__borders span {
    position: absolute;
    background: var(--primary);
}

.cyber-nav-link .cyber-nav-link__borders span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation: cyber-border-top 4s infinite linear;
    transform-origin: left;
}

.cyber-nav-link .cyber-nav-link__borders span:nth-child(2) {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    animation: cyber-border-right 4s infinite linear;
    animation-delay: 1s;
    transform-origin: top;
}

.cyber-nav-link .cyber-nav-link__borders span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    animation: cyber-border-bottom 4s infinite linear;
    animation-delay: 2s;
    transform-origin: right;
}

.cyber-nav-link .cyber-nav-link__borders span:nth-child(4) {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    animation: cyber-border-left 4s infinite linear;
    animation-delay: 3s;
    transform-origin: bottom;
}

/* Scanlines */
.cyber-nav-link .cyber-nav-link__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    animation: cyber-scanlines 12s infinite linear;
}

/* Noise Effect */
.cyber-nav-link .cyber-nav-link__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

/* Glitch Text */
.cyber-nav-link .cyber-nav-link__glitch {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.cyber-nav-link .cyber-nav-link__glitch::before,
.cyber-nav-link .cyber-nav-link__glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.cyber-nav-link .cyber-nav-link__glitch::before {
    color: #ff0080;
    animation: none;
    opacity: 0;
}

.cyber-nav-link .cyber-nav-link__glitch::after {
    color: #00ffff;
    animation: none;
    opacity: 0;
}

/* Hover Effects */
.cyber-nav-link:hover {
    color: var(--primary);
    text-shadow: 
        0 0 8px var(--primary),
        0 0 16px var(--primary);
    box-shadow:
        0 0 15px rgba(16, 185, 129, 0.4),
        inset 0 0 15px rgba(16, 185, 129, 0.1);
}

.cyber-nav-link:hover .cyber-nav-link__glitch::before,
.cyber-nav-link:hover .cyber-nav-link__glitch::after {
    animation: cyber-glitch-subtle 2s infinite;
}

.cyber-nav-link:hover .cyber-nav-link__borders span {
    animation-duration: 1s;
    background: #fff;
    box-shadow: 0 0 8px var(--primary);
}

.cyber-nav-link:hover .cyber-nav-link__bg {
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.2) 0%,
        rgba(5, 16, 11, 0.9) 50%,
        rgba(16, 185, 129, 0.2) 100%
    );
}

/* Active State */
.cyber-nav-link.active {
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.3) 0%,
        rgba(16, 185, 129, 0.5) 50%,
        rgba(16, 185, 129, 0.3) 100%
    );
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    box-shadow:
        0 0 20px rgba(16, 185, 129, 0.6),
        inset 0 0 20px rgba(16, 185, 129, 0.2);
}

.cyber-nav-link.active .cyber-nav-link__bg {
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.4) 0%,
        rgba(16, 185, 129, 0.6) 50%,
        rgba(16, 185, 129, 0.4) 100%
    );
}

.cyber-nav-link.active .cyber-nav-link__borders span {
    background: #fff;
    box-shadow: 0 0 10px var(--primary);
    animation-duration: 2s;
}

/* Glow animation on idle */
.cyber-nav-link {
    animation: cyber-nav-glow 5s infinite ease-in-out;
}

@keyframes cyber-nav-glow {
    0%, 100% { 
        box-shadow: 
            0 0 3px rgba(16, 185, 129, 0.2),
            inset 0 0 3px rgba(16, 185, 129, 0.05);
    }
    50% { 
        box-shadow: 
            0 0 12px rgba(16, 185, 129, 0.4),
            0 0 24px rgba(16, 185, 129, 0.15),
            inset 0 0 8px rgba(16, 185, 129, 0.08);
    }
}

.cyber-nav-link.active {
    animation: cyber-nav-active-glow 4s infinite ease-in-out;
}

@keyframes cyber-nav-active-glow {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(16, 185, 129, 0.6),
            0 0 30px rgba(16, 185, 129, 0.3),
            inset 0 0 15px rgba(16, 185, 129, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 25px rgba(16, 185, 129, 0.8),
            0 0 50px rgba(16, 185, 129, 0.4),
            inset 0 0 25px rgba(16, 185, 129, 0.3);
    }
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;   /* center the hero grid as a block */
    padding: 6rem 3rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    column-gap: clamp(2rem, 5vw, 3.5rem);
    max-width: 1040px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    padding-right: 0.25rem;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0.25rem;
}

.profile-pic {
    width: 340px;
    height: 340px;
    object-fit: cover;
    object-position: center 10.5%; /* move visible area down so more hair shows */
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5), 0 0 32px rgba(16, 185, 129, 0.25);
    animation: fadeInSlide 1s 0.2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.glitch-wrapper {
    margin-bottom: 1rem;
}

.glitch {
    font-size: 4rem;
    font-weight: 800;
    position: relative;
    color: var(--text-main);
}

/* Simple Glitch Effect */
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #047857;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #059669;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(14px, 9999px, 123px, 0); }
    20% { clip: rect(93px, 9999px, 10px, 0); }
    40% { clip: rect(44px, 9999px, 66px, 0); }
    60% { clip: rect(7px, 9999px, 142px, 0); }
    80% { clip: rect(88px, 9999px, 3px, 0); }
    100% { clip: rect(34px, 9999px, 86px, 0); }
}

.typing-container {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 1.6em;
}

.txt-type {
    color: var(--accent-cyan);
    border-right: 2px solid var(--accent-purple);
    animation: blink 0.7s infinite;
}

@keyframes blink { 50% { border-color: transparent; } }

/* Contact strip (footer) */
.contact-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.contact-chip {
    --chip-border: rgba(16, 185, 129, 0.45);
    --chip-glow: rgba(16, 185, 129, 0.2);
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--chip-border);
    background: rgba(5, 16, 11, 0.65);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 0 12px var(--chip-glow);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-chip i {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    opacity: 0.95;
}

.contact-chip:hover {
    color: var(--accent-cyan);
    border-color: rgba(16, 185, 129, 0.85);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.25), inset 0 0 18px rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

.contact-chip:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.contact-strip--footer {
    justify-content: center;
    margin-bottom: 1.25rem;
}

.footer-copy {
    margin: 0;
}

.hero-sub {
    max-width: 600px;
    margin: 5rem auto 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-sub .no-wrap {
    white-space: nowrap;
}

/* ========== CYBERPUNK TEXT EFFECT ========== */
.cyber-text {
    position: relative;
    animation: none;
}

.cyber-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #ff0080;
    opacity: 0;
    animation: none;
    clip-path: inset(0 0 0 0);
}

.cyber-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #00ffff;
    opacity: 0;
    animation: none;
    clip-path: inset(0 0 0 0);
}

@keyframes cyber-text-flicker {
    0%, 100% { opacity: 1; }
    3% { opacity: 0.85; }
    6% { opacity: 1; }
    7% { opacity: 0.9; }
    8% { opacity: 1; }
    89% { opacity: 1; }
    90% { opacity: 0.8; }
    92% { opacity: 1; }
}

@keyframes cyber-text-glitch1 {
    0%, 100% { opacity: 0; transform: translateX(0); }
    20% { opacity: 0.4; transform: translateX(-3px); clip-path: inset(10% 0 80% 0); }
    21% { opacity: 0; }
    40% { opacity: 0.3; transform: translateX(2px); clip-path: inset(60% 0 20% 0); }
    41% { opacity: 0; }
    80% { opacity: 0.5; transform: translateX(-2px); clip-path: inset(30% 0 50% 0); }
    81% { opacity: 0; }
}

@keyframes cyber-text-glitch2 {
    0%, 100% { opacity: 0; transform: translateX(0); }
    25% { opacity: 0.3; transform: translateX(3px); clip-path: inset(70% 0 10% 0); }
    26% { opacity: 0; }
    50% { opacity: 0.4; transform: translateX(-2px); clip-path: inset(20% 0 60% 0); }
    51% { opacity: 0; }
    75% { opacity: 0.3; transform: translateX(1px); clip-path: inset(50% 0 30% 0); }
    76% { opacity: 0; }
}

/* ========== CYBERPUNK BUTTON ========== */
.cyber-btn {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #ff0080;
    --bg: rgba(5, 16, 11, 0.9);
    --clip: polygon(
        0 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% 100%,
        12px 100%,
        0 calc(100% - 12px)
    );
    
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    background: var(--bg);
    clip-path: var(--clip);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(16, 185, 129, 0.1) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: cyber-btn-shimmer 3s infinite linear;
}

@keyframes cyber-btn-shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

/* Button Background */
.cyber-btn__bg {
    position: absolute;
    inset: 2px;
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(5, 16, 11, 0.95) 50%,
        rgba(16, 185, 129, 0.1) 100%
    );
    clip-path: var(--clip);
    z-index: -1;
}

/* Animated Borders */
.cyber-btn__borders {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cyber-btn__borders span {
    position: absolute;
    background: var(--primary);
}

.cyber-btn__borders span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation: cyber-border-top 2s infinite linear;
    transform-origin: left;
}

.cyber-btn__borders span:nth-child(2) {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    animation: cyber-border-right 2s infinite linear;
    animation-delay: 0.5s;
    transform-origin: top;
}

.cyber-btn__borders span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    animation: cyber-border-bottom 2s infinite linear;
    animation-delay: 1s;
    transform-origin: right;
}

.cyber-btn__borders span:nth-child(4) {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    animation: cyber-border-left 2s infinite linear;
    animation-delay: 1.5s;
    transform-origin: bottom;
}

@keyframes cyber-border-top {
    0%, 100% { transform: scaleX(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: scaleX(1); }
}

@keyframes cyber-border-right {
    0%, 100% { transform: scaleY(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: scaleY(1); }
}

@keyframes cyber-border-bottom {
    0%, 100% { transform: scaleX(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: scaleX(1); }
}

@keyframes cyber-border-left {
    0%, 100% { transform: scaleY(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: scaleY(1); }
}

/* Scanlines */
.cyber-btn__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    animation: cyber-scanlines 8s infinite linear;
}

@keyframes cyber-scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Noise Effect */
.cyber-btn__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

/* Glitch Text */
.cyber-btn__glitch {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.cyber-btn__glitch::before,
.cyber-btn__glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.cyber-btn__glitch::before {
    color: #ff0080;
    animation: none;
    opacity: 0;
}

.cyber-btn__glitch::after {
    color: #00ffff;
    animation: none;
    opacity: 0;
}

@keyframes cyber-glitch-1 {
    0%, 100% { opacity: 0; transform: translateX(0); }
    5% { opacity: 0.8; transform: translateX(-5px) skewX(-5deg); clip-path: inset(20% 0 60% 0); }
    6% { opacity: 0; }
    35% { opacity: 0.6; transform: translateX(3px); clip-path: inset(70% 0 10% 0); }
    36% { opacity: 0; }
    65% { opacity: 0.7; transform: translateX(-4px); clip-path: inset(10% 0 70% 0); }
    66% { opacity: 0; }
}

@keyframes cyber-glitch-2 {
    0%, 100% { opacity: 0; transform: translateX(0); }
    15% { opacity: 0.6; transform: translateX(4px) skewX(3deg); clip-path: inset(50% 0 30% 0); }
    16% { opacity: 0; }
    45% { opacity: 0.7; transform: translateX(-3px); clip-path: inset(15% 0 65% 0); }
    46% { opacity: 0; }
    75% { opacity: 0.5; transform: translateX(5px); clip-path: inset(60% 0 20% 0); }
    76% { opacity: 0; }
}

/* Subtle glitch for hover only - much less distracting */
@keyframes cyber-glitch-subtle {
    0%, 100% { opacity: 0; transform: translateX(0); }
    48% { opacity: 0; }
    49% { opacity: 0.15; transform: translateX(1px); }
    50% { opacity: 0; }
    98% { opacity: 0; }
    99% { opacity: 0.12; transform: translateX(-1px); }
}

/* Tag/Label */
.cyber-btn__tag {
    position: absolute;
    bottom: -2px;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 400;
    color: var(--bg-main);
    background: var(--primary);
    padding: 2px 6px;
    letter-spacing: 1px;
    clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%);
}

/* Hover Effects */
.cyber-btn:hover {
    color: #fff;
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    box-shadow:
        0 0 20px rgba(16, 185, 129, 0.4),
        inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.cyber-btn:hover .cyber-btn__glitch::before,
.cyber-btn:hover .cyber-btn__glitch::after {
    animation: cyber-glitch-subtle 2s infinite;
}

.cyber-btn:hover .cyber-btn__borders span {
    animation-duration: 0.5s;
    background: #fff;
    box-shadow: 0 0 10px var(--primary);
}

.cyber-btn:hover .cyber-btn__bg {
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.2) 0%,
        rgba(5, 16, 11, 0.9) 50%,
        rgba(16, 185, 129, 0.2) 100%
    );
}

/* Active/Click Effect */
.cyber-btn:active {
    transform: scale(0.97);
}

.cyber-btn:active .cyber-btn__glitch::before,
.cyber-btn:active .cyber-btn__glitch::after {
    animation: none;
    opacity: 0.8;
    transform: translateX(0);
}

/* Corner Accents */
.cyber-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    animation: cyber-corner-pulse 2s infinite ease-in-out;
}

@keyframes cyber-corner-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Glow animation on idle */
@keyframes cyber-btn-glow {
    0%, 100% { 
        box-shadow: 
            0 0 5px rgba(16, 185, 129, 0.3),
            inset 0 0 5px rgba(16, 185, 129, 0.05);
    }
    50% { 
        box-shadow: 
            0 0 20px rgba(16, 185, 129, 0.5),
            0 0 40px rgba(16, 185, 129, 0.2),
            inset 0 0 10px rgba(16, 185, 129, 0.1);
    }
}

.cyber-btn {
    animation: cyber-btn-glow 3s infinite ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cyber-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .cyber-btn__tag {
        font-size: 0.5rem;
    }
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    justify-content: flex-start;
    margin-top: 3.25rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: #05100b;
    border: none;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.4);
}

/* Terminal Button Style with Rotating Slash */
.btn-terminal {
    background: rgba(5, 16, 11, 0.8);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-code);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-terminal::before {
    content: '/';
    display: inline-block;
    animation: spin-slash 0.8s steps(4) infinite;
    font-weight: bold;
}

@keyframes spin-slash {
    0% { content: '/'; }
    25% { content: '-'; }
    50% { content: '\\'; }
    75% { content: '|'; }
    100% { content: '/'; }
}

.btn-terminal:hover {
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-code);
    font-size: 1.8rem;
    color: var(--text-main);
    white-space: nowrap;
}

.section-title .highlight {
    color: var(--accent-cyan);
}

.line {
    height: 1px;
    background: rgba(255,255,255,0.1);
    width: 100%;
}

/* Now (current build) */
.now-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.now-panel {
    background: rgba(13, 31, 23, 0.55);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 2rem 2.25rem;
    max-width: 760px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(16, 185, 129, 0.06);
}

.now-badge {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 0.28rem 0.55rem;
    margin-right: 0.65rem;
    margin-bottom: 0.35rem;
    vertical-align: middle;
    color: var(--accent-cyan);
    border: 1px solid rgba(16, 185, 129, 0.65);
    background: rgba(16, 185, 129, 0.08);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.now-lede {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.now-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.now-code {
    font-family: var(--font-code);
    font-size: 0.88em;
    color: var(--accent-cyan);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.12em 0.4em;
    border-radius: 4px;
}

.now-github-link {
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid rgba(16, 185, 129, 0.5);
    background: rgba(5, 16, 11, 0.75);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.now-github-link:hover {
    color: #fff;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

.now-github-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.now-github-link i {
    font-size: 1.15rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.code-block {
    background: #020604;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #1f2937;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #d4d4d4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.about-text h3 {
    font-family: var(--font-code);
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.about-text .highlight {
    color: var(--accent-cyan);
}

/* Cards (Common) */
.card {
    background: rgba(13, 31, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    transform: translateY(-5px);
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-main);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-content .date {
    font-family: var(--font-code);
    color: var(--accent-purple);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-content .company {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-cyan);
    border-radius: 20px;
    font-family: var(--font-code);
}

/* Skills - Tech Streams */
.tech-streams {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    overflow: hidden;
    padding: 2rem 0;
}

.stream-label {
    font-family: var(--font-code);
    color: var(--accent-purple);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.stream-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.stream-track {
    display: flex;
    width: max-content;
    gap: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(13, 31, 23, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px; /* Pill shape */
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 1rem;
    white-space: nowrap;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.tech-item i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.tech-item:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-cyan);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-holder {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img-holder::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* Personal / Off-Duty Page Styles */

.gps-text {
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.photo-grid-mini {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.photo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed var(--accent-cyan);
    border-radius: 4px;
}

.photo-card {
    min-height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(5,16,11,0.9), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: 0.3s ease;
}

.photo-card:hover .overlay {
    transform: translateY(0);
}

.read-more-link {
    color: var(--accent-cyan);
    font-family: var(--font-code);
    font-size: 0.8rem;
    margin-top: auto;
    display: inline-block;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 16, 11, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-main);
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

#lightbox-caption {
    margin-top: 1rem;
    color: var(--text-muted);
    font-family: var(--font-code);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cursor change for images that can be opened */
.photo-grid-mini img {
    cursor: zoom-in;
    transition: 0.3s;
}

.photo-grid-mini img:hover {
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Footer */
#off-duty-cta {
    background: rgba(13, 31, 23, 0.4);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    margin-top: 4rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-code);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-image-container {
        order: 1; /* Move image above text */
    }

    .cta-group {
        justify-content: center;
    }

    .profile-pic {
        width: 240px;
        height: 240px;
    }
    .glitch {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        width: 70%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .glitch {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
}
