/* ===========================
   Cyberpunk Terminal / Neon Hacker Theme
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');

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

:root {
    --primary-color: #00FF66;
    --secondary-color: #00E5FF;
    --accent-color: #00FF88;
    --warning-color: #FF4D4D;
    --glow-green: #00FF66;
    --glow-cyan: #00E5FF;
    /* #66FF99 on #0A0F1F = ~9.1:1 WCAG AAA pass */
    --text-dark: #66FF99;
    /* #B8CBDA on #0D1526 = ~5.2:1 WCAG AA pass (was #8FA3B8 = ~3.8:1 FAIL) */
    --text-light: #B8CBDA;
    --bg-light: #0A0F1F;
    --bg-white: #050A12;
    --bg-surface: #0D1526;
    --bg-panel: #0F1A2E;
    --border-glow: rgba(0, 255, 102, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 255, 102, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 255, 102, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 255, 102, 0.15);
    --shadow-glow: 0 0 5px #00ff66, 0 0 10px rgba(0, 255, 102, 0.3);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-shadow: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    --transition-opacity: opacity 0.3s ease;
    --scroll-progress: 0;
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #0A0F1F, #0F1A33);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Subtle scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 102, 0.008) 2px,
        rgba(0, 255, 102, 0.008) 4px
    );
    pointer-events: none;
    z-index: 9997;
}

/* ===========================
   Skip Link (Accessibility)
   =========================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10001;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #0A0F1F;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
    font-family: var(--font-mono);
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Focus Visible (Accessibility)
   =========================== */

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

/* ===========================
   Loading Screen
   =========================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050A12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 102, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2), inset 0 0 15px rgba(0, 255, 102, 0.05);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade-in Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(10px);
    transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Cursor Trail */
.cursor-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    animation: fadeOut 0.8s forwards;
    z-index: 9998;
    box-shadow: 0 0 6px var(--glow-green);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

/* Override Bootstrap container */
.container {
    max-width: 1200px;
}

/* ===========================
   Navbar
   =========================== */

.cyber-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(5, 10, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 102, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.cyber-navbar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: calc(var(--scroll-progress) * 100%);
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 255, 102, 0.95), rgba(0, 229, 255, 0.8));
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.25);
    pointer-events: none;
    transition: width 0.12s linear;
}

.cyber-navbar.scrolled {
    background: rgba(5, 10, 18, 0.88);
    border-bottom-color: rgba(0, 255, 102, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: text-shadow 0.3s ease;
}

.nav-brand:hover {
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

.nav-brand-bracket {
    color: var(--secondary-color);
    opacity: 0.7;
}

.nav-brand-text {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 255, 102, 0.06);
}

.nav-link-special {
    color: var(--secondary-color) !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    animation: neon-pulse 2s infinite ease-in-out;
    border: 1px solid rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.03);
}

.nav-link-special:hover {
    color: #ffffff !important;
    background: rgba(0, 229, 255, 0.15) !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
        border-color: rgba(0, 229, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
        border-color: rgba(0, 229, 255, 0.5);
    }
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid rgba(0, 255, 102, 0.15);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.nav-toggle:hover {
    border-color: rgba(0, 255, 102, 0.4);
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 10, 18, 0.97);
        border-bottom: 1px solid rgba(0, 255, 102, 0.1);
        padding: 16px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
    }
}

/* ===========================
   Hero CTA Buttons
   =========================== */

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.cta-primary {
    background: var(--primary-color);
    color: #0A0F1F;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 5px #00ff66, 0 0 15px rgba(0, 255, 102, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #0A0F1F;
    background: var(--accent-color);
}

.cta-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    background: rgba(0, 229, 255, 0.08);
    color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 229, 255, 0.5);
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

.hero-summary {
    max-width: 760px;
    margin: 0 auto 20px;
    color: #d6e2ef;
    font-size: 1.1rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-highlight {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* ===========================
   Stats Section
   =========================== */

.stats-section {
    background: var(--bg-white);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 255, 102, 0.05);
    border-bottom: 1px solid rgba(0, 255, 102, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px 16px;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 255, 102, 0.08);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.1), 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 102, 0.2);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
    background: linear-gradient(135deg, #050A12 0%, #0A0F1F 30%, #0F1A33 60%, #0A1628 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 255, 102, 0.1);
}

/* Grid pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.8;
}

/* Glow orb */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.06) 0%, rgba(0, 229, 255, 0.03) 40%, transparent 70%);
    pointer-events: none;
}

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

.profile-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 255, 102, 0.4);
    box-shadow: 
        0 0 20px rgba(0, 255, 102, 0.3),
        0 0 40px rgba(0, 255, 102, 0.1),
        0 0 80px rgba(0, 229, 255, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    box-shadow: 
        0 0 30px rgba(0, 255, 102, 0.5),
        0 0 60px rgba(0, 255, 102, 0.2),
        0 0 100px rgba(0, 229, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        border-color: rgba(0, 255, 102, 0.2);
    }
    50% {
        transform: scale(1.08);
        opacity: 0.5;
        border-color: rgba(0, 229, 255, 0.3);
    }
}

.profile-name {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-wrap: balance;
    text-shadow: 0 0 30px rgba(0, 255, 102, 0.3);
}

.profile-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.profile-title::before {
    content: '> ';
    color: var(--secondary-color);
    opacity: 0.7;
}

.profile-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.detail-item i {
    margin-right: 8px;
    color: var(--secondary-color);
    opacity: 0.8;
}

.detail-separator {
    color: rgba(0, 255, 102, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 30px;
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===========================
   Section Styles
   =========================== */

section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
    text-wrap: balance;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15), 0 0 30px rgba(0, 255, 102, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title--left {
    text-align: left;
    margin-bottom: 24px;
}

.section-title--left::after {
    left: 0;
    transform: none;
}

.section-kicker {
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ===========================
   About Section
   =========================== */

.about-section {
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 255, 102, 0.05);
    border-bottom: 1px solid rgba(0, 255, 102, 0.05);
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.9;
}

.about-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.about-fact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 255, 102, 0.08);
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.snapshot-section,
.build-section,
.learning-section {
    background: var(--bg-light);
}

.snapshot-grid,
.build-grid,
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.snapshot-card,
.build-card,
.learning-card,
.resume-cta-panel,
.featured-project-panel {
    background: var(--bg-white);
    border: 1px solid rgba(0, 255, 102, 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.snapshot-card {
    padding: 28px 24px;
}

.snapshot-label {
    margin-bottom: 10px;
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.snapshot-value {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.snapshot-detail,
.build-card p,
.learning-card p,
.resume-cta-copy,
.featured-project-description {
    margin: 0;
    color: var(--text-light);
}

.build-card {
    padding: 30px 24px;
}

.build-card h3,
.featured-project-title {
    margin-bottom: 12px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.strengths-section,
.resume-cta-section,
.featured-project-section {
    background: var(--bg-white);
}

.strengths-list {
    display: grid;
    gap: 14px;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 255, 102, 0.08);
    border-radius: 12px;
    color: var(--text-light);
}

.strength-item i,
.learning-card i {
    color: var(--primary-color);
}

.ai-tools-grid--compact {
    max-width: 860px;
}

.featured-project-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    padding: 32px;
    align-items: center;
}

.featured-project-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.featured-project-meta {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    color: var(--text-light);
}

.featured-project-actions,
.resume-cta-actions,
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.projects-section {
    padding-top: 60px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-meta-item,
.project-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-meta-item {
    background: rgba(0, 229, 255, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.project-purpose {
    margin: -4px 0 16px;
    color: #dce6f0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.project-links {
    margin-top: 16px;
}

.project-link-pill {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.learning-card {
    padding: 26px 22px;
}

.learning-card i {
    display: inline-flex;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.resume-cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 28px;
    align-items: center;
    padding: 32px;
}

.resume-cta-actions {
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .featured-project-panel,
    .resume-cta-panel {
        grid-template-columns: 1fr;
    }

    .resume-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-summary {
        font-size: 1rem;
    }

    .hero-highlights,
    .about-facts {
        gap: 10px;
    }

    .featured-project-panel,
    .resume-cta-panel {
        padding: 24px;
    }

    .section-title--left {
        text-align: center;
    }

    .section-title--left::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===========================
   Tech Stack Section
   =========================== */

.tech-section {
    background: var(--bg-light);
}

.tech-marquee {
    position: relative;
    overflow: hidden;
    padding: 12px 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-marquee::before,
.tech-marquee::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tech-marquee::before {
    background:
        linear-gradient(90deg, rgba(11, 17, 32, 0.92), transparent 14%),
        linear-gradient(270deg, rgba(11, 17, 32, 0.92), transparent 14%);
}

.tech-marquee::after {
    border-top: 1px solid rgba(0, 255, 102, 0.08);
    border-bottom: 1px solid rgba(0, 255, 102, 0.08);
}

.tech-marquee-row {
    overflow: hidden;
}

.tech-marquee-row + .tech-marquee-row {
    margin-top: 18px;
}

.tech-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.tech-marquee-row--left .tech-marquee-track {
    animation: tech-marquee-left 24s linear infinite;
}

.tech-marquee-row--right .tech-marquee-track {
    animation: tech-marquee-right 28s linear infinite;
}

.tech-marquee-group {
    display: flex;
    gap: 18px;
    padding-right: 18px;
    flex-shrink: 0;
}

.tech-marquee .tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    padding: 16px 22px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 102, 0.16);
    background:
        linear-gradient(135deg, rgba(0, 255, 102, 0.16), rgba(0, 255, 102, 0.04)),
        rgba(8, 13, 24, 0.96);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.tech-marquee .tech-badge:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 102, 0.35);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.34),
        0 0 22px rgba(0, 255, 102, 0.12);
}

.tech-marquee .tech-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tech-marquee .tech-badge__icon i {
    color: inherit;
}

.tech-marquee .tech-badge__icon--php {
    color: #777bb3;
}

.tech-marquee .tech-badge__icon--javascript {
    color: #f7df1e;
}

.tech-marquee .tech-badge__icon--bootstrap {
    color: #7952b3;
}

.tech-marquee .tech-badge__icon--html {
    color: #e34f26;
}

.tech-marquee .tech-badge__icon--css {
    color: #1572b6;
}

.tech-marquee .tech-badge__icon--mysql {
    color: #00758f;
}

.tech-marquee .tech-badge__icon--react {
    color: #61dafb;
}

.tech-marquee .tech-badge__icon--typescript {
    color: #3178c6;
}

.tech-marquee .tech-badge__icon--tailwind {
    color: #38bdf8;
}

.tech-marquee .tech-badge__icon--node {
    color: #5fa04e;
}

.tech-marquee .tech-badge__icon--docker {
    color: #2496ed;
}

.tech-marquee .tech-badge__icon--firebase {
    color: #ffca28;
}

.tech-marquee .tech-badge__icon--convex {
    color: #f97316;
}

.tech-marquee .tech-badge__label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f8fafc;
    white-space: nowrap;
}

@keyframes tech-marquee-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 9px));
    }
}

@keyframes tech-marquee-right {
    from {
        transform: translateX(calc(-50% - 9px));
    }
    to {
        transform: translateX(0);
    }
}

/* ===========================
   AI Arsenal Section
   =========================== */

.ai-tools-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Subtle grid background texture */
.ai-tools-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 102, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.ai-tools-subtitle {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: -40px;
    margin-bottom: 50px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Staggered asymmetric grid — not a standard 3-col bento */
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ---- Card Base ---- */
.ai-tool-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 255, 102, 0.12);
    border-top: 2px solid var(--primary-color);
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: default;
}

/* Scan-line sweep on hover */
.ai-tool-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: top 0.4s ease;
    opacity: 0.6;
}

.ai-tool-card:hover::after {
    top: 100%;
}

.ai-tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 102, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 255, 102, 0.1),
        0 0 20px rgba(0, 255, 102, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ---- Terminal Header Row ---- */
.ai-tool-terminal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 102, 0.08);
    font-family: var(--font-mono);
}

.ai-prompt {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
    user-select: none;
}

.ai-tool-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---- Card Body ---- */
.ai-tool-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    padding: 20px 16px 10px;
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
    transition: text-shadow 0.3s ease;
}

.ai-tool-card:hover .ai-tool-icon {
    text-shadow: 0 0 5px #00ff66, 0 0 20px rgba(0, 255, 102, 0.35);
}

.ai-tool-role {
    padding: 0 16px 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ai-tool-tag {
    padding: 0 16px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* ---- Featured Card (Antigravity) ---- */
.ai-tool-card--featured {
    border-top-color: var(--secondary-color);
    border-color: rgba(0, 229, 255, 0.2);
}

.ai-tool-card--featured .ai-prompt {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.ai-tool-card--featured .ai-tool-icon {
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.ai-tool-card--featured::after {
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.ai-tool-card--featured:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.1),
        0 0 20px rgba(0, 229, 255, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ===========================
   Projects Section
   =========================== */

.projects-section {
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 255, 102, 0.05);
    border-bottom: 1px solid rgba(0, 255, 102, 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 102, 0.08);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 0 5px rgba(0, 255, 102, 0.1),
        0 0 15px rgba(0, 229, 255, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 229, 255, 0.3);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0A0F1F, #0F1A33);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.85), rgba(0, 229, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.project-link-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.project-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.project-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-badge {
    padding: 4px 10px;
    background: rgba(0, 255, 102, 0.08);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 255, 102, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 255, 102, 0.08);
    position: relative;
    overflow: hidden;
}

/* Top glow line */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 5px rgba(0, 255, 102, 0.15),
        0 0 20px rgba(0, 255, 102, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 229, 255, 0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.15), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-light);
    margin: 0;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: #030710;
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 102, 0.08);
}

.footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.admin-link a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.admin-link a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    text-decoration: underline;
}

/* ===========================
   Back to Top Button
   =========================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 102, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 5px #00ff66, 0 0 15px rgba(0, 255, 102, 0.3);
    border-color: var(--primary-color);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .profile-name {
        font-size: 2.2rem;
    }

    .profile-title {
        font-size: 1rem;
    }

    .profile-details {
        flex-direction: column;
        gap: 10px;
    }

    .detail-separator {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .tech-marquee {
        padding: 10px 0;
    }

    .tech-marquee-row + .tech-marquee-row {
        margin-top: 14px;
    }

    .tech-marquee .tech-badge {
        padding: 14px 18px;
        gap: 10px;
    }

    .tech-marquee .tech-badge__icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .tech-marquee .tech-badge__label {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .profile-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .tech-marquee {
        mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }

    .tech-marquee-row--left .tech-marquee-track {
        animation-duration: 18s;
    }

    .tech-marquee-row--right .tech-marquee-track {
        animation-duration: 21s;
    }

    .tech-marquee-group {
        gap: 12px;
        padding-right: 12px;
    }

    .tech-marquee .tech-badge {
        padding: 12px 16px;
    }

    .tech-marquee .tech-badge__icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .tech-marquee .tech-badge__label {
        font-size: 0.82rem;
        letter-spacing: 0.03em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tech-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .tech-marquee-track {
        animation: none !important;
    }
}

/* ===========================
   Prefers Reduced Motion
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-section {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .page-loader {
        transition: none;
    }

    .profile-ring {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }

    body::after {
        display: none;
    }
}
