:root {
    --bg-black: #05070a;
    --card-bg: rgba(12, 18, 28, 0.75);
    --neon-blue: #00f0ff;
    --neon-purple: #7000ff;
    --vodafone-red: #ff0015;
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    --nav-bg: rgba(5, 7, 10, 0.8);
    --border-soft: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
    --bg-black: #f4f6fb;
    --card-bg: rgba(255, 255, 255, 0.85);
    --neon-blue: #0092b8;
    --vodafone-red: #d6000f;
    --text-white: #0b0e14;
    --text-dim: #4b5468;
    --nav-bg: rgba(244, 246, 251, 0.85);
    --border-soft: rgba(0, 0, 0, 0.08);
}

body.light-mode .code-box {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 146, 184, 0.3);
}

body.light-mode .code-box pre {
    color: #0092b8;
}

body.light-mode .btn.primary {
    color: #fff;
}

body.light-mode .cursor-glow {
    background: radial-gradient(circle, rgba(0, 146, 184, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
}

.cursor-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.nav-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-soft);
    background: var(--nav-bg);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: var(--card-bg);
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.theme-toggle i {
    position: absolute;
    font-size: 1.05rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .bi-sun-fill {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.theme-toggle .bi-moon-stars-fill {
    opacity: 1;
    transform: rotate(0) scale(1);
}

body.light-mode .theme-toggle .bi-sun-fill {
    opacity: 1;
    transform: rotate(0) scale(1);
}

body.light-mode .theme-toggle .bi-moon-stars-fill {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.brand {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 2px;
}

.brand span {
    color: var(--neon-blue);
}

.links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.links a:hover {
    color: var(--neon-blue);
}

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-cyber {
    min-height: 100vh;
    padding: 8rem 2rem 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-container {
    max-width: 1300px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--neon-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: pulseAnim 1.5s infinite;
}

@keyframes pulseAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 240, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

.glitch-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.05;
}

.glitch-title span {
    color: var(--neon-blue);
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.cyber-subtitle {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 1rem 0 1.8rem 0;
}

.code-box {
    background: rgba(10, 16, 26, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-header small {
    color: var(--text-dim);
    font-family: var(--font-code);
    font-size: 0.75rem;
    margin-left: 6px;
}

.code-box pre {
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: #00f0ff;
}

.kwd {
    color: #ff007f;
}

.cls {
    color: #00f0ff;
}

.func {
    color: #ffe600;
}

.str {
    color: #00ff88;
}

.actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn.primary {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn.ghost:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.cyber-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-badge {
    background: var(--card-bg);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-badge i {
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.skill-badge:hover {
    transform: translateX(8px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.skill-badge.vodafone-badge {
    border-color: rgba(255, 0, 21, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 21, 0.2);
}

.vodafone-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 0, 21, 0.8));
}

.voda-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--vodafone-red);
}


/* ================= AVATAR & HUD FRAME FIX ================= */

.cyber-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-ring {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--neon-blue);
    box-shadow:
        0 0 0 6px rgba(0, 240, 255, 0.08),
        0 0 40px rgba(0, 240, 255, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.4);
    background-color: #030508;
}

.cyber-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.hud-tag {
    position: absolute;
    background: rgba(5, 7, 10, 0.85);
    border: 1px solid var(--neon-blue);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-blue);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.hud-tag.top-right {
    top: 18px;
    right: 18px;
}

.hud-tag.bottom-left {
    bottom: 18px;
    left: 18px;
}


/* ================= CENTERED LAYOUT (SKILLS & CERTS) ================= */

.section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.center-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-header-center {
    margin-bottom: 3rem;
}

.section-header-center h2 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.section-header-center h2 span {
    color: var(--neon-blue);
}

.split {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.section-label {
    font-family: var(--font-code);
    color: var(--neon-blue);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.content h2 span {
    color: var(--neon-blue);
}

.content p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    width: 100%;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.skill-card i {
    font-size: 2.2rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.skill-card b {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.skill-card small {
    color: var(--text-dim);
    font-size: 0.85rem;
}


/* ================= CERTIFICATIONS SECTION ================= */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.8rem;
    width: 100%;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.12);
}

.cert-icon i {
    font-size: 2.2rem;
    color: var(--neon-blue);
}

.cert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.cert-info .issuer {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.cert-info .cert-id {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.cert-info code {
    font-family: var(--font-code);
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}


/* ================= PROJECTS SECTION ================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    width: 100%;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: left;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.project-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon i {
    font-size: 1.6rem;
    color: var(--neon-blue);
}

.project-tag {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.project-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.project-body p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.project-meta i {
    color: var(--neon-blue);
}

.project-card-wide {
    width: 100%;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    margin: 1.2rem 0 1.4rem;
}

.gallery-thumb {
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    padding: 0;
    background: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--neon-blue);
    font-size: 1.3rem;
    backdrop-filter: blur(1px);
}

.gallery-thumb:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-thumb:hover .gallery-thumb-overlay {
    opacity: 1;
}

/* ================= LIGHTBOX ================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2, 3, 6, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.lightbox.open .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.2);
}

.lightbox-caption {
    margin-top: 1rem;
    color: var(--text-dim);
    font-family: var(--font-code);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--text-white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 640px) {
    .lightbox-nav {
        width: 38px;
        height: 38px;
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
}

.project-download {
    margin-top: 0.4rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
}

/* ================= LIVE DB VIEWER ================= */

.db-viewer {
    width: 100%;
    margin-top: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    text-align: left;
}

.db-viewer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.db-viewer-head h3 {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-viewer-head h3 i {
    color: var(--neon-blue);
}

.db-search {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 0.85rem;
    min-width: 220px;
}

.db-search:focus {
    outline: none;
    border-color: var(--neon-blue);
}

.db-viewer-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-dim);
}

.db-viewer-empty i {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-bottom: 0.8rem;
    display: block;
}

.db-table-wrap {
    overflow-x: auto;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.db-table th,
.db-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.db-table th {
    color: var(--neon-blue);
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.db-table tbody tr:hover {
    background: rgba(0, 240, 255, 0.05);
}

/* ================= EXPERIENCE SECTION ================= */

.exp-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 0, 21, 0.3);
    padding: 2rem;
    border-radius: 16px;
}

.exp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.exp-head .tag {
    background: rgba(255, 0, 21, 0.1);
    border: 1px solid rgba(255, 0, 21, 0.4);
    color: var(--vodafone-red);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.exp-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.exp-card .date {
    color: var(--text-dim);
    font-family: var(--font-code);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.exp-card .desc {
    color: var(--text-dim);
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .menu-btn {
        display: flex;
    }
    .links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border-soft);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }
    .links.open {
        max-height: 400px;
        padding: 1rem 2rem 1.5rem;
    }
    .links a {
        margin-left: 0;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--border-soft);
    }
}

@media (max-width: 1024px) {
    .cyber-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .actions,
    .eyebrow {
        justify-content: center;
    }
    .split {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .avatar-ring {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}