/* ============================
   CSS VARIABLES
   ============================ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: #b0b0c8;
    --text-muted: #7a7a92;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-coral: #ff6b6b;
    --gradient-main: linear-gradient(135deg, #00d4ff, #7c3aed);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
    --cursor-color: #00d4ff;
}

/* Light theme overrides */
[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #eaeaef;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(0, 0, 0, 0.06);
    --text-primary: #111118;
    --text-secondary: #33334a;
    --text-muted: #66667a;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.06);
}

/* ============================
   RESET & BASE
   ============================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    cursor: default;
}

/* ============================
   CUSTOM CURSOR
   ============================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
    will-change: transform;
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    will-change: transform;
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(0, 212, 255, 0.05);
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ============================
   SCROLL PROGRESS
   ============================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-main);
    z-index: 10000;
    transition: width 0.1s linear;
    will-change: width;
}

/* ============================
   LOADING SCREEN
   ============================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-cyan);
    border-right-color: var(--accent-purple);
    animation: spin 1s linear infinite;
}

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

.loader-text {
    position: absolute;
    margin-top: 80px;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    padding: 0 clamp(1rem, 4vw, 3rem);
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] .navbar {
    background: rgba(245, 245, 250, 0.8);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* Profile photo in navbar */
.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: block;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.nav-logo-img:hover {
    border-color: rgba(0, 212, 255, 0.7);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}
.nav-links a.active::after {
    width: 100%;
}

/* Resume nav link — styled as a subtle pill */
.nav-links .nav-resume {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.nav-links .nav-resume::after {
    background: var(--gradient-main);
}

/* Theme toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Mobile menu */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

.menu-btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.2rem;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-bottom: 1px solid var(--border-glass);
        align-items: stretch;
        text-align: center;
    }

    [data-theme="light"] .nav-links {
        background: rgba(245, 245, 250, 0.97);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .theme-toggle {
        margin: 0 auto;
    }
}

/* ============================
   MAIN CONTAINER
   ============================ */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    padding-top: calc(var(--nav-height) + 2rem);
}

/* ============================
   SECTION BASE
   ============================ */
section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: rgba(0, 212, 255, 0.08);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-title .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    line-height: 1.7;
}

/* ============================
   HERO
   ============================ */
.hero {
    min-height: calc(100vh - var(--nav-height) - 4rem);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    width: fit-content;
    backdrop-filter: blur(8px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.8); }
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero h1 .gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typing {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    min-height: 2.2rem;
}

.hero-typing .cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-cyan);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

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

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 480px;
    line-height: 1.8;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.25);
}
.btn-primary:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.2);
}
.btn-secondary:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Extra padding so badges don't get clipped */
    padding: 2.5rem 3.5rem;
}

.hero-avatar {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--gradient-glow);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.06);
    transition: var(--transition-smooth);
    user-select: none;
    /* overflow hidden keeps photo clipped to circle; badges are now outside this element */
    overflow: hidden;
    flex-shrink: 0;
}

/* Profile picture inside avatar circle */
.hero-avatar .profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero-avatar .initials {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 5rem;
}

.hero-avatar .ring-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.1);
    animation: ring-pulse 4s ease-in-out infinite;
}

.hero-avatar .ring-glow:nth-child(2) {
    inset: -18px;
    animation-delay: 1.5s;
    border-color: rgba(124, 58, 237, 0.08);
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.05); opacity: 1; }
}

/* Floating badges — positioned relative to .hero-visual, OUTSIDE the avatar circle */
.float-badge {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-glass);
    white-space: nowrap;
    pointer-events: none;
}

.float-badge i {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

/* Full Stack — top-right, outside the circle */
.float-badge--fullstack {
    top: 8%;
    right: 0;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* GenAI — bottom-left, outside the circle */
.float-badge--genai {
    bottom: 12%;
    left: 0;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

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

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-content { align-items: center; }
    .hero-desc { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-visual { padding: 1.5rem 2.5rem; }
    .hero-avatar { width: 220px; height: 220px; font-size: 4rem; }
    .hero-avatar .initials { font-size: 3.5rem; }
    /* On small screens keep badges but smaller */
    .float-badge { font-size: 0.7rem; padding: 0.3rem 0.8rem; }
}

@media (max-width: 480px) {
    .hero-avatar { width: 160px; height: 160px; font-size: 3rem; }
    .hero-avatar .initials { font-size: 2.5rem; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; justify-content: center; }
    .float-badge { display: none; }
}

/* ============================
   ABOUT
   ============================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.1);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
    .stat-card { padding: 1rem 0.5rem; }
    .stat-number { font-size: 1.6rem; }
}

@media (max-width: 420px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================
   TIMELINE (Journey)
   ============================ */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-main);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
    transition: var(--transition-smooth);
}

.timeline-item:hover::before {
    box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.08);
    transform: scale(1.1);
}

.timeline-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.timeline-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* ============================
   SKILLS — Category layout
   No progress bars or percentages.
   ============================ */
.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.skill-category:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.08);
}

.skill-category-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    transition: var(--transition-smooth);
    cursor: default;
}

.skill-pill:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
}

/* Legacy .skill-card kept for any residual use */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.12);
}

.skill-card .skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.skill-card .skill-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(0, 212, 255, 0.06);
    padding: 0.15rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    width: fit-content;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.project-card .icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.06);
    border-radius: var(--radius-sm);
}

.project-card h3 { font-size: 1.1rem; font-weight: 600; }

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-card .tags span {
    font-size: 0.65rem;
    background: rgba(0, 212, 255, 0.06);
    color: var(--text-muted);
    padding: 0.15rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.project-card .links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.3rem;
}

.project-card .links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-card .links a:hover { color: var(--accent-cyan); }

/* More Projects on GitHub */
.projects-more {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.projects-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.projects-more-link i:first-child { font-size: 1.1rem; color: var(--accent-cyan); }
.projects-more-link i:last-child  { font-size: 0.75rem; opacity: 0.6; }

.projects-more-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

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

/* ============================
   EXPERIENCE
   ============================ */
.experience-grid {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.experience-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.exp-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.exp-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.exp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.exp-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-org {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.exp-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.exp-duties {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-duties li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
}

.exp-duties li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    top: 0.15em;
}

/* ============================
   CERTIFICATES
   ============================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cert-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.06);
}

.cert-card .icon {
    font-size: 1.8rem;
    color: var(--accent-purple);
    opacity: 0.7;
    flex-shrink: 0;
}

.cert-card .info h4 { font-size: 1rem; font-weight: 600; }
.cert-card .info p  { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.1rem; }

.cert-card .info .org {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.2rem;
    display: block;
}

/* ============================
   GITHUB ACTIVITY
   ============================ */
.inline-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}
.inline-link:hover { opacity: 0.8; text-decoration: underline; }

.github-activity-card {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.github-activity-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.08);
}

.github-streak-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

/* Fallback — hidden by default, shown when img fails */
.github-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.github-fallback i { font-size: 2.5rem; color: var(--text-muted); }

.github-fallback a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}
.github-fallback a:hover { text-decoration: underline; }

/* When image fails, .img-error class is added via JS/onerror */
.github-activity-card.img-error .github-streak-img { display: none; }
.github-activity-card.img-error .github-fallback   { display: flex; }

/* CTA button */
.github-cta {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.github-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.github-cta-btn i:first-child { font-size: 1.1rem; color: var(--accent-cyan); }
.github-cta-btn i:last-child  { font-size: 0.75rem; opacity: 0.6; }

.github-cta-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

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

/* ============================
   CONTACT
   ============================ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info p { color: var(--text-secondary); line-height: 1.8; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.06);
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item .text { display: flex; flex-direction: column; }

.contact-item .text .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contact-item .text .value {
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
}

.contact-item .copy-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.contact-item .copy-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.06);
}
.contact-item .copy-btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.contact-social a:hover {
    background: var(--bg-card-hover);
    color: var(--accent-cyan);
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.1);
}
.contact-social a:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Contact actions (replacing the fake form) */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

.contact-actions p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.contact-action-btn i { font-size: 1.1rem; color: var(--accent-cyan); }

.contact-action-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.15);
}

.contact-action-btn.primary-action {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.contact-action-btn.primary-action i { color: #fff; }

.contact-action-btn.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.25);
}

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

@media (max-width: 768px) {
    .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================
   FOOTER
   ============================ */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 2.5rem 0 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p { color: var(--text-muted); font-size: 0.85rem; }

.footer .links { display: flex; gap: 1.2rem; }

.footer .links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer .links a:hover { color: var(--accent-cyan); }

/* ============================
   BACK TO TOP
   ============================ */
.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--bg-card-hover);
    color: var(--accent-cyan);
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.1);
}
.back-top:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ============================
   TOAST NOTIFICATION
   ============================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.8rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-glass);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast i { color: var(--accent-cyan); }

/* ============================
   MOUSE GLOW (subtle)
   ============================ */
.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.03), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: opacity 0.3s ease;
}

/* ============================
   REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    section { opacity: 1 !important; transform: none !important; }
    .hero-typing .cursor-blink { animation: none !important; }
    .loader-ring { animation: none !important; }
}

/* ============================
   UTILITY
   ============================ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.gap-1 { gap: 0.5rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
