/* -------------------------------------------------------------
 * Theme: Tech / Cyberpunk Glassmorphism
 * Color System: 
 *   Background: #0a0a10 (very dark blue/violet)
 *   Surface: rgba(20, 20, 35, 0.6) with blur
 *   Primary Accent: #00f2fe (neon cyan)
 *   Secondary Accent: #8b5cf6 (neon purple)
 *   Text: #f1f5f9 (slate-100)
 * ------------------------------------------------------------- */

:root {
    --bg-color: #0a0a10;
    --surface-color: rgba(20, 20, 35, 0.6);
    --surface-solid: #121220;
    --accent-primary: #00f2fe;
    --accent-primary-rgb: 0, 242, 254;
    --accent-secondary: #8b5cf6;
    --accent-secondary-rgb: 139, 92, 246;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(139, 92, 246, 0.2);
    --border-focus: rgba(0, 242, 254, 0.6);
    --transition-speed: 0.3s;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to enable custom cursor */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Background Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 25px;
    height: 25px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    box-shadow: 0 0 8px rgba(var(--accent-primary-rgb), 0.4);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* Cursor Interaction States */
.cursor-hover {
    width: 45px;
    height: 45px;
    border-color: var(--accent-secondary);
    background-color: rgba(var(--accent-secondary-rgb), 0.1);
}

/* General Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    background: rgba(10, 10, 16, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-text span.symbol {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

nav.nav-links {
    display: flex;
    gap: 30px;
}

nav.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    padding: 5px 0;
    position: relative;
}

nav.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(95deg, var(--accent-primary), var(--accent-secondary));
    transition: width var(--transition-speed) ease;
}

nav.nav-links a:hover, nav.nav-links a.active {
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(var(--accent-primary-rgb), 0.5);
}

nav.nav-links a:hover::after, nav.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hire-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #050508;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.6);
    color: white;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: none;
}

/* Mobile Nav Menu */
.mobile-nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 16, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 998;
    transition: left 0.4s ease;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu.open {
    left: 0;
}

.mobile-nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.mobile-nav-menu a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 180px 8% 100px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 16, 0.75) 40%, #0a0a10 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: 25px;
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.hero-name {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.3);
}

.typed-cursor {
    animation: blink 0.7s infinite;
}

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

.hero-bio {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 680px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #050508;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(var(--accent-primary-rgb), 0.5);
    color: white;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
}

.mouse {
    width: 25px;
    height: 42px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 18px; opacity: 0; }
    100% { top: 8px; opacity: 1; }
}

/* Sections General */
section {
    padding: 100px 0;
    position: relative;
}

.section-title-wrap {
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--accent-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.about-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: transform 0.3s, border-color 0.3s;
}

.about-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    transform: translateY(-3px);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(var(--accent-primary-rgb), 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.about-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.7;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.info-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Skills Dashboard */
.skills-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
}

.skill-tab-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.skill-tab-btn.active {
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.skills-tab-content {
    display: none;
    flex-direction: column;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.skills-tab-content.active {
    display: flex;
}

.skill-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 30px;
    background-color: var(--surface-color);
    backdrop-filter: blur(15px);
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timeline-content:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.4);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-content ul {
    margin-top: 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Portfolio Filters */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.portfolio-tab-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.portfolio-tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #050508;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

/* Project Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-img-wrapper {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder-icon {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.project-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.project-details h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-details p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.project-link:hover {
    color: var(--accent-secondary);
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
}

.project-card.hidden {
    display: none !important;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    backdrop-filter: blur(15px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 20px;
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.1);
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 14.5px;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: #050508;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.5);
    color: white;
}

.form-status-message {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

.form-status-message.success {
    color: #10b981;
}

.form-status-message.error {
    color: #ef4444;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background-color: #06060a;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.05);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.2);
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }
    nav.nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero-name {
        font-size: 42px;
    }
    .hero-role {
        font-size: 22px;
    }
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    .timeline-item.left {
        left: 0;
    }
    .timeline-item.right {
        left: 0;
    }
    .timeline-dot {
        left: 23px;
        right: auto;
    }
    .timeline-item.right .timeline-dot {
        left: 23px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =============================================================
 * HARDWARE GALLERY STYLES
 * ============================================================= */

/* Gallery Filter Buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all var(--transition-speed);
    letter-spacing: 0.5px;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Gallery Grid */
.hardware-gallery-grid {
    columns: 3;
    column-gap: 18px;
    gap: 18px;
}

@media (max-width: 900px) {
    .hardware-gallery-grid { columns: 2; }
}
@media (max-width: 580px) {
    .hardware-gallery-grid { columns: 1; }
}

/* Gallery Item */
.gallery-item {
    break-inside: avoid;
    margin-bottom: 18px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
    background: var(--surface-solid);
    display: block;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.2),
                0 0 0 1px rgba(0, 242, 254, 0.4);
}

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

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Overlay */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

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

.gallery-item-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.gallery-item-tag {
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    transform: translateY(10px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-item-title,
.gallery-item:hover .gallery-item-tag {
    transform: translateY(0);
}

.gallery-zoom-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: rgba(0, 242, 254, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Placeholder card (when no image yet) */
.gallery-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(0,242,254,0.05), rgba(139,92,246,0.08));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border: 2px dashed rgba(139, 92, 246, 0.3);
    transition: border-color 0.3s;
}

.gallery-placeholder i {
    font-size: 2rem;
    color: rgba(0, 242, 254, 0.4);
}

.gallery-item:hover .gallery-placeholder {
    border-color: rgba(0, 242, 254, 0.5);
}

/* Gallery empty state */
.gallery-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.gallery-empty i {
    font-size: 3rem;
    color: rgba(0,242,254,0.2);
    margin-bottom: 16px;
    display: block;
}

/* Upload hint box */
.gallery-upload-hint {
    margin-top: 40px;
    background: rgba(0, 242, 254, 0.04);
    border: 1px dashed rgba(0, 242, 254, 0.25);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.gallery-upload-hint i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.gallery-upload-hint h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.gallery-upload-hint p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.gallery-upload-hint code {
    background: rgba(139,92,246,0.2);
    color: var(--accent-primary);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* ======= LIGHTBOX ======= */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 12, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    transform: scale(0.88);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 40px rgba(0,242,254,0.1);
    display: block;
}

.lightbox-info {
    margin-top: 20px;
    text-align: center;
}

.lightbox-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.lightbox-info span {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    background: var(--surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(0,242,254,0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(20,20,35,0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
    background: rgba(0,242,254,0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.lightbox-nav.prev { left: -60px; }
.lightbox-nav.next { right: -60px; }

@media (max-width: 700px) {
    .lightbox-nav.prev { left: 0; }
    .lightbox-nav.next { right: 0; }
}

/* Gallery photo counter */
.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Gallery section count badge */
.gallery-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,242,254,0.08);
    border: 1px solid rgba(0,242,254,0.2);
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 30px;
}

