/* ============================================
   SHREE JEE GUPTA — PORTFOLIO STYLESHEET
   style.css
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --surface: #1a1a26;
  --border: rgba(255,255,255,0.07);
  --accent: #7c6af7;
  --accent2: #a78bfa;
  --accent3: #c4b5fd;
  --teal: #2dd4bf;
  --pink: #f472b6;
  --text: #e8e8f0;
  --muted: #8888aa;
  --card: #13131e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent2), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.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.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 6rem 5% 4rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,247,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.08) 0%, transparent 70%);
  bottom: 0; right: 10%;
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(124,106,247,0.12);
  border: 1px solid rgba(124,106,247,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--accent3);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero-badge span {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero-name { color: var(--text); }
.hero-role {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 440px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,106,247,0.35);
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,106,247,0.45);
}
.btn-secondary {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: border-color 0.2s, background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover {
  border-color: var(--accent2);
  background: rgba(124,106,247,0.07);
}

/* Hero Image */
.hero-img-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-img-ring {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 50%, var(--pink) 100%);
  padding: 3px;
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(0deg); }
}
.hero-img-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg2);
}
.hero-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-card {
  position: absolute;
  bottom: 20px; right: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  backdrop-filter: blur(10px);
}
.hero-img-card strong { color: var(--text); display: block; font-size: 0.9rem; }

/* ══════════════════════════════
   SECTIONS (shared)
══════════════════════════════ */
section { padding: 5rem 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.section-divider {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
  margin-bottom: 3rem;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.9; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.tag {
  padding: 0.35rem 0.9rem;
  background: rgba(124,106,247,0.1);
  border: 1px solid rgba(124,106,247,0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--accent3);
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(124,106,247,0.3); }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

/* ══════════════════════════════
   SKILLS
══════════════════════════════ */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
}
.skill-card:hover { transform: translateY(-4px); border-color: rgba(124,106,247,0.3); }
.skill-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.skill-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.skill-level { font-size: 0.78rem; color: var(--muted); }
.skill-bar {
  margin-top: 0.8rem;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width 1s ease;
}

/* ══════════════════════════════
   EXPERIENCE / TIMELINE
══════════════════════════════ */
#experience { background: var(--bg2); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -2.4rem; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg2);
  box-shadow: 0 0 10px rgba(124,106,247,0.5);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.timeline-card:hover { border-color: rgba(124,106,247,0.3); }
.timeline-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.timeline-role { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; }
.timeline-badge { padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.73rem; font-weight: 600; }
.badge-green { background: rgba(45,212,191,0.12); color: var(--teal); border: 1px solid rgba(45,212,191,0.25); }
.badge-purple { background: rgba(124,106,247,0.12); color: var(--accent2); border: 1px solid rgba(124,106,247,0.25); }
.timeline-company { color: var(--accent2); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.timeline-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.8rem; }
.timeline-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ══════════════════════════════
   PROJECTS
══════════════════════════════ */
#projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.project-card:hover { transform: translateY(-5px); border-color: rgba(124,106,247,0.3); }
.project-header {
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(124,106,247,0.08), rgba(45,212,191,0.05));
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
}
.project-emoji {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124,106,247,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.project-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; }
.project-type { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.project-body { padding: 1.4rem; }
.project-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.2rem; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.tech-tag {
  padding: 0.25rem 0.7rem;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--teal);
}
.project-links { display: flex; gap: 0.7rem; }
.proj-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.proj-link-github { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--border); }
.proj-link-github:hover { background: rgba(255,255,255,0.1); }
.proj-link-live { background: rgba(124,106,247,0.12); color: var(--accent2); border: 1px solid rgba(124,106,247,0.25); }
.proj-link-live:hover { background: rgba(124,106,247,0.2); }

/* ══════════════════════════════
   EDUCATION
══════════════════════════════ */
#education { background: var(--bg); }

/* ══════════════════════════════
   CERTIFICATES
══════════════════════════════ */
#certificates { background: var(--bg2); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover { border-color: rgba(124,106,247,0.3); transform: translateY(-2px); }
.cert-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,106,247,0.2), rgba(45,212,191,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cert-name { font-weight: 600; font-size: 0.92rem; }
.cert-issuer { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ══════════════════════════════
   TESTIMONIALS
══════════════════════════════ */
#testimonials { background: var(--bg); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.2s;
}
.testi-card:hover { border-color: rgba(124,106,247,0.3); }
.testi-quote {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}
.testi-text { color: var(--muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 1.3rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
  font-family: 'Syne', sans-serif;
}
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.78rem; color: var(--muted); }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
#contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.contact-info p { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-item:hover { border-color: rgba(124,106,247,0.3); transform: translateX(4px); }
.contact-item-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text { font-size: 0.9rem; }
.contact-item-label { font-size: 0.74rem; color: var(--muted); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.form-input, .form-textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.5; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-text { color: var(--muted); font-size: 0.85rem; }
.footer-text span { color: var(--accent2); }

/* ══════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-img-wrap { order: -1; }
  .hero-img-ring { width: 220px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-img-card { display: none; }
}