/* ============================================================
   DEEPAK KUMAR KASHYAP — PORTFOLIO STYLESHEET
   Pure Black · Cinematic · Glassmorphism · System UI Feel
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --bg:            #000000;
  --bg-1:          #050505;
  --bg-2:          #0a0a0a;
  --surface:       rgba(255,255,255,0.028);
  --surface-h:     rgba(255,255,255,0.055);
  --border:        rgba(255,255,255,0.075);
  --border-glow:   rgba(0,212,255,0.22);
  --text-1:        #eeeef0;
  --text-2:        #7a7a8e;
  --text-3:        #3e3e52;
  --accent:        #00d4ff;
  --accent-10:     rgba(0,212,255,0.10);
  --accent-20:     rgba(0,212,255,0.20);
  --accent-30:     rgba(0,212,255,0.30);
  --green:         #22c55e;
  --red:           #ef4444;
  --orange:        #ffa116;
  --blue:          #3b82f6;
  --glow-sm:       0 0 30px rgba(0,212,255,0.07);
  --glow-md:       0 0 60px rgba(0,212,255,0.12);
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --font-head:     'Syne', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --font-body:     'DM Sans', sans-serif;
  --nav-h:         68px;
  --pad-y:         110px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; color: inherit; }
input, textarea { font-family: var(--font-body); }

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}


/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
#preloader.out { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; user-select: none; }
.preloader-logo {
  margin-bottom: 28px;
}
.preloader-logo .logo-img {
  height: 85px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
  animation: logo-glow-pulse 1.5s ease-in-out infinite alternate;
}
@keyframes logo-glow-pulse {
  from { filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4)); transform: scale(1); }
  to   { filter: drop-shadow(0 0 35px rgba(0, 212, 255, 0.8)); transform: scale(1.05); }
}
.preloader-bar {
  width: 220px; height: 1px; background: rgba(255,255,255,.08);
  margin: 0 auto 16px; overflow: hidden; border-radius: 1px;
}
.preloader-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: bar-fill 2.2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes bar-fill { to { width: 100%; } }
.preloader-text {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-3); letter-spacing: 3px; text-transform: uppercase;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); padding: 0 2.5rem;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
#navbar.scrolled {
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-logo:hover .logo-img,
.footer-logo:hover .logo-img {
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.7));
  transform: translateY(-1px);
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-family: var(--font-mono); font-size: .74rem;
  color: var(--text-2); padding: 8px 13px; border-radius: 7px;
  letter-spacing: .3px; transition: color .2s, background .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 5px;
  left: 50%; right: 50%; height: 1px;
  background: var(--accent); transition: left .25s, right .25s;
}
.nav-links a:hover, .nav-links a.active-link { color: var(--text-1); }
.nav-links a:hover::after, .nav-links a.active-link::after { left: 13px; right: 13px; }
.nav-cta { display: inline-flex; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span {
  display: block; width: 21px; height: 1.5px;
  background: var(--text-1); transition: transform .3s, opacity .3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,.97); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.25rem; text-align: center; }
.mobile-menu a {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700;
  color: var(--text-2); transition: color .25s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 9px;
  font-family: var(--font-mono); font-size: .8rem;
  font-weight: 500; letter-spacing: .4px;
  transition: all .3s ease; cursor: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 24px rgba(0,212,255,.25);
}
.btn-primary:hover {
  background: #20e8ff; box-shadow: 0 0 40px rgba(0,212,255,.45);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid var(--border); color: var(--text-1);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-10); transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--accent); color: var(--accent);
  padding: 7px 18px; font-size: .74rem;
}
.btn-outline:hover { background: var(--accent); color: #000; }
.btn-block { width: 100%; justify-content: center; }

/* ── GLASS CARD ── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
  background: var(--surface-h);
}

/* ── SECTIONS ── */
.section { padding: var(--pad-y) 0; position: relative; z-index: 1; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.08; color: var(--text-1);
}
.section-subtitle {
  font-size: .95rem; color: var(--text-2); margin-top: 12px;
}

/* Thin divider line at section top */
.section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(500px, 90%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.08), transparent);
}

/* ── HERO ── */
#hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; overflow: hidden; z-index: 1;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px);
}
.hero-glow-1 {
  width: 500px; height: 500px; top: -100px; right: 10%;
  background: radial-gradient(circle, rgba(0,212,255,.06) 0%, transparent 70%);
  animation: drift 14s ease-in-out infinite;
}
.hero-glow-2 {
  width: 400px; height: 400px; bottom: -50px; left: 5%;
  background: radial-gradient(circle, rgba(0,100,200,.05) 0%, transparent 70%);
  animation: drift 18s ease-in-out infinite reverse;
}
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  33%      { transform: translate(20px,-20px); }
  66%      { transform: translate(-15px,15px); }
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; padding: 0 2rem;
  width: 100%; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 5rem;
  padding-top: var(--nav-h);
}
/* Hero Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,.05); border: 1px solid rgba(34,197,94,.18);
  border-radius: 100px; padding: 5px 14px; margin-bottom: 1.5rem;
  font-family: var(--font-mono); font-size: .72rem; color: rgba(34,197,94,.8);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:.35;} }
/* Hero Name */
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 800;
  line-height: 1.03; margin-bottom: 1.2rem;
}
.name-line { display: block; overflow: hidden; }
.line-inner {
  display: block;
  animation: line-rise .9s cubic-bezier(.16,1,.3,1) both;
}
.hero-name .line-overflow:nth-child(2) .line-inner { animation-delay: .12s; }
@keyframes line-rise { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero-name .accent { color: var(--accent); }
/* Hero Role */
.hero-role {
  font-family: var(--font-mono); font-size: clamp(.85rem,1.5vw,1rem);
  color: var(--text-2); margin-bottom: 1.2rem; min-height: 1.6em;
  animation: fade-slide .8s ease .4s both;
}
.dynamic-text { color: var(--accent); }
.type-cursor {
  color: var(--accent); animation: cursor-blink .75s step-end infinite;
}
@keyframes cursor-blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.hero-tagline {
  font-size: 1.02rem; color: var(--text-2); line-height: 1.75;
  max-width: 440px; margin-bottom: 2.2rem;
  animation: fade-slide .8s ease .55s both;
}
.hero-actions {
  display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.5rem;
  animation: fade-slide .8s ease .65s both;
}
.hero-social {
  display: flex; gap: .75rem;
  animation: fade-slide .8s ease .75s both;
}
.social-icon {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: .9rem;
  transition: all .3s ease;
}
.social-icon:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-10); transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,212,255,.12);
}
@keyframes fade-slide { from{opacity:0;transform:translateY(18px);} to{opacity:1;transform:none;} }

/* Hero Photo */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  animation: fade-slide 1s ease .3s both;
}
.photo-wrapper {
  position: relative; width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.photo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,212,255,.12);
  animation: spin-ring linear infinite;
}
.ring-outer  { inset: -62px; animation-duration: 40s; }
.ring-mid    { inset: -38px; animation-direction: reverse; animation-duration: 28s; border-style: dashed; opacity: .7; }
.ring-inner  { inset: -16px; animation-duration: 18s; opacity: .5; }
@keyframes spin-ring { to { transform: rotate(360deg); } }
.photo-container {
  width: 300px; height: 300px; border-radius: 50%;
  overflow: hidden; position: relative; z-index: 2;
  border: 1.5px solid rgba(0,212,255,.28);
  box-shadow: 0 0 0 6px rgba(0,212,255,.04);
}
.profile-photo { width:100%; height:100%; object-fit:cover; }
.photo-initials {
  width:100%; height:100%;
  background: linear-gradient(135deg,#050e18,#001420);
  display:none; align-items:center; justify-content:center;
  font-family:var(--font-head); font-size:5rem; font-weight:800; color:var(--accent);
}
.photo-glow {
  position:absolute; inset:-30px; border-radius:50%; z-index:0;
  background: radial-gradient(circle, rgba(0,212,255,.1) 0%, transparent 65%);
  animation: glow-breathe 4s ease-in-out infinite;
}
@keyframes glow-breathe { 0%,100%{opacity:.6;transform:scale(1);} 50%{opacity:1;transform:scale(1.04);} }
/* Orbit dots */
.orbit-dot {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); z-index: 3;
  box-shadow: 0 0 8px var(--accent);
}
.orbit-dot-1 { animation: orbit1 8s linear infinite; }
.orbit-dot-2 { animation: orbit2 12s linear infinite; opacity: .6; }
.orbit-dot-3 { animation: orbit3 18s linear infinite; opacity: .4; }
@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(168px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(168px) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: rotate(120deg) translateX(190px) rotate(-120deg); }
  to   { transform: rotate(480deg) translateX(190px) rotate(-480deg); }
}
@keyframes orbit3 {
  from { transform: rotate(240deg) translateX(210px) rotate(-240deg); }
  to   { transform: rotate(600deg) translateX(210px) rotate(-600deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fade-slide .8s ease 1.8s both; z-index: 1;
}
.scroll-line-wrap { width: 1px; height: 48px; overflow: hidden; }
.scroll-line {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-drip 2.2s ease-in-out infinite;
}
@keyframes scroll-drip {
  0%   { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(100%);  opacity: 0; }
}
.scroll-indicator span {
  font-family: var(--font-mono); font-size: .6rem;
  color: var(--text-3); letter-spacing: 3px; text-transform: uppercase;
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
.about-lead {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  color: var(--text-1); line-height: 1.45; margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent); padding-left: 1.1rem;
}
.about-text p { color: var(--text-2); line-height: 1.82; margin-bottom: 1rem; font-size: .97rem; }
.about-text strong { color: var(--text-1); }
.about-text em { color: var(--accent); font-style: normal; }
.about-stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-number {
  display: inline;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-plus { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label {
  display: block; font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-3); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 5px;
}

/* About Card (My Journey Timeline) */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 1.8rem;
  height: 100%;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.card-dots {
  display: flex; gap: 6px;
}
.card-dots::before, .card-dots::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); opacity: 0.4;
}
.card-dots::before { background: var(--accent); opacity: 1; }

.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -24.5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border: 2px solid var(--bg);
  z-index: 1;
}

.timeline-content {
  transition: transform .3s ease;
}
.timeline-item:hover .timeline-content {
  transform: translateX(4px);
}
.timeline-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.timeline-subtitle {
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.timeline-desc {
  font-size: .865rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Timeline */
.about-timeline { position: relative; padding-left: 2px; }
.timeline-track {
  position: absolute; left: 18px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(0,212,255,.05));
}
.timeline-item { display: flex; gap: 1.4rem; margin-bottom: 1.6rem; }
.tl-dot {
  width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--bg);
  position: relative; top: 3px; z-index: 1;
  transition: border-color .3s, box-shadow .3s;
}
.tl-dot-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 14px rgba(0,212,255,.3);
  background: rgba(0,212,255,.08);
}
.tl-card { padding: 1.1rem 1.3rem; flex: 1; }
.tl-card-active { border-color: rgba(0,212,255,.2) !important; }
.tl-year {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--accent); letter-spacing: 1px; display: block; margin-bottom: 3px;
}
.tl-year-active { color: var(--accent); }
.tl-card h4 {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 4px;
}
.tl-card p { font-size: .82rem; color: var(--text-2); line-height: 1.6; }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.4rem; }
.skill-category {
  padding: 1.6rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .35s, background .35s;
}
.skill-category:hover { border-color: var(--border-glow); background: var(--surface-h); }
.category-title {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px;
}
.category-title i { color: var(--accent); }
.skill-items { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 100px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-2);
  transition: all .28s ease; cursor: default;
}
.skill-chip i { font-size: .95rem; }
.skill-chip:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-10);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,212,255,.1);
}

/* ── EXPERIENCE ── */
.exp-timeline { }
.exp-item { display: flex; gap: 1.5rem; }
.exp-marker { display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.exp-dot-outer {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-10); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(0,212,255,.3);
}
.exp-dot-inner { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.exp-connector { flex: 1; width: 1px; background: var(--border); margin-top: 8px; min-height: 20px; }
.exp-card { padding: 1.8rem; flex: 1; position: relative; }

/* Horizontal Experience Card */
.exp-card-horizontal {
  display: flex !important;
  flex-direction: row;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
.exp-card-certificate {
  flex: 0 0 33.33%;
  background: rgba(255,255,255,0.012);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.exp-card-certificate img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 10px rgba(0,212,255,0.15));
}
.exp-card-content {
  flex: 1;
  padding: 1.8rem;
}
.exp-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem;
}
.exp-info { display: flex; align-items: flex-start; gap: 1rem; }
.exp-logo-wrap {
  width: 44px; height: 44px; min-width: 44px; border-radius: 10px;
  background: var(--accent-10); border: 1px solid rgba(0,212,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem;
}
.exp-info h3 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--text-1);
}
.exp-company {
  display: block; font-family: var(--font-mono); font-size: .72rem;
  color: var(--accent); letter-spacing: 1px; margin-top: 3px;
}
.exp-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.exp-duration {
  font-family: var(--font-mono); font-size: .7rem; color: var(--text-3);
}
.exp-duration i { margin-right: 5px; }
.exp-badge {
  padding: 3px 11px; border-radius: 100px;
  background: var(--accent-10); border: 1px solid rgba(0,212,255,.15);
  font-family: var(--font-mono); font-size: .65rem; color: var(--accent);
}
.exp-points { list-style: none; margin-bottom: 1.3rem; }
.exp-points li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-2); font-size: .875rem; line-height: 1.65; margin-bottom: 9px;
}
.check-icon {
  width: 18px; height: 18px; min-width: 18px; border-radius: 4px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: .55rem; margin-top: 2px;
}
.exp-tech-row { display: flex; flex-wrap: wrap; gap: 7px; }
.exp-tech-row span {
  padding: 4px 11px; border-radius: 100px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .65rem; color: var(--text-3);
  transition: all .25s;
}
.exp-tech-row span:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.5rem; }
.project-card { padding: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.project-card .project-img-wrap { border-radius: 14px 14px 0 0; border: none; border-bottom: 1px solid var(--border); }
.project-card .project-header,
.project-card .project-body,
.project-card .project-tech { padding: 0 1.75rem; }
.project-card .project-header { padding-top: 1.2rem; }
.project-card .project-body { padding-top: 0.6rem; }
.project-card .project-tech { padding-bottom: 1.5rem; padding-top: 0.8rem; }
.project-glow {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(0,212,255,.05) 0%, transparent 55%);
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.project-card:hover .project-glow { opacity: 1; }
/* Project image preview */
.project-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  border: 1px solid var(--border);
}
.project-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
  transition: opacity .3s;
}
.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.project-card:hover .project-img,
.freelance-card:hover .project-img {
  transform: scale(1.05);
}
.project-card:hover .project-img-wrap,
.freelance-card:hover .project-img-wrap {
  border-color: var(--border-glow);
}
.project-header { display: flex; justify-content: space-between; align-items: center; }
.project-icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-10); border: 1px solid rgba(0,212,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem;
  transition: background .3s;
}
.project-card:hover .project-icon-wrap { background: var(--accent-20); }
.project-links { display: flex; gap: 8px; }
.project-btn {
  width: 34px; height: 34px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: .78rem;
  transition: all .25s;
}
.project-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-10); transform: translateY(-2px);
}
.project-body h3 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 3px;
}
.project-tag {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--accent); letter-spacing: .5px; margin-bottom: 9px;
}
.project-desc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-desc-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
.project-desc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-tech span {
  padding: 4px 10px; border-radius: 100px;
  background: rgba(0,212,255,.04); border: 1px solid rgba(0,212,255,.1);
  font-family: var(--font-mono); font-size: .65rem; color: var(--accent);
}

/* ── FREELANCE ── */
.freelance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.freelance-card { padding: 0; display: flex; flex-direction: column; }
.freelance-card .project-img-wrap { border-radius: 14px 14px 0 0; border: none; border-bottom: 1px solid var(--border); }
.freelance-card .fl-top,
.freelance-card .fl-title,
.freelance-card .psr-flow,
.freelance-card .fl-tech { padding: 0 1.6rem; }
.freelance-card .fl-top { padding-top: 1.4rem; }
.freelance-card .fl-tech { padding-bottom: 1.6rem; }
.fl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fl-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--accent-10); border: 1px solid rgba(0,212,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.3rem;
}
.fl-badge {
  font-family: var(--font-mono); font-size: .66rem;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 2px;
}
.fl-title {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 1.4rem;
}
.psr-flow { display: flex; flex-direction: column; gap: 0; }
.psr-item { padding: .9rem 1rem; border-radius: 8px; }
.psr-problem { background: rgba(239,68,68,.04);  border-left: 2px solid rgba(239,68,68,.35); }
.psr-solution { background: rgba(59,130,246,.04); border-left: 2px solid rgba(59,130,246,.35); }
.psr-result  { background: rgba(34,197,94,.04);  border-left: 2px solid rgba(34,197,94,.35); }
.psr-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px;
}
.psr-problem  .psr-label { color: var(--red); }
.psr-solution .psr-label { color: var(--blue); }
.psr-result   .psr-label { color: var(--green); }
.psr-item p { font-size: .83rem; color: var(--text-2); line-height: 1.65; }
.psr-item p strong { color: var(--text-1); }
.psr-connector { text-align: center; color: var(--text-3); padding: 4px 0; font-size: .65rem; }
.fl-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1.4rem; }
.fl-tech span {
  padding: 4px 10px; border-radius: 100px;
  background: var(--accent-10); border: 1px solid rgba(0,212,255,.1);
  font-family: var(--font-mono); font-size: .65rem; color: var(--accent);
}

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stats-panel { padding: 1.8rem; }
.stats-panel-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.4rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.stats-panel-icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 1.1rem;
}
.lc-icon { color: var(--orange) !important; }
.stats-panel-head h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--text-1); flex: 1;
}
.stats-source-badge {
  font-family: var(--font-mono); font-size: .62rem;
  padding: 3px 9px; border-radius: 100px;
  background: var(--accent-10); color: var(--accent);
  border: 1px solid rgba(0,212,255,.15);
}
/* Loading state */
.stat-loading {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2.5rem 0; color: var(--text-3);
  font-family: var(--font-mono); font-size: .75rem;
}
.loading-ring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* GitHub grid */
.gh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1rem; }
.gh-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: 10px; padding: .9rem; text-align: center;
  transition: border-color .3s;
}
.gh-card:hover { border-color: var(--border-glow); }
.gh-num {
  display: block; font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 800; color: var(--accent);
}
.gh-lbl {
  font-family: var(--font-mono); font-size: .6rem;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 1px;
}
#github-streak-img {
  width: 100%; border-radius: 9px; border: 1px solid var(--border);
  margin-top: .9rem;
}
/* LeetCode grid */
.lc-total-wrap {
  text-align: center; padding: .9rem; border-radius: 10px;
  background: rgba(255,161,22,.04); border: 1px solid rgba(255,161,22,.14);
  margin-bottom: .9rem;
}
.lc-num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800;
  color: var(--orange);
}
.lc-lbl {
  font-family: var(--font-mono); font-size: .62rem;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 1px;
}
.lc-diff-row { display: flex; gap: .8rem; margin-bottom: .8rem; }
.lc-diff {
  flex: 1; padding: .8rem; border-radius: 10px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  text-align: center;
}
.lc-diff-n { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; display: block; }
.lc-diff.easy   .lc-diff-n { color: #00b8a3; }
.lc-diff.medium .lc-diff-n { color: var(--orange); }
.lc-diff.hard   .lc-diff-n { color: #ff375f; }
.lc-diff-t { font-family: var(--font-mono); font-size: .6rem; color: var(--text-3); text-transform: uppercase; }
.lc-extra { display: flex; gap: .8rem; }
.lc-extra-item {
  flex: 1; padding: .75rem; border-radius: 9px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
}
.lc-extra-l { font-family: var(--font-mono); font-size: .6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.lc-extra-v { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text-1); margin-top: 2px; }
/* Error */
.fetch-error {
  display: flex; align-items: center; gap: 9px; padding: 1rem;
  color: var(--text-3); font-family: var(--font-mono); font-size: .75rem;
}
.fetch-error i { color: var(--red); }

/* ── CERTIFICATIONS ── */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.cert-card { 
  padding: 0.8rem; 
  display: flex; 
  gap: 1.2rem; 
  align-items: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-30);
}
.cert-icon-wrap {
  flex: 0 0 33.33%;
  aspect-ratio: 1.4 / 1;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cert-icon-img {
  border-color: var(--border);
}
.cert-icon-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cert-info h4 {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 3px;
}
.cert-org {
  display: block; font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-3); margin-bottom: 7px;
}
.cert-pill, .cert-pill-star {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-family: var(--font-mono); font-size: .62rem;
  background: var(--accent-10); border: 1px solid rgba(0,212,255,.15); color: var(--accent);
}
.cert-pill-star { color: var(--orange); background: rgba(255,161,22,.08); border-color: rgba(255,161,22,.2); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.contact-intro {
  font-size: 1rem; color: var(--text-2); line-height: 1.8; margin-bottom: 2rem;
}
.contact-items { display: flex; flex-direction: column; gap: .9rem; }
.contact-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: all .3s;
}
.contact-row:hover {
  border-color: var(--border-glow); background: var(--surface-h);
  transform: translateX(5px);
}
.contact-row-icon {
  width: 38px; height: 38px; min-width: 38px; border-radius: 8px;
  background: var(--accent-10); border: 1px solid rgba(0,212,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: .9rem;
}
.contact-row-label {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 1px;
}
.contact-row-val { font-size: .88rem; color: var(--text-1); }
.contact-row-arrow { margin-left: auto; color: var(--text-3); font-size: .75rem; transition: transform .3s, color .3s; }
.contact-row:hover .contact-row-arrow { transform: translateX(3px); color: var(--accent); }
/* Form */
.contact-form { padding: 2rem; }
.form-row { margin-bottom: 1.2rem; }
.form-field { position: relative; }
.form-field input,
.form-field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text-1); font-size: .9rem; outline: none;
  transition: border-color .3s, background .3s; resize: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(0,212,255,.015);
}
.form-field label {
  position: absolute; left: 16px; top: 14px;
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--text-3); pointer-events: none;
  transition: top .2s, font-size .2s, color .2s;
}
.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  top: -10px; font-size: .62rem; color: var(--accent);
  background: var(--bg); padding: 0 6px; left: 10px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: transparent; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 2rem 0; position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo .logo-img {
  height: 28px;
}
.footer-copy { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); }
.footer-copy span { color: var(--text-2); }
.footer-year { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); }

/* ── SCROLL REVEAL ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--delay, 0s);
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.is-visible   { opacity: 1 !important; transform: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; padding-top: calc(var(--nav-h) + 2rem); text-align: center; }
  .hero-left { order: 2; display: flex; flex-direction: column; align-items: center; }
  .hero-right { order: 1; }
  .hero-tagline { text-align: center; }
  .about-lead { text-align: left; }
  .about-stats { justify-content: center; }
  .photo-wrapper { width: 240px; height: 240px; }
  .photo-container { width: 210px; height: 210px; }
  .ring-outer  { inset: -44px; }
  .ring-mid    { inset: -28px; }
  .ring-inner  { inset: -12px; }
  @keyframes orbit1 { from{transform:rotate(0deg) translateX(118px) rotate(0deg);} to{transform:rotate(360deg) translateX(118px) rotate(-360deg);} }
  @keyframes orbit2 { from{transform:rotate(120deg) translateX(136px) rotate(-120deg);} to{transform:rotate(480deg) translateX(136px) rotate(-480deg);} }
  @keyframes orbit3 { from{transform:rotate(240deg) translateX(150px) rotate(-240deg);} to{transform:rotate(600deg) translateX(150px) rotate(-600deg);} }
}
@media (max-width: 768px) {
  :root { --pad-y: 70px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .freelance-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-wrap: wrap; justify-content: center; }
  .hero-social { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .exp-card-horizontal {
    flex-direction: column;
  }
  .exp-card-certificate {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.2rem;
  }
}
@media (max-width: 480px) {
  .certs-grid { grid-template-columns: 1fr; }
  .lc-diff-row { flex-direction: row; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,.25); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,.5); }

/* ── SELECTION ── */
::selection { background: rgba(0,212,255,.2); color: var(--text-1); }

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 1rem 1.4rem;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.toast.toast-show { transform: translateX(0); opacity: 1; }
.toast.toast-hide { transform: translateX(110%); opacity: 0; }

.toast i { font-size: 1.25rem; }
.toast-success { border-left-color: var(--green); }
.toast-success i { color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-error i { color: var(--red); }

.toast-msg { font-size: 0.88rem; font-weight: 500; line-height: 1.4; }

@media (max-width: 480px) {
  .toast-container {
    left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  }
  .toast {
    min-width: 0; width: 100%;
  }
}
