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

:root {
    --bg: #050b18;
    --bg2: #0a1628;
    --surface: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --primary: #7c3aed;
    --primary2: #a855f7;
    --accent: #06b6d4;
    --accent2: #22d3ee;
    --green: #10b981;
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #64748b;
    --glow: rgba(124,58,237,0.3);
    --glow2: rgba(6,182,212,0.3);
    --orange: #f59e0b;
}

html { scroll-behavior: smooth; zoom: 0.8; }

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

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999; width: 0%; transition: width 0.1s;
    box-shadow: 0 0 10px var(--primary2);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5,11,24,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 2rem;
}

.nav-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: auto;
}

.logo-bracket { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.nav-menu { display: flex; list-style: none; gap: 0.2rem; }

.nav-menu a {
    text-decoration: none; color: var(--text2);
    font-size: 0.9rem; font-weight: 500;
    padding: 8px 14px; border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text);
    background: var(--surface);
}

.btn-resume {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; text-decoration: none;
    font-size: 0.85rem; font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0 20px var(--glow);
}

.btn-resume:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--glow); }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== SECTION COMMON ===== */
.section { padding: 100px 0; position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
    font-family: 'Fira Code', monospace;
    color: var(--accent); font-size: 0.9rem;
    margin-bottom: 12px; display: block;
}

.section-title {
    font-size: 2.8rem; font-weight: 800;
    color: var(--text); line-height: 1.2;
}

.section-sub { color: var(--text2); margin-top: 12px; font-size: 1.05rem; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 4rem;
    padding: 120px 80px 80px;
    position: relative; z-index: 1;
    max-width: 1300px; margin: 0 auto;
}

.hero-greeting {
    font-size: 1.1rem; color: var(--accent);
    margin-bottom: 12px; font-weight: 500;
}

.hero-content h1 {
    font-size: 4.5rem; font-weight: 800;
    line-height: 1.1; margin-bottom: 20px;
    color: var(--text);
}

.typewriter-wrapper {
    font-size: 1.4rem; color: var(--text2);
    margin-bottom: 20px; font-weight: 500;
    min-height: 2rem;
}

.typewriter { color: var(--primary2); font-weight: 600; }
.cursor { color: var(--accent); animation: blink 1s infinite; }

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

.hero-desc {
    color: var(--text2); font-size: 1.05rem;
    max-width: 480px; margin-bottom: 36px; line-height: 1.8;
}

.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.btn-primary-hero {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; text-decoration: none; font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow);
}

.btn-primary-hero:hover { transform: translateY(-3px); box-shadow: 0 0 40px var(--glow); }

.btn-ghost-hero {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text); text-decoration: none; font-weight: 600;
    background: var(--surface);
    transition: all 0.3s ease;
}

.btn-ghost-hero:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.hero-stats { display: flex; align-items: center; gap: 24px; }

.hero-stat { text-align: center; }
.hero-stat span { font-size: 2rem; font-weight: 800; color: var(--primary2); }
.hero-stat p { font-size: 0.8rem; color: var(--text3); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Code Card */
.code-card {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 0 60px rgba(124,58,237,0.2);
}

.code-header {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--text3); margin-left: auto; }

.code-body { padding: 24px; font-family: 'Fira Code', monospace; font-size: 0.85rem; line-height: 1.8; }

.c-keyword { color: #c792ea; }
.c-class { color: #82aaff; }
.c-fn { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-comment { color: var(--text3); }

/* ===== WHAT I DO ===== */
.what-i-do { background: var(--bg2); }

.expertise-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.expertise-card {
    border-radius: 20px; padding: 32px 24px;
    text-align: center; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}

.expertise-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transition: transform 0.3s ease;
    transform-origin: left;
}

.expertise-card:hover { transform: translateY(-8px); border-color: rgba(124,58,237,0.3); }
.expertise-card:hover::after { transform: scaleX(1); }

.expertise-icon {
    font-size: 2.5rem; margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 12px var(--primary2));
}

.expertise-card h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--text); margin-bottom: 12px;
}

.expertise-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }

/* ===== ABOUT ===== */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }

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

.about-img-container {
    position: relative; display: inline-block;
}

.about-img-container::before {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    animation: borderRotate 3s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-img {
    width: 320px; height: 320px;
    border-radius: 20px;
    border: 2px solid var(--border);
    display: block;
    object-fit: cover;
    object-position: center top;
}

.img-glow {
    position: absolute; inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
}

.about-badges { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.badge {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600; color: var(--text2);
}

.badge i { color: var(--primary2); }

.about-text p { color: var(--text2); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.about-text strong { color: var(--text); }

.about-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }

.info-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text2); font-size: 0.9rem;
}

.info-item i { color: var(--accent); width: 16px; }
.status-dot { color: var(--green) !important; font-size: 0.6rem; }
.available { color: var(--green); font-weight: 600; }

/* ===== SKILLS ===== */
.skills { background: var(--bg); }

.skills-tabs {
    display: flex; gap: 8px; justify-content: center;
    margin-bottom: 40px; flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 22px; border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text2);
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover { border-color: var(--primary2); color: var(--text); }

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border-color: transparent; color: white;
    box-shadow: 0 0 20px var(--glow);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.skill-pills {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    max-width: 800px; margin: 0 auto;
}

.pill {
    padding: 10px 20px; border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text2);
    font-size: 0.9rem; font-weight: 500;
    cursor: default; transition: all 0.3s ease;
}

.pill:hover {
    border-color: var(--primary2); color: var(--primary2);
    background: rgba(124,58,237,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg2); }

.projects-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: 16px; padding: 28px;
    transition: all 0.3s ease; position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity 0.3s ease;
}

.project-card:hover { transform: translateY(-6px); border-color: rgba(124,58,237,0.3); }
.project-card:hover::before { opacity: 1; }

.project-card.featured { border-color: rgba(124,58,237,0.4); }
.project-card.featured::before { opacity: 1; }

.featured-badge {
    position: absolute; top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
}

.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }

.project-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
}

.project-links-top { display: flex; gap: 12px; }

.project-links-top a {
    color: var(--text3); font-size: 1.1rem;
    text-decoration: none; transition: color 0.2s;
}

.project-links-top a:hover { color: var(--primary2); }

.project-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.project-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.project-tags span {
    padding: 4px 12px; border-radius: 20px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--primary2); font-size: 0.75rem; font-weight: 600;
}

/* ===== EXPERIENCE ===== */
.experience { background: var(--bg); }

.timeline { max-width: 800px; margin: 0 auto; position: relative; }

.timeline::before {
    content: '';
    position: absolute; left: 24px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item { display: flex; gap: 32px; margin-bottom: 40px; padding-left: 8px; }

.timeline-dot {
    flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
    box-shadow: 0 0 20px var(--glow);
    z-index: 1;
}

.timeline-card { flex: 1; border-radius: 16px; padding: 24px; }

.timeline-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}

.timeline-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.timeline-card h4 { color: var(--accent); font-size: 0.9rem; margin-top: 4px; font-weight: 500; }
.timeline-card h4 i { margin-right: 6px; }

.timeline-date {
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--primary2); font-size: 0.8rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}

.timeline-card ul { list-style: none; margin-bottom: 16px; }
.timeline-card ul li { color: var(--text2); font-size: 0.9rem; padding: 4px 0; padding-left: 16px; position: relative; }
.timeline-card ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-tags span {
    padding: 3px 10px; border-radius: 20px;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.3);
    color: var(--accent); font-size: 0.75rem; font-weight: 600;
}

/* ===== CONTACT ===== */
.contact { background: var(--bg2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }

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

.contact-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: 14px;
}

.contact-card i { font-size: 1.3rem; color: var(--primary2); width: 24px; text-align: center; }
.contact-card p { font-size: 0.75rem; color: var(--text3); margin-bottom: 2px; }
.contact-card a, .contact-card span { color: var(--text); font-weight: 500; text-decoration: none; font-size: 0.9rem; }
.contact-card a:hover { color: var(--primary2); }

.social-row { display: flex; gap: 12px; padding: 8px 0; }

.social-btn {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text2); text-decoration: none; font-size: 1rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border-color: transparent; color: white;
    transform: translateY(-3px); box-shadow: 0 8px 20px var(--glow);
}

.contact-form { border-radius: 20px; padding: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text2); }

.form-group input, .form-group textarea {
    padding: 12px 16px; border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text); font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease; resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary2);
    background: rgba(124,58,237,0.05);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text3); }

.btn-submit {
    width: 100%; padding: 14px;
    border-radius: 10px; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 0 30px var(--glow);
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--glow); }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; border: none; cursor: pointer;
    font-size: 1rem; z-index: 999;
    box-shadow: 0 0 20px var(--glow);
    transition: all 0.3s ease;
    opacity: 0; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}

.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 0 30px var(--glow); }

/* ===== CERTIFICATIONS ===== */
.certs-section { margin-top: 60px; }

.certs-title {
    font-size: 1.6rem; font-weight: 700;
    color: var(--text); text-align: center;
    margin-bottom: 28px;
}

.certs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.cert-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,58,237,0.4);
    box-shadow: 0 8px 25px var(--glow);
}

.cert-link-icon {
    margin-left: auto; color: var(--text3);
    font-size: 0.8rem; flex-shrink: 0;
    transition: color 0.2s;
}

.cert-card:hover .cert-link-icon { color: var(--primary2); }

.cert-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
}

.cert-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cert-card p { font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.cert-card span { font-size: 0.75rem; color: var(--text3); }

/* Project Meta */
.project-meta {
    font-size: 0.78rem; color: var(--text3);
    margin-bottom: 14px; margin-top: -6px;
}
.project-meta i { margin-right: 5px; color: var(--accent); }

/* Footer Links */
.footer-links {
    display: flex; justify-content: center; gap: 16px;
    margin: 12px 0;
}
.footer-links a {
    color: var(--text3); font-size: 1.1rem;
    text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary2); }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    position: relative; z-index: 1;
}

.footer-content { text-align: center; }

.footer-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 12px;
}

.footer-content p { color: var(--text3); font-size: 0.9rem; margin-bottom: 4px; }
.footer-copy { font-size: 0.8rem !important; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary2);
    position: fixed; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease;
    box-shadow: 0 0 10px var(--primary2);
}

body:hover .cursor-dot { opacity: 1; }

/* ===== HERO TAG ===== */
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; color: var(--green);
    border-color: rgba(16,185,129,0.3) !important;
    background: rgba(16,185,129,0.08) !important;
    margin-bottom: 20px;
}

.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}

/* ===== MARQUEE ===== */
.marquee-section {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0; overflow: hidden;
    position: relative; z-index: 1;
}

.marquee-track { overflow: hidden; }

.marquee-content {
    display: flex; gap: 40px; width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 0.9rem; font-weight: 600;
    color: var(--text3); white-space: nowrap;
    transition: color 0.2s;
    font-family: 'Fira Code', monospace;
}

.marquee-content span:hover { color: var(--primary2); }

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

.marquee-section:hover .marquee-content { animation-play-state: paused; }

/* ===== EASTER EGG ===== */
.easter-egg-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.easter-egg-overlay.active { opacity: 1; pointer-events: all; }

.easter-egg-box {
    text-align: center; padding: 48px 40px;
    border-radius: 24px; max-width: 440px; width: 90%;
    border-color: rgba(124,58,237,0.5) !important;
    box-shadow: 0 0 100px rgba(124,58,237,0.4);
    animation: easterIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes easterIn {
    from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.easter-egg-emoji {
    font-size: 4rem; margin-bottom: 16px;
    animation: easterBounce 1s ease infinite alternate;
}
@keyframes easterBounce {
    from { transform: translateY(0) rotate(-5deg); }
    to { transform: translateY(-10px) rotate(5deg); }
}

.easter-egg-box h2 {
    font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 8px;
}
.easter-egg-box > p { color: var(--accent); font-weight: 600; margin-bottom: 24px; }

.easter-egg-msg {
    background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
    border-radius: 12px; padding: 16px 20px; margin-bottom: 24px;
}
.easter-egg-msg p { color: var(--text2); font-style: italic; font-size: 0.95rem; line-height: 1.6; }
.easter-sig { color: var(--primary2) !important; font-style: normal !important; font-weight: 600; margin-top: 8px !important; font-size: 0.85rem !important; }

.easter-stats {
    display: flex; justify-content: center; gap: 32px; margin-bottom: 28px;
}
.easter-stats div span { font-size: 2rem; display: block; margin-bottom: 4px; }
.easter-stats div p { font-size: 0.78rem; color: var(--text3); font-weight: 600; }

.easter-close {
    padding: 12px 28px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--glow);
}
.easter-close:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--glow); }

/* ===== MATRIX CANVAS ===== */
#matrixCanvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    opacity: 0; transition: opacity 1s ease;
}
#matrixCanvas.active { opacity: 0.07; }

/* ===== VIBE WIDGET ===== */
.vibe-widget {
    position: fixed; bottom: 32px; left: 32px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-radius: 50px;
    z-index: 998; cursor: default;
    border-color: rgba(16,185,129,0.3) !important;
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease 3s both;
}
.vibe-widget:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(16,185,129,0.2); }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.vibe-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.8rem; flex-shrink: 0;
    animation: spinSlow 4s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.vibe-label { font-size: 0.65rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.vibe-track { font-size: 0.8rem; color: var(--text); font-weight: 600; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vibe-bars {
    display: flex; align-items: flex-end; gap: 2px; height: 20px;
}
.vibe-bars span {
    width: 3px; background: var(--green); border-radius: 2px;
    animation: vibeBar 0.8s ease-in-out infinite alternate;
}
.vibe-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.vibe-bars span:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.vibe-bars span:nth-child(3) { height: 12px; animation-delay: 0.4s; }
.vibe-bars span:nth-child(4) { height: 6px; animation-delay: 0.6s; }
@keyframes vibeBar {
    from { transform: scaleY(0.4); }
    to { transform: scaleY(1); }
}

/* ===== HIRE ME MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
    width: 100%; max-width: 500px; border-radius: 24px;
    padding: 32px; position: relative;
    border-color: rgba(124,58,237,0.4) !important;
    box-shadow: 0 0 80px rgba(124,58,237,0.25);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text3); cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--primary2); }

.modal-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 28px;
}
.modal-avatar img {
    width: 56px; height: 56px; border-radius: 50%;
    object-fit: cover; object-position: center top;
    border: 2px solid var(--primary2);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.modal-header p { font-size: 0.85rem; color: var(--green); margin-top: 2px; }

.modal-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.modal-option {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 14px;
    text-decoration: none; transition: all 0.2s ease;
    cursor: pointer;
}
.modal-option:hover {
    border-color: rgba(124,58,237,0.4) !important;
    transform: translateX(4px);
    background: rgba(124,58,237,0.1) !important;
}
.modal-option-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
}
.modal-option h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.modal-option p { font-size: 0.78rem; color: var(--text3); }
.modal-option .fa-arrow-right { margin-left: auto; color: var(--text3); font-size: 0.85rem; transition: transform 0.2s; }
.modal-option:hover .fa-arrow-right { transform: translateX(4px); color: var(--primary2); }

.modal-footer {
    display: flex; align-items: center; gap: 8px;
    justify-content: center;
    font-size: 0.82rem; color: var(--text3);
}

/* ===== FLOATING AI ORB ===== */
.ai-orb {
    position: fixed; bottom: 160px; right: 36px;
    width: 52px; height: 52px;
    cursor: pointer; z-index: 997;
    display: flex; align-items: center; justify-content: center;
}
.orb-core {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; position: relative; z-index: 2;
    box-shadow: 0 0 25px rgba(6,182,212,0.5);
    transition: transform 0.3s ease;
    animation: orbFloat 3s ease-in-out infinite;
}
.ai-orb:hover .orb-core { transform: scale(1.1); }

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

.orb-ring {
    position: absolute; border-radius: 50%;
    border: 1.5px solid rgba(6,182,212,0.3);
    animation: orbRing 2s ease-out infinite;
}
.orb-ring:nth-child(1) { width: 70px; height: 70px; animation-delay: 0s; }
.orb-ring:nth-child(2) { width: 90px; height: 90px; animation-delay: 0.5s; }

@keyframes orbRing {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.orb-tooltip {
    position: absolute; right: 64px; top: 50%;
    transform: translateY(-50%);
    background: rgba(10,22,40,0.95);
    border: 1px solid var(--border);
    color: var(--text); font-size: 0.78rem; font-weight: 600;
    padding: 6px 12px; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.ai-orb:hover .orb-tooltip { opacity: 1; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text2);
    cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--primary2); color: var(--primary2); transform: rotate(20deg); }

/* ===== LIGHT MODE ===== */
body.light {
    --bg: #f0f4ff;
    --bg2: #e8eeff;
    --surface: rgba(0,0,0,0.04);
    --border: rgba(0,0,0,0.1);
    --text: #1a1a2e;
    --text2: #4a5568;
    --text3: #718096;
    --glow: rgba(124,58,237,0.2);
}
body.light .navbar.scrolled { background: rgba(240,244,255,0.95); }
body.light .nav-menu { background: rgba(240,244,255,0.98); }
body.light #particles { opacity: 0.3; }
body.light .code-body { background: #1e1e3f; border-radius: 0 0 16px 16px; }

/* ===== SKILL BARS ===== */
.skill-bars {
    max-width: 700px; margin: 48px auto 0;
    display: flex; flex-direction: column; gap: 20px;
}
.skill-bar-item {}
.skill-bar-header {
    display: flex; justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem; font-weight: 600; color: var(--text2);
}
.skill-bar-pct { color: var(--primary2); }
.skill-bar-track {
    height: 8px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%; width: 0%; border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 10px var(--glow);
}

/* ===== GRADIENT BLOBS ===== */
.blob {
    position: fixed; border-radius: 50%;
    filter: blur(80px); opacity: 0.12;
    pointer-events: none; z-index: 0;
    animation: blobMove 12s ease-in-out infinite alternate;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: 10%; right: -100px; animation-delay: 4s; }
.blob-3 { width: 350px; height: 350px; background: var(--primary2); top: 50%; left: 40%; animation-delay: 8s; }
@keyframes blobMove {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(40px,30px) scale(1.1); }
    100% { transform: translate(-20px,50px) scale(0.95); }
}

/* ===== NEON SECTION TITLES ===== */
.section-title {
    font-size: 2.8rem; font-weight: 800;
    color: var(--text); line-height: 1.2;
    position: relative; display: inline-block;
}
.section-title::before {
    content: attr(data-text);
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0; transition: opacity 0.3s ease;
    filter: blur(8px);
}
.section-header:hover .section-title::before { opacity: 0.6; }

/* ===== FLIP CARDS ===== */
.flip-card { perspective: 1000px; height: 360px; }
.flip-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
    position: absolute; inset: 0;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 16px; padding: 20px;
    overflow: hidden;
}
.flip-front {
    transform: rotateY(0deg);
    display: flex; flex-direction: column;
}
.flip-front .project-card {
    position: static !important;
    height: 100%;
}
.flip-front h3 { font-size: 1rem; margin-bottom: 8px; }
.flip-front p { font-size: 0.82rem; line-height: 1.5; margin-bottom: 8px; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.flip-back {
    transform: rotateY(180deg);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.15)) !important;
    border-color: rgba(124,58,237,0.4) !important;
}
.flip-back h3 {
    font-size: 1.1rem; font-weight: 800; color: var(--text);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.flip-back-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 16px; width: 100%;
}
.flip-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 8px;
}
.flip-stat span { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.flip-stat p { font-size: 0.75rem; color: var(--text2); font-weight: 600; }
.flip-tech { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.flip-tech span {
    padding: 3px 10px; border-radius: 20px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--primary2); font-size: 0.72rem; font-weight: 600;
}
.flip-links { display: flex; gap: 10px; }
.flip-btn {
    padding: 8px 18px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; text-decoration: none;
    font-size: 0.82rem; font-weight: 600;
    transition: all 0.2s ease;
    display: flex; align-items: center; gap: 6px;
}
.flip-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--glow); }

/* ===== SEARCH BTN ===== */
.search-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text3);
    font-size: 0.8rem; cursor: pointer; transition: all 0.2s ease;
}
.search-btn:hover { border-color: var(--primary2); color: var(--text); }
.search-btn kbd {
    background: rgba(255,255,255,0.08); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 4px; font-size: 0.7rem;
}

/* ===== SPOTLIGHT ===== */
.spotlight-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 15vh;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.spotlight-overlay.active { opacity: 1; pointer-events: all; }

.spotlight-box {
    width: 100%; max-width: 580px; border-radius: 16px;
    overflow: hidden; border-color: rgba(124,58,237,0.4) !important;
    box-shadow: 0 0 60px rgba(124,58,237,0.3);
}

.spotlight-input-wrap {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.spotlight-input-wrap i { color: var(--text3); font-size: 1rem; }
.spotlight-input-wrap input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 1.05rem; font-family: 'Inter', sans-serif;
}
.spotlight-input-wrap input::placeholder { color: var(--text3); }
.spotlight-input-wrap kbd {
    background: var(--surface); border: 1px solid var(--border);
    padding: 3px 8px; border-radius: 6px;
    font-size: 0.75rem; color: var(--text3);
}

.spotlight-results { max-height: 320px; overflow-y: auto; padding: 8px; }

.spotlight-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 10px;
    cursor: pointer; transition: all 0.15s ease;
    text-decoration: none;
}
.spotlight-item:hover, .spotlight-item.selected {
    background: rgba(124,58,237,0.15);
}
.spotlight-item-icon {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: white;
}
.spotlight-item-text h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.spotlight-item-text p { font-size: 0.78rem; color: var(--text3); }

.spotlight-footer {
    display: flex; gap: 20px; padding: 12px 20px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem; color: var(--text3);
}
.spotlight-footer kbd {
    background: var(--surface); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 4px; margin-right: 4px;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed; bottom: 90px; right: 32px;
    z-index: 998; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

.chat-toggle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border: none; color: white; font-size: 1.3rem;
    cursor: pointer; position: relative;
    box-shadow: 0 0 30px var(--glow);
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 0 40px var(--glow); }

.chat-badge {
    position: absolute; top: -4px; right: -4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--green); color: white;
    font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    animation: pulse-dot 2s infinite;
}

.chat-box {
    width: 340px; border-radius: 20px;
    overflow: hidden; display: none; flex-direction: column;
    border-color: rgba(124,58,237,0.3) !important;
    box-shadow: 0 0 50px rgba(124,58,237,0.2);
    max-height: 480px;
}
.chat-box.open { display: flex; }

.chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.2));
    border-bottom: 1px solid var(--border);
}
.chat-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white; flex-shrink: 0;
}
.chat-header h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--green); }
.chat-close {
    margin-left: auto; background: none; border: none;
    color: var(--text3); cursor: pointer; font-size: 1rem;
    transition: color 0.2s;
}
.chat-close:hover { color: var(--text); }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    max-height: 280px;
}

.chat-msg { max-width: 85%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.chat-msg p {
    padding: 10px 14px; border-radius: 14px;
    font-size: 0.85rem; line-height: 1.5;
}
.chat-msg.bot p {
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.2);
    color: var(--text); border-radius: 4px 14px 14px 14px;
}
.chat-msg.user p {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white; border-radius: 14px 4px 14px 14px;
}

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.suggestion-btn {
    padding: 6px 12px; border-radius: 20px;
    border: 1px solid rgba(124,58,237,0.3);
    background: rgba(124,58,237,0.08);
    color: var(--primary2); font-size: 0.75rem;
    cursor: pointer; transition: all 0.2s ease;
}
.suggestion-btn:hover { background: rgba(124,58,237,0.2); transform: translateY(-1px); }

.chat-input-wrap {
    display: flex; gap: 8px; padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.chat-input-wrap input {
    flex: 1; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 8px 12px; color: var(--text); font-size: 0.85rem;
    outline: none; font-family: 'Inter', sans-serif;
}
.chat-input-wrap input:focus { border-color: var(--primary2); }
.chat-input-wrap button {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.chat-input-wrap button:hover { transform: scale(1.1); }

/* ===== TOAST ===== */
.toast-container {
    position: fixed; bottom: 32px; left: 32px;
    z-index: 9997; display: flex; flex-direction: column; gap: 10px;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: 12px;
    background: rgba(10,22,40,0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    color: var(--text); font-size: 0.88rem; font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: toastIn 0.3s ease;
    min-width: 260px;
}
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.success i { color: var(--green); }
.toast.info { border-color: rgba(6,182,212,0.4); }
.toast.info i { color: var(--accent); }
.toast.fadeout { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-20px); }
}

/* ===== GALAXY STARS ===== */
#galaxyCanvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    opacity: 0.6;
}

/* ===== NEURAL NETWORK CANVAS ===== */
#neuralCanvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    opacity: 0.18;
}

/* ===== GEOMETRIC GRID ===== */
#gridCanvas {
    position: fixed; bottom: 0; left: 0;
    width: 100%; height: 40%;
    z-index: 0; pointer-events: none;
    opacity: 0.12;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

/* ===== AURORA WAVES ===== */
.aurora-bg {
    position: fixed; bottom: 0; left: 0;
    width: 100%; height: 320px;
    z-index: 0; pointer-events: none;
    overflow: hidden;
    opacity: 0.18;
}
.aurora-wave {
    position: absolute; bottom: 0; left: -50%;
    width: 200%; height: 100%;
    border-radius: 40%;
}
.aurora-wave:nth-child(1) {
    background: linear-gradient(180deg, transparent 60%, rgba(124,58,237,0.5) 100%);
    animation: auroraWave 8s ease-in-out infinite;
}
.aurora-wave:nth-child(2) {
    background: linear-gradient(180deg, transparent 60%, rgba(6,182,212,0.4) 100%);
    animation: auroraWave 12s ease-in-out infinite reverse;
    animation-delay: -3s;
}
.aurora-wave:nth-child(3) {
    background: linear-gradient(180deg, transparent 60%, rgba(16,185,129,0.3) 100%);
    animation: auroraWave 10s ease-in-out infinite;
    animation-delay: -6s;
}
@keyframes auroraWave {
    0%,100% { transform: rotate(-3deg) translateY(10px); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

/* ===== SCANLINES ===== */
.scanlines {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    opacity: 0.5;
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9998;
    animation: noiseShift 0.5s steps(2) infinite;
}
@keyframes noiseShift {
    0% { transform: translate(0,0); }
    25% { transform: translate(-1px,1px); }
    50% { transform: translate(1px,-1px); }
    75% { transform: translate(-1px,-1px); }
    100% { transform: translate(1px,1px); }
}

/* ===== GLITCH EFFECT ON NAME ===== */
.hero-content h1 {
    position: relative;
}
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}
.glitch::before {
    background-image: linear-gradient(135deg, var(--primary2), var(--accent));
    animation: glitch1 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, 0);
}
.glitch::after {
    background-image: linear-gradient(135deg, var(--accent), var(--primary2));
    animation: glitch2 4s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, 0);
}
@keyframes glitch1 {
    0%,90%,100% { transform: translate(0); opacity: 0; }
    92% { transform: translate(-3px, 1px); opacity: 0.8; }
    94% { transform: translate(3px, -1px); opacity: 0.8; }
    96% { transform: translate(-2px, 0); opacity: 0.8; }
    98% { transform: translate(0); opacity: 0; }
}
@keyframes glitch2 {
    0%,90%,100% { transform: translate(0); opacity: 0; }
    93% { transform: translate(3px, 1px); opacity: 0.8; }
    95% { transform: translate(-3px, -1px); opacity: 0.8; }
    97% { transform: translate(2px, 0); opacity: 0.8; }
    99% { transform: translate(0); opacity: 0; }
}

/* ===== CURSOR TRAIL ===== */
.cursor-trail {
    position: fixed;
    width: 6px; height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    animation: trailFade 0.6s ease forwards;
}
@keyframes trailFade {
    0% { opacity: 0.8; transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(0); }
}

/* ===== MAGNETIC BUTTON ===== */
.btn-primary-hero, .btn-ghost-hero, .btn-resume, .btn-submit {
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1) !important;
}

/* ===== SKILL ORBIT ===== */
.orbit-section {
    display: flex; justify-content: center; align-items: center;
    padding: 60px 0 20px;
}
.orbit-wrap {
    position: relative;
    width: 320px; height: 320px;
}
.orbit-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 40px var(--glow), 0 0 80px rgba(6,182,212,0.2);
    z-index: 2;
    animation: orbitCenterPulse 2s ease-in-out infinite alternate;
}
@keyframes orbitCenterPulse {
    from { box-shadow: 0 0 30px var(--glow); }
    to { box-shadow: 0 0 60px var(--glow), 0 0 100px rgba(6,182,212,0.3); }
}
.orbit-ring {
    position: absolute; top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(124,58,237,0.2);
    transform: translate(-50%, -50%);
}
.orbit-ring-1 { width: 160px; height: 160px; animation: orbitRotate 8s linear infinite; }
.orbit-ring-2 { width: 240px; height: 240px; animation: orbitRotate 14s linear infinite reverse; }
.orbit-ring-3 { width: 320px; height: 320px; animation: orbitRotate 20s linear infinite; }
@keyframes orbitRotate { to { transform: translate(-50%,-50%) rotate(360deg); } }

.orbit-item {
    position: absolute;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(124,58,237,0.2);
    transition: all 0.3s ease;
    cursor: default;
    top: 50%; left: 50%;
}
.orbit-item:hover {
    transform: translate(-50%,-50%) scale(1.3) !important;
    border-color: var(--primary2);
    box-shadow: 0 0 25px var(--glow);
    z-index: 10;
}
.orbit-item .orbit-label {
    position: absolute; bottom: -22px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem; font-weight: 700;
    color: var(--text3); white-space: nowrap;
    opacity: 0; transition: opacity 0.2s;
    font-family: 'Fira Code', monospace;
}
.orbit-item:hover .orbit-label { opacity: 1; color: var(--primary2); }

/* ===== ANIMATED GRADIENT MESH ===== */
.gradient-mesh {
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(168,85,247,0.05) 0%, transparent 50%);
    pointer-events: none; z-index: 0;
    animation: meshMove 10s ease-in-out infinite alternate;
}
@keyframes meshMove {
    0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
    100% { background-position: 10% 20%, 90% 30%, 60% 80%; }
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    position: fixed; pointer-events: none; z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* ===== NAV ACTIVE UNDERLINE ===== */
.nav-menu a {
    text-decoration: none; color: var(--text2);
    font-size: 0.9rem; font-weight: 500;
    padding: 8px 14px; border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px;
    background: linear-gradient(90deg, var(--primary2), var(--accent));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary2);
}

/* ===== FOOTER UPGRADE ===== */
.footer-tagline { color: var(--text2); font-size: 0.95rem; margin-bottom: 12px; }

.footer-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
    padding: 6px 16px; border-radius: 20px;
    color: var(--green); font-size: 0.85rem; font-weight: 500;
    margin-bottom: 20px;
}

.footer-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.footer-links a {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text3); font-size: 1rem;
    text-decoration: none; transition: all 0.3s ease;
}

.footer-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border-color: transparent; color: white;
    transform: translateY(-3px); box-shadow: 0 8px 20px var(--glow);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; padding: 120px 24px 80px; text-align: center; }
    .hero-visual { display: none; }
    .hero-desc { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%;
        flex-direction: column; background: rgba(5,11,24,0.98);
        padding: 24px; gap: 8px; transition: left 0.3s ease;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active { left: 0; }
    .btn-resume { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-info-grid { grid-template-columns: 1fr; }
    .about-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { gap: 20px; }
    .timeline-dot { width: 40px; height: 40px; font-size: 0.9rem; }
    .expertise-grid { grid-template-columns: 1fr 1fr; }
    .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.4rem; }
    .hero-stats { gap: 16px; }
    .hero-stat span { font-size: 1.6rem; }
}

/* ===== FLIP CARD MOBILE FIX ===== */
@media (max-width: 768px) {
    .flip-card { height: auto; }
    .flip-inner { transform: none !important; }
    .flip-front { position: relative; }
    .flip-back { display: none; }
}

/* ===== GLOBE ===== */
.globe-wrap {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 24px;
}
#globeCanvas {
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(124,58,237,0.3), 0 0 80px rgba(6,182,212,0.15);
    background: radial-gradient(circle at 35% 35%, #1a1a4e, #050b18);
}
.globe-label {
    margin-top: 12px; padding: 6px 16px; border-radius: 20px;
    font-size: 0.82rem; font-weight: 600; color: var(--green);
    display: flex; align-items: center; gap: 8px;
    border-color: rgba(16,185,129,0.3) !important;
    background: rgba(16,185,129,0.08) !important;
}

/* ===== ACCORDION TIMELINE ===== */
.accordion-item .timeline-card { cursor: pointer; }

.accordion-item .timeline-card ul,
.accordion-item .timeline-card .timeline-tags {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    opacity: 0;
}

.accordion-item.open .timeline-card ul,
.accordion-item.open .timeline-card .timeline-tags {
    max-height: 300px; opacity: 1;
}

.accordion-item .timeline-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--text3); font-size: 0.8rem;
    margin-left: auto; transition: transform 0.3s ease;
    flex-shrink: 0;
}
.accordion-item.open .timeline-header::after {
    transform: rotate(180deg);
    color: var(--primary2);
}

.accordion-item .timeline-card:hover { border-color: rgba(124,58,237,0.3) !important; }
.accordion-item.open .timeline-card { border-color: rgba(124,58,237,0.4) !important; }

/* ===== TIMELINE LOCATION ===== */
.timeline-location {
    font-size: 0.78rem; color: var(--accent);
    margin-top: 4px; display: flex; align-items: center; gap: 5px;
}
.timeline-location i { font-size: 0.7rem; }

/* ===== ACCORDION TIMELINE FIX ===== */
.accordion-item .timeline-card {
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.accordion-item .timeline-card ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-bottom 0.3s ease;
}

.accordion-item .timeline-card .timeline-tags {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

.accordion-item.open .timeline-card ul {
    max-height: 400px;
    opacity: 1;
    margin-bottom: 16px;
}

.accordion-item.open .timeline-card .timeline-tags {
    max-height: 100px;
    opacity: 1;
}

.accordion-item .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.accordion-toggle-icon {
    color: var(--text3);
    font-size: 0.85rem;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
    align-self: center;
}

.accordion-item.open .accordion-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary2);
}

.accordion-item.open .timeline-card {
    border-color: rgba(124,58,237,0.4) !important;
}

/* ===== CLEAN ACCORDION ===== */
.acc-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.acc-item.open { border-color: rgba(124,58,237,0.5); }

.acc-header {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}
.acc-header:hover { background: rgba(124,58,237,0.05); }

.acc-dot {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.95rem;
    box-shadow: 0 0 15px var(--glow);
}

.acc-title { flex: 1; }
.acc-title h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.acc-title h4 { font-size: 0.8rem; color: var(--accent); font-weight: 500; }

.acc-date {
    font-size: 0.75rem; font-weight: 600; color: var(--primary2);
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

.acc-arrow {
    color: var(--text3); font-size: 0.85rem;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}
.acc-item.open .acc-arrow { transform: rotate(180deg); color: var(--primary2); }

.acc-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 20px;
}
.acc-item.open .acc-body { max-height: 400px; padding: 0 20px 18px; }

.acc-body ul { list-style: none; margin-bottom: 14px; }
.acc-body ul li {
    color: var(--text2); font-size: 0.88rem;
    padding: 5px 0 5px 16px; position: relative; line-height: 1.5;
}
.acc-body ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

.acc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-tags span {
    padding: 3px 10px; border-radius: 20px;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.3);
    color: var(--accent); font-size: 0.75rem; font-weight: 600;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; }

.loader-logo {
    font-family: 'Fira Code', monospace;
    font-size: 3.5rem; font-weight: 800;
    margin-bottom: 32px;
    animation: loaderPulse 1s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
    from { transform: scale(0.95); }
    to { transform: scale(1.05); }
}

.loader-bracket {
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.loader-ag { color: var(--text); }

.loader-bar-wrap {
    width: 200px; height: 3px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    margin: 0 auto 16px; overflow: hidden;
}
.loader-bar {
    height: 100%; width: 0%; border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px var(--primary2);
    transition: width 0.3s ease;
}
.loader-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem; color: var(--text3);
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg); }

.testi-carousel { position: relative; overflow: hidden; }

.testi-track {
    display: flex; gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.testi-card {
    min-width: calc(33.333% - 16px);
    border-radius: 16px; padding: 28px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}
.testi-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.3); }

.testi-quote { margin-bottom: 14px; }
.testi-quote i { color: var(--primary2); font-size: 1.4rem; }

.testi-card > p {
    color: var(--text2); font-size: 0.9rem; line-height: 1.8;
    margin-bottom: 20px; font-style: italic;
}

.testi-author {
    display: flex; align-items: center; gap: 12px;
}
.testi-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.75rem; font-weight: 800;
}
.testi-author h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.testi-author p { font-size: 0.75rem; color: var(--text3); }
.testi-stars { margin-left: auto; color: #f59e0b; font-size: 0.8rem; letter-spacing: 2px; }

.testi-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-top: 28px;
}
.testi-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text2); cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.testi-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border-color: transparent; color: white;
    box-shadow: 0 0 15px var(--glow);
}
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border); cursor: pointer;
    transition: all 0.3s ease;
}
.testi-dot.active {
    background: var(--primary2);
    width: 24px; border-radius: 4px;
    box-shadow: 0 0 8px var(--primary2);
}

@media (max-width: 1024px) {
    .testi-card { min-width: calc(50% - 12px); }
}
@media (max-width: 768px) {
    .testi-card { min-width: 100%; }
}

.timeline-badge {
    font-size: 0.65rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
