/* ============================================================
   SUSHANT DADHWAL PORTFOLIO — site.css
   Professional Dark Theme
   ============================================================ */

:root {
  --primary:       #4f8ef7;
  --primary-dark:  #3a7de5;
  --secondary:     #7c3aed;
  --accent:        #10b981;
  --bg-dark:       #0d1117;
  --bg-card:       #161b22;
  --bg-alt:        #0f1923;
  --border:        #21262d;
  --text-primary:  #e6edf3;
  --text-muted:    #8b949e;
  --gradient:      linear-gradient(135deg, #4f8ef7, #7c3aed);
  --radius:        14px;
  --transition:    .3s ease;
}

/* ── BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── NAVBAR ───────────────────────────────────────────────── */
#mainNav {
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  transition: all var(--transition);
}
#mainNav.scrolled {
  background: rgba(13,17,23,.97);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.navbar-brand .brand-text {
  font-family: 'Fira Code', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .75rem !important;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary) !important; background: rgba(255,255,255,.05); }

/* ── UTILITY ──────────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-dark-alt { background: var(--bg-alt); }
.section-padding { padding: 100px 0; }
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79,142,247,.1);
  border: 1px solid rgba(79,142,247,.2);
  border-radius: 20px;
  padding: .3rem 1rem;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-text { color: var(--text-muted); margin-bottom: 1rem; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .12;
}
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 30%; }
.hero-section .container { position: relative; z-index: 1; }

.hero-greeting { font-size: 1.1rem; color: var(--text-muted); margin-bottom: .5rem; }
.greeting-emoji { font-size: 1.4rem; margin-right: .5rem; }
.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title-wrapper {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.hero-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.typed-text { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); font-family: 'Fira Code', monospace; }
.typed-cursor { font-size: 1.25rem; color: var(--primary); animation: cursor .7s infinite; }
@keyframes cursor { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-summary { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; line-height: 1.8; }

.btn-primary { background: var(--gradient); border: none; border-radius: 10px; font-weight: 600; padding: .65rem 1.5rem; transition: all var(--transition); }
.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,142,247,.3); }
.btn-outline-light { border-color: rgba(255,255,255,.2); color: var(--text-primary); border-radius: 10px; font-weight: 600; padding: .65rem 1.5rem; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }

.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1rem;
  margin-right: .5rem; transition: all var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }

/* ── DEV CARD (Hero Illustration) ────────────────────────── */
.hero-illustration { position: relative; padding: 2rem; }
.dev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transform: rotate(-2deg);
  transition: transform var(--transition);
}
.dev-card:hover { transform: rotate(0deg); }
.dev-card-header {
  background: #1c2128;
  padding: .6rem 1rem;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.dev-file { font-size: .75rem; color: var(--text-muted); font-family: 'Fira Code', monospace; }
.dev-card-body { padding: 1.25rem; }
.code-block {
  font-family: 'Fira Code', monospace;
  font-size: .78rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
  background: none;
  border: none;
}
.code-block .kw  { color: #ff7b72; }
.code-block .cls { color: #79c0ff; }

.float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .4rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: .4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.badge-1 { bottom: 2rem;  right: -1rem; animation: float1 3s ease-in-out infinite; }
.badge-2 { top: 2rem;    right: -1rem; animation: float2 3.5s ease-in-out infinite; }
.badge-3 { bottom: 5rem; left: -1rem;  animation: float1 4s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ── SCROLL INDICATOR ─────────────────────────────────────── */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-indicator a { color: var(--text-muted); font-size: 1.2rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stat-item { padding: 1rem; }
.stat-number {
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: .9rem; font-weight: 500; margin-top: .25rem; }

/* ── ABOUT ────────────────────────────────────────────────── */
.about-image-wrapper { position: relative; display: inline-block; width: 100%; }
.about-img-placeholder {
  width: 340px; max-width: 100%;
  height: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.avatar-initials {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800; color: #fff;
  margin-bottom: 1rem;
}
.about-badge {
  position: absolute; bottom: 1.5rem;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3);
  border-radius: 20px; padding: .35rem 1rem;
  font-size: .8rem; color: var(--accent);
}
.about-bg-shape {
  position: absolute; width: 300px; height: 300px;
  background: var(--gradient); border-radius: 50%;
  filter: blur(80px); opacity: .08;
  bottom: -100px; right: -100px;
}
.info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem;
}
.info-item i { font-size: 1.2rem; margin-top: .2rem; flex-shrink: 0; }
.info-item small { color: var(--text-muted); font-size: .75rem; }
.info-item p { margin: .2rem 0 0; font-weight: 500; color: var(--text-primary); }

/* ── SKILLS ───────────────────────────────────────────────── */
.skill-category-title {
  color: var(--text-primary); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
  transition: all var(--transition);
}
.skill-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.skill-icon { font-size: 1.25rem; color: var(--primary); }
.skill-name { font-weight: 600; color: var(--text-primary); font-size: .9rem; }
.skill-percent { font-size: .8rem; color: var(--primary); font-weight: 700; font-family: 'Fira Code', monospace; }
.skill-bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.skill-progress {
  height: 100%; border-radius: 3px;
  background: var(--gradient);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ── TIMELINE (Experience) ────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-marker { position: absolute; left: -2rem; top: 1.5rem; }
.marker-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-card); border: 3px solid var(--border);
}
.marker-dot.current { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 12px rgba(79,142,247,.4); }
.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all var(--transition);
}
.timeline-card:hover { border-color: var(--primary); }
.timeline-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.timeline-role { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .25rem; }
.timeline-company { color: var(--primary); font-weight: 500; font-size: .9rem; margin: 0; }
.timeline-period { font-size: .85rem; color: var(--text-muted); font-family: 'Fira Code', monospace; }
.timeline-location { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.timeline-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin: 0; }

/* ── PROJECTS ─────────────────────────────────────────────── */
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.project-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.project-header {
  padding: 1.5rem 1.5rem 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.project-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(79,142,247,.1); border: 1px solid rgba(79,142,247,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary);
}
.featured-badge { background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.3); color: #a78bfa; font-size: .75rem; }
.project-body { padding: 1.25rem 1.5rem; flex: 1; }
.project-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: .5rem; }
.project-desc  { color: var(--text-muted); font-size: .875rem; line-height: 1.6; margin-bottom: .75rem; }
.project-category { font-size: .75rem; color: var(--accent); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); border-radius: 20px; padding: .2rem .75rem; }
.tech-tag {
  display: inline-block; font-size: .72rem; font-weight: 500;
  background: rgba(79,142,247,.08); border: 1px solid rgba(79,142,247,.2);
  color: var(--primary); border-radius: 6px; padding: .15rem .5rem; margin: .15rem;
}
.project-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; gap: .75rem;
}
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: 8px; font-weight: 500; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--text-muted); border: 1px solid var(--border); border-radius: 8px; font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }

/* ── EDUCATION ────────────────────────────────────────────── */
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; align-items: flex-start; gap: 1.5rem;
  transition: all var(--transition);
}
.edu-card:hover { border-color: var(--primary); }
.edu-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; flex-shrink: 0;
}
.edu-degree    { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: .35rem; }
.edu-institution { color: var(--primary); font-weight: 500; margin-bottom: .5rem; }
.edu-meta      { font-size: .85rem; color: var(--text-muted); }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
  transition: all var(--transition);
}
.contact-info-item:hover { border-color: var(--primary); }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(79,142,247,.1); border: 1px solid rgba(79,142,247,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--primary); flex-shrink: 0;
}
.contact-info-item h6 { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: .25rem; }
.contact-info-item a  { color: var(--text-primary); font-weight: 500; }

.dark-input {
  background: var(--bg-card) !important; border: 1px solid var(--border) !important;
  color: var(--text-primary) !important; border-radius: 10px !important;
  padding: .75rem 1rem !important;
  transition: all var(--transition);
}
.dark-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(79,142,247,.15) !important;
}
.dark-input::placeholder { color: var(--text-muted) !important; }
.contact-form .form-label { color: var(--text-muted); font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-muted); margin: 0 .25rem;
  transition: all var(--transition);
}
.footer-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-text { color: var(--text-muted); font-size: .875rem; }
.footer-sub  { font-size: .75rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-padding { padding: 70px 0; }
  .hero-section { padding-top: 100px; }
  .about-img-placeholder { width: 100%; height: 280px; }
  .timeline { padding-left: 1.5rem; }
  .timeline-header { flex-direction: column; }
  .edu-card { flex-direction: column; align-items: center; text-align: center; }
  .float-badge { display: none; }
  .dev-card { transform: none; }
}
