/* Basic Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, Arial, sans-serif; color: #0f172a; background: #ffffff; }

/* Layout */
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.85); backdrop-filter: saturate(150%) blur(6px); border-bottom: 1px solid #eef2f7; }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; letter-spacing: 0.5px; }
nav a { color: #0f172a; text-decoration: none; margin-left: 18px; font-weight: 500; opacity: 0.85; }
nav a:hover { opacity: 1; }

/* Hero */
.hero { position: relative; display: grid; place-items: center; min-height: 85vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 70% 20%, #0ea5e9 0%, transparent 55%), radial-gradient(900px 500px at 20% 80%, #a855f7 0%, transparent 50%), linear-gradient(160deg, #0b1023 0%, #111827 60%, #0b1023 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.55)); }
.hero-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 80px 0; }
.hello { opacity: 0.85; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }
.hero h1 { margin: 6px 0 8px; font-size: clamp(32px, 6vw, 56px); line-height: 1.05; }
.accent { color: #ffbd39; }
.tagline { margin: 0 0 14px; font-weight: 400; opacity: 0.95; }
.typing-wrap { font-size: clamp(18px, 3.2vw, 26px); margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.cursor { opacity: 0.9; }
.cursor.hide { opacity: 0.2; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; margin: 18px 10px 0; transition: transform .15s ease, box-shadow .15s ease; }
.btn.primary { background: #ffbd39; color: #111827; box-shadow: 0 8px 24px rgba(255,189,57,.25); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,189,57,.35); }
.btn.outline { border: 2px solid #ffffff80; color: #fff; }
.btn.outline:hover { transform: translateY(-2px); background: #ffffff10; }

/* Sections */
.section { padding: 70px 0; }
.section.alt { background: #f8fafc; }
.section-title { font-size: clamp(22px, 3.6vw, 34px); margin: 0 0 18px; }
.lead { color: #334155; line-height: 1.75; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
.about-card { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04); }
.about-card h3 { margin: 6px 0 12px; }
.about-card ul { margin: 0; padding-left: 18px; }
.about-card li { margin: 8px 0; color: #475569; }

.skill { margin: 12px 0 16px; }
.skill .label { font-size: 14px; margin-bottom: 6px; color: #0f172a; }
.skill .bar { width: 100%; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.skill .bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffbd39, #f59e0b); border-radius: 999px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 12px; }
.contact-card { background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 16px; }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #64748b; }
.contact-value a { color: #0ea5e9; text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid #eef2f7; background: #ffffff; }
.site-footer .container { padding: 24px 0; text-align: center; color: #64748b; }

/* Responsive */
@media (min-width: 700px) {
  .about-grid { grid-template-columns: 1.2fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}



/* --- High-tech additions --- */
.hero-inner .hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { text-align: center; }
@media (min-width: 900px) { .hero-inner .hero-grid { grid-template-columns: 1.2fr .8fr; } .hero-copy { text-align: left; } }

.glass { backdrop-filter: blur(10px) saturate(140%); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; box-shadow: 0 10px 40px rgba(2, 6, 23, 0.25); }
.avatar { position: relative; display: flex; align-items: center; justify-content: center; width: min(280px, 72vw); height: min(280px, 72vw); margin: 8px auto; border-radius: 20px; }
.avatar::before { content: ""; position: absolute; inset: -10px; border-radius: inherit; background: conic-gradient(from 0deg, #00f0ff, #ff00ff, #00f0ff); filter: blur(24px); opacity: .25; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-placeholder { color: #cbd5e1; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
.hint { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 8px; }

.about-photo { display: flex; flex-direction: column; align-items: center; padding: 16px; }
.portrait-placeholder { width: min(420px, 90%); height: 420px; border-radius: 18px; border: 1px dashed #94a3b8; display: grid; place-items: center; color: #64748b; text-transform: uppercase; letter-spacing: 1.5px; }

.btn.toggle { margin-left: 14px; background: transparent; border: 1px solid #e2e8f0; color: #0f172a; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.btn.toggle:hover { background: #f1f5f9; }

/* Animated hero background */
.hero-bg { background-size: 200% 200%; animation: move-bg 22s linear infinite; }
@keyframes move-bg { 0% { background-position: 0% 0%; } 100% { background-position: 200% 200%; } }

/* Dark mode */
html.dark body { background: #0b1023; color: #e5e7eb; }
html.dark .site-header { background: rgba(10,14,30,0.6); border-bottom-color: #1f2937; }
html.dark nav a { color: #e5e7eb; }
html.dark .btn.outline { border-color: #ffffff40; color: #e5e7eb; }
html.dark .section.alt { background: #0f172a; }
html.dark .about-card, html.dark .contact-card { background: #0d1327; border-color: #1f2937; }
html.dark .site-footer { background: #0b1023; border-top-color: #1f2937; }
html.dark .lead, html.dark .about-card li, html.dark .contact-label { color: #9aa5b1; }
html.dark .btn.toggle { border-color: #324055; color: #e5e7eb; }
html.dark .glass { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
html.dark .portrait-placeholder { border-color: #324055; color: #a3b2c2; }
html.dark .avatar-placeholder { color: #a3b2c2; }


/* If you add real images */
.avatar img, .about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }


/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px) scale(.98); filter: saturate(80%); }
.in-view { opacity: 1; transform: none; filter: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1), filter .6s ease; }

/* Tilt base styles */
.tilt { will-change: transform; transform-style: preserve-3d; transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) and (pointer: fine) {
  .tilt:hover { transform: translateY(-2px); }
}

/* 3D feel for cards/buttons */
.about-card, .contact-card { box-shadow: 0 12px 30px rgba(2,6,23,.08), 0 2px 8px rgba(2,6,23,.06); }
.btn { box-shadow: 0 10px 24px rgba(255,189,57,.18); }
.btn.primary { background: linear-gradient(90deg, #ffbd39, #f59e0b); }
.btn.outline { border-color: #ffffff60; }

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Mobile tap feedback */
.tilt:active { transform: scale(.99); }



/* --- New features --- */
/* Scroll progress bar */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6); z-index: 9999; box-shadow: 0 0 10px #22d3ee80; }
html.dark #progress { box-shadow: 0 0 10px #22d3eea0; }

/* Ticker */
.ticker { position: sticky; top: 0; z-index: 9; overflow: hidden; background: #0b1023; color: #e5e7eb; border-bottom: 1px solid #1f2937; }
.ticker-track { display: inline-flex; gap: 24px; padding: 8px 0; white-space: nowrap; animation: ticker 28s linear infinite; will-change: transform; }
.ticker-track span { opacity: .9; font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }
html:not(.dark) .ticker { background: #0f172a; color: #fff; border-bottom-color: #e2e8f0; }

/* Hero spotlight cursor */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.12), transparent 60%); z-index: 0; }

/* Feature deck (replaces neon orb) */
.feature-deck { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; justify-items: center; }
@media (min-width: 700px) { .feature-deck { grid-template-columns: repeat(3, 1fr); } }
.fcard { position: relative; width: min(260px, 88vw); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 18px 50px rgba(2,6,23,.28); overflow: hidden; }
.fcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.08), transparent); transform: translateX(-100%); }
.fcard:hover::before { animation: sheen .9s ease; }
@keyframes sheen { to { transform: translateX(100%); } }
.ficon { font-size: 28px; margin-bottom: 8px; }
.ftitle { font-weight: 700; margin-bottom: 4px; }
.fdesc { font-size: 13px; opacity: .9; }
html:not(.dark) .fcard { background: #ffffff; border-color: #eef2f7; }


/* Chips */
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 12px; box-shadow: 0 6px 18px rgba(2,6,23,.25); }
html:not(.dark) .chip { background: #111827; border-color: #1f2937; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 16px 0; }
.stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 10px; }
.stat .num { font-size: clamp(20px, 6vw, 34px); font-weight: 700; }
.stat .label { font-size: 12px; opacity: .8; }
html:not(.dark) .stat { background: #fff; border-color: #eef2f7; }
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }

/* Copy button */
.contact-value { display: flex; align-items: center; gap: 8px; }
button.copy { border: 1px solid #e2e8f0; background: transparent; color: inherit; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
button.copy:hover { background: #f1f5f9; }
html.dark button.copy { border-color: #324055; }
html.dark button.copy:hover { background: #111827; }

/* Command palette */
.cmdk.hidden { display: none; }
.cmdk { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(2,6,23,0.55); backdrop-filter: blur(4px); }
.cmdk-panel { width: min(620px, 92%); background: #0d1327; border: 1px solid #1f2937; border-radius: 14px; box-shadow: 0 30px 80px rgba(2,6,23,.6); overflow: hidden; }
.cmdk-panel input { width: 100%; padding: 14px 16px; border: 0; outline: 0; background: #0b1023; color: #e5e7eb; font-size: 15px; border-bottom: 1px solid #1f2937; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.cmdk-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; color: #e5e7eb; }
.cmdk-list li:hover, .cmdk-list li.active { background: #111827; }
html:not(.dark) .cmdk-panel { background: #ffffff; border-color: #e2e8f0; }
html:not(.dark) .cmdk-panel input { background: #f8fafc; color: #0f172a; border-bottom-color: #e2e8f0; }
html:not(.dark) .cmdk-list li { color: #0f172a; }
html:not(.dark) .cmdk-list li:hover { background: #f1f5f9; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0d1327; color: #e5e7eb; padding: 10px 14px; border-radius: 10px; border: 1px solid #1f2937; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 10001; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
html:not(.dark) #toast { background: #111827; color: #fff; border-color: #e2e8f0; }
