:root {
  --bg-900: #0a0a0f;
  --bg-800: #0f0f1a;
  --bg-700: #141428;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a30;
  --accent: #00d4ff;
  --accent-2: #a855f7;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --accent-2-glow: rgba(168, 85, 247, 0.2);
  --text-primary: #f0f0ff;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 212, 255, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-accent: 0 0 40px var(--accent-glow);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 60px; }
.accent { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; outline: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #0099cc); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #000; transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-full { width: 100%; justify-content: center; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 16px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(10,10,15,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 42px; width: auto; display: block; transition: filter var(--transition), transform var(--transition); }
.nav-logo:hover .logo-img { filter: brightness(1.2); transform: scale(1.03); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 100px 24px 60px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: blobFloat 8s ease-in-out infinite; }
.blob-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -100px; }
.blob-2 { width: 500px; height: 500px; background: var(--accent-2); bottom: -150px; left: -100px; animation-delay: -4s; }
@keyframes blobFloat { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-30px) scale(1.05)} 66%{transform:translate(-20px,20px) scale(0.95)} }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,212,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(0,212,255,.03) 1px,transparent 1px); background-size: 60px 60px; }
.hero-content { max-width: 720px; text-align: center; position: relative; z-index: 1; }
.hero-greeting { font-family: 'Fira Code', monospace; color: var(--accent); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.hero-name { font-size: clamp(3.5rem,8vw,6.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(135deg,#fff 0%,var(--accent) 60%,var(--accent-2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 20px; }
.hero-title { font-size: clamp(1.1rem,2.5vw,1.5rem); color: var(--text-secondary); font-weight: 400; margin-bottom: 24px; min-height: 2rem; font-family: 'Fira Code', monospace; }
.typed-text { color: var(--accent-2); }
.cursor { color: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 40px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom,var(--text-muted),transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(0.3);opacity:0.3} }

/* ── ABOUT ── */
.about { background: var(--bg-800); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.about-img-wrap { display: flex; justify-content: center; }
.about-img-frame { position: relative; width: 280px; height: 280px; }
.about-avatar { width: 100%; height: 100%; border-radius: var(--radius-lg); background: linear-gradient(135deg,var(--bg-700),var(--bg-card)); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 7rem; color: var(--text-muted); position: relative; overflow: hidden; }
.about-avatar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,var(--accent-glow),var(--accent-2-glow)); opacity: 0.4; }
.about-badge { position: absolute; bottom: -12px; right: -12px; background: linear-gradient(135deg,var(--accent),#0099cc); color: #000; font-size: 0.78rem; font-weight: 700; padding: 8px 16px; border-radius: 40px; display: flex; align-items: center; gap: 6px; }
.about-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: flex; gap: 32px; margin: 32px 0; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* ── SKILLS ── */
.skills { background: var(--bg-900); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; }
.skill-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: var(--transition); position: relative; overflow: hidden; }
.skill-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,var(--accent),var(--accent-2)); transform: scaleX(0); transition: transform var(--transition); }
.skill-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-accent); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 2.5rem; margin-bottom: 14px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.skill-icon.html{color:#e34f26;background:rgba(227,79,38,.1)} .skill-icon.css{color:#264de4;background:rgba(38,77,228,.1)} .skill-icon.js{color:#f7df1e;background:rgba(247,223,30,.1)} .skill-icon.react{color:#61dafb;background:rgba(97,218,251,.1)} .skill-icon.node{color:#68a063;background:rgba(104,160,99,.1)} .skill-icon.python{color:#3776ab;background:rgba(55,118,171,.1)} .skill-icon.git{color:#f05032;background:rgba(240,80,50,.1)} .skill-icon.db{color:var(--accent-2);background:rgba(168,85,247,.1)}
.skill-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; }
.skill-bar { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.skill-fill { height: 100%; background: linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius: 4px; width: 0%; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.skill-pct { font-size: 0.75rem; color: var(--text-muted); font-family: 'Fira Code', monospace; }

/* ── PROJECTS ── */
.projects { background: var(--bg-800); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 24px; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.project-img { height: 180px; background: linear-gradient(135deg,color-mix(in srgb,var(--color) 15%,transparent),color-mix(in srgb,var(--color) 5%,transparent)); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--color); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.project-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--color) 20%,transparent),transparent 70%); }
.project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.project-tags span { font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 40px; background: rgba(0,212,255,.08); color: var(--accent); border: 1px solid rgba(0,212,255,.15); font-family: 'Fira Code', monospace; }
.project-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.project-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; flex: 1; margin-bottom: 20px; }
.project-links { display: flex; gap: 12px; margin-top: auto; }
.btn-icon { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border); transition: var(--transition); }
.btn-icon:hover { color: var(--accent); border-color: var(--border-hover); background: var(--bg-card-hover); }

/* ── CONTACT ── */
.contact { background: var(--bg-900); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.contact-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.contact-card i { font-size: 1.4rem; color: var(--accent); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--accent-glow); border-radius: 10px; flex-shrink: 0; }
.contact-card div span { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-card div a, .contact-card div p { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.contact-card div a:hover { color: var(--accent); }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group textarea { background: var(--bg-800); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: var(--transition); resize: vertical; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: var(--bg-700); box-shadow: 0 0 0 3px rgba(0,212,255,.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-status { font-size: 0.9rem; text-align: center; min-height: 24px; }
.form-status.success{color:#10b981} .form-status.error{color:#ef4444}

/* ── FOOTER ── */
.footer { background: var(--bg-800); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo-img { height: 46px; width: auto; opacity: 0.85; transition: opacity var(--transition); }
.footer-logo-img:hover { opacity: 1; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-socials { display: flex; gap: 20px; margin-top: 4px; }
.footer-socials a { font-size: 1.1rem; color: var(--text-muted); transition: color var(--transition),transform var(--transition); }
.footer-socials a:hover { color: var(--accent); transform: translateY(-3px); }

/* ── BACK TO TOP ── */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),#0099cc); color: #000; font-size: 1rem; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: var(--transition); z-index: 999; box-shadow: 0 4px 20px var(--accent-glow); }
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; inset: 0; background: rgba(10,10,15,.97); flex-direction: column; align-items: center; justify-content: center; gap: 40px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle { display: flex; z-index: 1000; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .hero-cta { flex-direction: column; align-items: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .contact-form { padding: 24px; }
}
@media (max-width: 480px) {
  .section { padding: 70px 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-img-frame { width: 220px; height: 220px; }
}
