@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #12121f;
  --orange: #f97316;
  --orange2: #fb923c;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --text: #e2e8f0;
  --muted: #64748b;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }

/* NAVBAR */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 0 5%;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  transition: all 0.3s ease;
}
nav.scrolled { background: rgba(10,10,15,0.95); box-shadow: 0 4px 30px rgba(249,115,22,0.1); }
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--orange); border-radius:2px; transition:width 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--orange); color: #fff; padding: 0.5rem 1.4rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.nav-cta:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(249,115,22,0.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 25px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* CANVAS HERO */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 70px; }
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 1.5rem; }
.hero-tag { display: inline-block; background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.3); color: var(--orange); padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; animation: fadeInDown 0.8s ease; }
.hero-name { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.1; animation: fadeInUp 0.9s ease 0.2s both; }
.hero-name .highlight { color: var(--orange); }
.hero-role { font-size: 1.3rem; color: var(--muted); margin: 1rem 0 0.5rem; animation: fadeInUp 0.9s ease 0.35s both; }
#typewriter { color: var(--orange); font-weight: 600; border-right: 2px solid var(--orange); padding-right: 4px; }
.hero-desc { color: var(--muted); max-width: 520px; margin: 1.2rem auto 2rem; line-height: 1.7; animation: fadeInUp 0.9s ease 0.5s both; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.9s ease 0.65s both; }
.btn-primary { background: var(--orange); color: #fff; padding: 0.85rem 2.2rem; border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--orange2); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(249,115,22,0.4); }
.btn-outline { border: 1px solid var(--glass-border); color: var(--text); padding: 0.85rem 2.2rem; border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s; backdrop-filter: blur(10px); background: var(--glass); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.75rem; animation: bounce 2s infinite; z-index: 2; }
.scroll-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }

/* FLOATING CARDS */
.float-cards { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fcard { position: absolute; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); border-radius: 14px; padding: 1rem 1.4rem; display: flex; align-items: center; gap: 0.8rem; font-size: 0.8rem; font-weight: 600; color: var(--text); }
.fcard .icon { font-size: 1.4rem; }
.fcard-1 { top: 18%; left: 6%; animation: float1 6s ease-in-out infinite; }
.fcard-2 { top: 60%; left: 4%; animation: float2 7s ease-in-out infinite 1s; }
.fcard-3 { top: 20%; right: 6%; animation: float1 5.5s ease-in-out infinite 0.5s; }
.fcard-4 { top: 65%; right: 5%; animation: float2 6.5s ease-in-out infinite 2s; }

/* SECTION BASE */
section { padding: 6rem 5%; position: relative; overflow: hidden; }

/* Glowing ambient orbs at the section transitions to blend boundaries */
section::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  transition: all 0.5s ease;
}

/* Custom positions and colors for blending adjacent section corners */
#hero::after {
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  bottom: -225px;
  right: -100px;
}

#about::after {
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -225px;
  left: -100px;
}

#skills::after {
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -225px;
  right: 5%;
}

#projects::after {
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -225px;
  left: 10%;
}

#contact::after {
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -225px;
  right: -100px;
}
.section-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-line { flex: 1; max-width: 50px; height: 2px; background: var(--orange); border-radius: 2px; }
.section-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1.2rem; }
.section-title span { color: var(--orange); }
.section-desc { color: var(--muted); max-width: 550px; line-height: 1.75; }
.center-head { text-align: center; }
.center-head .section-label { justify-content: center; }
.center-head .section-desc { margin: 0 auto; }

/* ABOUT */
#about { background: transparent; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 4rem; }
.about-visual { position: relative; display: flex; justify-content: center; }
.about-img-wrap { width: 280px; height: 280px; border-radius: 24px; background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(168,85,247,0.2)); border: 1px solid rgba(249,115,22,0.3); display: flex; align-items: center; justify-content: center; font-size: 8rem; position: relative; }
.about-img-wrap::before { content:''; position:absolute; inset:-2px; border-radius:26px; background: linear-gradient(135deg, var(--orange), var(--purple)); z-index:-1; opacity:0.4; }
.about-badge { position: absolute; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); border-radius: 12px; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; font-weight: 600; }
.about-badge.b1 { bottom: -15px; left: -20px; }
.about-badge.b2 { top: -15px; right: -20px; }
.badge-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.bi-orange { background: rgba(249,115,22,0.2); }
.bi-purple { background: rgba(168,85,247,0.2); }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.stats-row { display: flex; gap: 2rem; margin: 2rem 0; }
.stat { text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* SKILLS */
#skills { background: transparent; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 4rem; }
.skill-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 1.8rem; transition: all 0.3s; position: relative; overflow: hidden; }
.skill-card::before { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(249,115,22,0.05), transparent); opacity:0; transition:opacity 0.3s; }
.skill-card:hover { border-color: rgba(249,115,22,0.4); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(249,115,22,0.1); }
.skill-card:hover::before { opacity: 1; }
.skill-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.skill-name { font-weight: 700; margin-bottom: 0.4rem; }
.skill-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.skill-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange2)); border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* PROJECTS */
#projects { background: transparent; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 4rem; }
.project-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; overflow: hidden; transition: all 0.3s; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(249,115,22,0.4); box-shadow: 0 25px 60px rgba(0,0,0,0.5); }
.project-thumb { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-body { padding: 1.6rem; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.project-tag { background: rgba(249,115,22,0.1); color: var(--orange); border: 1px solid rgba(249,115,22,0.2); padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.project-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.2rem; }
.project-links { display: flex; gap: 1rem; }
.plink { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.plink-live { color: var(--orange); }
.plink-live:hover { color: var(--orange2); }
.plink-git { color: var(--muted); }
.plink-git:hover { color: var(--text); }

/* CONTACT */
#contact { background: transparent; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; margin-top: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.cinfo-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 1.4rem; display: flex; align-items: center; gap: 1rem; transition: all 0.3s; }
.cinfo-card:hover { border-color: rgba(249,115,22,0.4); transform: translateX(6px); }
.cinfo-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(249,115,22,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.cinfo-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cinfo-val { font-weight: 600; font-size: 0.92rem; }
.social-row { display: flex; gap: 1rem; margin-top: 0.5rem; }
.soc-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; text-decoration: none; transition: all 0.3s; color: var(--text); }
.soc-btn:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(249,115,22,0.3); }
.contact-form { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea { background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); border-radius: 10px; padding: 0.85rem 1rem; color: var(--text); font-family: inherit; font-size: 0.9rem; transition: all 0.3s; outline: none; resize: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--orange); background: rgba(249,115,22,0.05); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.btn-send { width: 100%; background: var(--orange); color: #fff; border: none; padding: 1rem; border-radius: 10px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: inherit; }
.btn-send:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 15px 35px rgba(249,115,22,0.35); }

/* FOOTER */
footer { background: var(--bg); border-top: 1px solid var(--glass-border); padding: 2rem 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; gap: 1rem; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.footer-logo span { color: var(--orange); }
footer p { color: var(--muted); font-size: 0.82rem; }
.footer-heart { color: var(--orange); }

/* ANIMATIONS */
@keyframes fadeInDown { from { opacity:0; transform: translateY(-20px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes revealUp { from { opacity:0; transform: translateY(40px); } to { opacity:1; transform: translateY(0); } }

.reveal { opacity:0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity:1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .fcard-1, .fcard-2 { left: 1%; }
  .fcard-3, .fcard-4 { right: 1%; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: rgba(10,10,15,0.97); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--glass-border); }
  .nav-links.open + .nav-cta { display: block; position: absolute; top: 200px; left: 50%; transform: translateX(-50%); }
  .float-cards { display: none; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .stats-row { flex-wrap: wrap; justify-content: center; }
}
