/*
  Dark neo‑glass theme with gradient accents
  Author: Alisha Verma (template by GPT‑5 assistant)
*/

:root {
    --bg: #0b1220;
    --bg-2: #0f1729;
    --panel: #0f1729;
    --muted: #9aa5b1;
    --text: #e6edf3;
    --border: #1e293b;
    --accent: #a855f7;
    --accent-2: #22d3ee;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(2, 6, 23, .6);
}

/* Light theme tokens */
:root.light {
    --bg: #f8fafc;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --muted: #475569;
    --text: #0f172a;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text);
    background: radial-gradient(1200px 600px at 70% -10%, rgba(168,85,247,.12), transparent),
                radial-gradient(900px 500px at 20% 10%, rgba(34,211,238,.12), transparent),
                var(--bg);
}

/* animated gradient backdrop */
body::before{
    content:""; position: fixed; inset: -20% -20% auto auto; z-index:-1;
    width: 80vmax; height: 80vmax; filter: blur(120px) saturate(120%);
    background: conic-gradient(from 0deg, rgba(168,85,247,.25), rgba(34,211,238,.25), rgba(20,184,166,.25), rgba(168,85,247,.25));
    animation: spin 24s linear infinite;
    opacity: .35; pointer-events:none;
}
@keyframes spin { to { transform: rotate(1turn); } }

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

.section { padding: 112px 0; position: relative; }
.section-label {
    width: max-content;
    margin: 0 auto 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(168,85,247,.12);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,.25);
    font-size: 12px;
}
.section-title {
    margin: 0 0 12px;
    text-align: center;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
}
.section-title .accent { color: #c084fc; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 820px; font-size: clamp(14px, 2.4vw, 18px); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(11,18,32,.9), rgba(11,18,32,.6));
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .5px; font-size: 18px; }
.brand span { color: #c084fc; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; }
.theme-toggle { display: inline-flex; background: none; border: 0; color: var(--text); font-size: 20px; margin-left: 8px; }
.nav-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-list a:hover { color: #fff; }

@media (max-width: 800px){
    .nav-toggle { display: inline-flex; }
    .nav-list { position: absolute; right: 4%; top: 62px; background: var(--bg-2); border: 1px solid var(--border); padding: 12px 16px; border-radius: 12px; display: none; flex-direction: column; }
    .nav.open .nav-list{ display: flex; }
}

/* Hero */
.hero { padding-top: 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero-title { font-size: clamp(36px, 7vw, 84px); margin: 10px 0 8px; line-height: .95; font-weight: 900; }
.hero-title span { color: #c084fc; }

/* Animated title effect */
.hero-title {
    position: relative;
    overflow: hidden;
}

.hero-title span {
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 20px rgba(192, 132, 252, 0.8), 0 0 30px rgba(192, 132, 252, 0.4);
        transform: scale(1.05);
    }
}
.typing { height: 28px; margin: 8px 0 6px; color: #e2e8f0; font-weight: 600; letter-spacing: .3px; }
.hero-sub { color: var(--muted); font-size: 18px; }
.location-pill { display: inline-flex; align-items: center; gap: 8px; color: #cbd5e1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(15,23,41,.6); }
.cta-row { display: flex; gap: 14px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(90deg, #a855f7, #22d3ee); color: #0b1220; }
.btn-secondary { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.35); color: #e9d5ff; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 24px rgba(168,85,247,.25); }
.btn.ripple { position: relative; overflow: hidden; }
.btn.ripple::after{ content:""; position:absolute; border-radius:50%; inset:0; margin:auto; width:0; height:0; background: rgba(255,255,255,.5); transform: translate(-50%,-50%); pointer-events:none; }
.btn.ripple:active::after{ width: 220%; height: 220%; transition: width .45s ease, height .45s ease; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { color: #cbd5e1; background: rgba(148,163,184,.08); border: 1px solid var(--border); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; transition: transform .2s ease, color .2s ease, border-color .2s ease; }
.socials a:hover { color: #fff; border-color: #334155; transform: scale(1.06); }

.hero-card { background: rgba(17,24,39,.6); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.hero-art svg { width: 100%; height: auto; display: block; }
.avatar-wrap { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; display: grid; place-items: center; padding: 16px; }
.avatar { width: 100%; max-width: 320px; border-radius: 50%; overflow: hidden; position: relative; z-index: 2; }
.avatar svg { width: 100%; height: auto; display: block; }

/* Video avatar styles */
.video-avatar {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
}

.avatar-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.avatar-video:hover {
    transform: scale(1.02);
}

/* Hide circular ring now that avatar is square */
.avatar-ring { display: none; }

/* Keep shiny gradient border from the card */
.hero-card.gradient-border::before { opacity: .9; }

/* Ensure the avatar area respects square within the card */
.avatar-wrap { padding: 0; aspect-ratio: 1 / 1; }

/* Video controls overlay */
.video-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-avatar:hover .video-overlay {
    opacity: 1;
}

.video-controls {
    display: flex;
    gap: 8px;
}

.video-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-btn i {
    font-size: 14px;
}

/* Video fallback */
.video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: linear-gradient(135deg, #0f1729, #1e293b);
    color: #cbd5e1;
    border-radius: 50%;
}

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

.fallback-content i {
    font-size: 48px;
    color: #a855f7;
    margin-bottom: 16px;
}

.fallback-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Floating code symbols animation */
.floating-code .code-symbol {
    animation: float 4s ease-in-out infinite;
}

.floating-code .code-symbol:nth-child(1) { animation-delay: 0s; }
.floating-code .code-symbol:nth-child(2) { animation-delay: 1s; }
.floating-code .code-symbol:nth-child(3) { animation-delay: 2s; }
.floating-code .code-symbol:nth-child(4) { animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(5deg); }
    50% { transform: translateY(-4px) rotate(-3deg); }
    75% { transform: translateY(-12px) rotate(2deg); }
}

/* Code lines typing effect */
.code-lines rect {
    animation: codeTyping 3s ease-in-out infinite;
}

.code-lines rect:nth-child(1) { animation-delay: 0s; }
.code-lines rect:nth-child(2) { animation-delay: 0.2s; }
.code-lines rect:nth-child(3) { animation-delay: 0.4s; }
.code-lines rect:nth-child(4) { animation-delay: 0.6s; }
.code-lines rect:nth-child(5) { animation-delay: 0.8s; }
.code-lines rect:nth-child(6) { animation-delay: 1s; }
.code-lines rect:nth-child(7) { animation-delay: 1.2s; }
.code-lines rect:nth-child(8) { animation-delay: 1.4s; }

@keyframes codeTyping {
    0%, 90%, 100% { opacity: 0.8; }
    45% { opacity: 1; filter: brightness(1.2); }
}

/* Laptop typing animation */
.laptop-screen {
    animation: laptopGlow 4s ease-in-out infinite;
}

@keyframes laptopGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px rgba(14, 165, 233, 0.3)); }
    50% { filter: brightness(1.1) drop-shadow(0 0 15px rgba(14, 165, 233, 0.5)); }
}

/* Keyboard typing effect */
.keyboard {
    animation: keyboardPress 2s ease-in-out infinite;
}

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

/* Hair sway animation */
.hair {
    animation: hairSway 6s ease-in-out infinite;
}

@keyframes hairSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* Table and chair animations */
.table {
    animation: tableGlow 4s ease-in-out infinite;
}

@keyframes tableGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.chair-back, .chair-seat {
    animation: chairGlow 5s ease-in-out infinite;
}

@keyframes chairGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.05); }
}

/* Coffee cup animation */
.coffee-cup {
    animation: coffeeSteam 3s ease-in-out infinite;
}

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

.coffee-liquid {
    animation: coffeeBubble 2s ease-in-out infinite;
}

@keyframes coffeeBubble {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}
.avatar-ring { position: absolute; inset: 10% 10%; border-radius: 999px; pointer-events: none; background:
    conic-gradient(from 0deg, rgba(168,85,247,.6), rgba(34,211,238,.6), rgba(168,85,247,.6));
    filter: blur(24px); opacity: .6; z-index: 1; }
.lightning { position: absolute; inset: auto auto 8% 8%; width: 80px; height: 100px; z-index: 3; opacity: .9; }
.lightning-bolt { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(168,85,247,.6)) drop-shadow(0 0 12px rgba(34,211,238,.5)); }
.hero-blob { position: absolute; inset: -140px -200px auto auto; width: 560px; height: 560px; filter: blur(90px); background: radial-gradient(closest-side, rgba(168,85,247,.25), transparent 70%); pointer-events: none; }

@media (max-width: 980px){ .hero-grid { grid-template-columns: 1fr; } .hero-right { order: -1; } }
@media (max-width: 520px){
    .avatar-wrap { max-width: 320px; padding: 12px; }
    .lightning { width: 66px; height: 84px; inset: auto auto 6% 6%; }
    
    /* Mobile video avatar adjustments */
    .video-avatar {
        max-width: 280px;
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    }
    
    .video-controls {
        gap: 6px;
    }
    
    .video-btn {
        width: 28px;
        height: 28px;
    }
    
    .video-btn i {
        font-size: 12px;
    }
    
    .fallback-content i {
        font-size: 36px;
    }
    
    .fallback-content p {
        font-size: 12px;
    }
    

}

/* Cards */
.card { background: linear-gradient(180deg, rgba(17,24,39,.7), rgba(17,24,39,.45)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease; will-change: transform; }
.card:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 38px rgba(2, 6, 23, .7); border-color: #334155; filter: brightness(1.03); }
.gradient-border { position: relative; }
.gradient-border::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(90deg, rgba(168,85,247,.6), rgba(34,211,238,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid.small { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1200px){ .card-grid, .card-grid.small { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px){ .card-grid, .card-grid.small { grid-template-columns: 1fr; } }

.project-card .card-icon { font-size: 22px; color: #cbd5e1; margin-bottom: 6px; }
.bullets { list-style: disc; margin: 10px 0 4px 18px; color: #cbd5e1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-size: 12px; padding: 6px 10px; border: 1px solid var(--border); background: rgba(148,163,184,.08); color: #e2e8f0; border-radius: 999px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.chip:hover { transform: translateY(-2px) scale(1.03); border-color: #3b4453; background: rgba(148,163,184,.12); }

/* Project links (demo, repo) */
.project-links { display: flex; gap: 10px; margin-top: 12px; }
.project-links a { color: #cbd5e1; background: rgba(148,163,184,.08); border: 1px solid var(--border); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; transition: transform .2s ease, color .2s ease, border-color .2s ease; }
.project-links a:hover { color: #fff; border-color: #334155; transform: scale(1.06); }

/* Gradient card edges */
.gradient-top-pink { border-top: 3px solid #c084fc; }
.gradient-top-cyan { border-top: 3px solid #22d3ee; }
.gradient-top-green { border-top: 3px solid #22c55e; }
.gradient-top-blue { border-top: 3px solid #60a5fa; }
.gradient-top-purple { border-top: 3px solid #a78bfa; }
.gradient-top-orange { border-top: 3px solid #fb923c; }
.gradient-top-yellow { border-top: 3px solid #facc15; }
.gradient-top-teal { border-top: 3px solid #14b8a6; }
.gradient-top-violet { border-top: 3px solid #8b5cf6; }
.gradient-top-red { border-top: 3px solid #ef4444; }

/* Timeline */
.timeline { display: grid; gap: 16px; margin-top: 28px; }
.timeline-card { position: relative; }
.timeline-meta { position: absolute; right: 16px; top: 16px; font-size: 12px; color: #cbd5e1; background: rgba(148,163,184,.08); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.timeline-score { position: absolute; right: 16px; bottom: 16px; color: #c084fc; font-weight: 700; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 26px; }
.metric { text-align: center; padding: 18px 10px; background: rgba(17,24,39,.5); border: 1px solid var(--border); border-radius: 14px; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.metric:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 28px rgba(2,6,23,.55); }
.metric-value { font-weight: 900; font-size: 24px; color: #c084fc; }
.metric-label { color: var(--muted); font-size: 12px; }
@media (max-width: 740px){ .metrics { grid-template-columns: repeat(2,1fr); } }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 1100px){ .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px){ .skills-grid { grid-template-columns: 1fr; } }
.skills-card { min-height: 140px; }

.experience { margin-top: 28px; }
.experience-header { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.experience-meta { color: #cbd5e1; font-size: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; background: #0a1020; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.footer-brand { margin: 0 0 10px; }
.footer-title { font-weight: 700; color: #e5e7eb; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-loc { color: #cbd5e1; margin: 10px 0 16px; }
.footer-contact { margin-top: 12px; color: #cbd5e1; font-size: 14px; }
.muted { color: var(--muted); }
.copyright { margin-top: 10px; color: var(--muted); font-size: 13px; }
.heart { color: #f472b6; }

/* Utilities */
.card-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.card-sub { color: #cbd5e1; font-size: 14px; margin-bottom: 6px; }
.card-desc { color: #cbd5e1; margin: 0; }

/* Active link highlight */
.nav-list a.active { color: #fff; position: relative; }
.nav-list a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius:2px; }

/* Skill meters */
.skill-meters{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top:24px; }
@media (max-width: 980px){ .skill-meters{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .skill-meters{ grid-template-columns: 1fr; } }
.meter{ display:grid; place-items:center; gap:8px; text-align:center; }
.meter-circle{ --size: 110px; width: var(--size); height: var(--size); border-radius:50%; display:grid; place-items:center; background: radial-gradient(circle at 50% 50%, rgba(168,85,247,.15), rgba(17,24,39,.6)); border: 1px solid var(--border); position: relative; }
.meter-circle::before{ content:""; position:absolute; inset:0; border-radius:50%; padding:2px; background: conic-gradient(var(--accent), var(--accent-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity:.35; }
.meter-value{ font-weight:800; color:#e9d5ff; }
.meter-label{ color: var(--muted); font-size: 14px; }

/* Parallax hero bg layer */
.parallax-bg{ position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(99,102,241,.12), transparent 70%); pointer-events:none; transform: translateZ(0); }


/* Responsive enhancements */
img, video, svg { max-width: 100%; height: auto; }
html, body { overflow-x: hidden; }

/* Reduce section spacing on small screens */
@media (max-width: 600px){
    .section { padding: 64px 0; }
    .hero { padding-top: 40px; }
    .hero-sub { font-size: 16px; }
    .cta-row { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .card { padding: 16px; }
    .socials a { width: 34px; height: 34px; }
}

/* Tweak hero decorative blob for small screens */
@media (max-width: 680px){
    .hero-blob { width: 380px; height: 380px; inset: -100px -140px auto auto; filter: blur(70px); }
}

/* Footer grid responsiveness */
@media (max-width: 900px){
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px){
    .footer-grid { grid-template-columns: 1fr; }
}

/* Metrics stack on very narrow screens */
@media (max-width: 420px){
    .metrics { grid-template-columns: 1fr; }
}

/* Improve spacing in grids on tablet */
@media (max-width: 980px){
    .card-grid, .card-grid.small { gap: 16px; }
}

/* Mobile nav dropdown width on extra small */
@media (max-width: 520px){
    .nav-list { left: 4%; right: 4%; top: 56px; }
}

/* Timeline meta labels stack on mobile to avoid overlap */
@media (max-width: 560px){
    .timeline-meta, .timeline-score { position: static; display: inline-block; margin: 6px 0; }
    .experience-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Fine-tune typography and chips on very small phones */
@media (max-width: 380px){
    .brand { font-size: 16px; }
    .card-title { font-size: 17px; }
    .chip { font-size: 11px; padding: 5px 8px; }
}

/* Larger screens: add breathing room */
@media (min-width: 1280px){
    .container { width: min(1240px, 92%); }
    .section { padding: 120px 0; }
}

