/* ============================================================
   SOUBHAGYA PORTFOLIO — CSS
   Top-class, minimal, refined design
   Inspired by darpanjain.com — Raleway, black/white/gold palette,
   generous whitespace, sophisticated typography
   ============================================================ */

:root {
  --particle-primary: #4488FF;
  --gold: #d4a842;
  --green: #4ade80;
  --bg: #000;
  --text: #fff;
  --text-dim: rgba(255,255,255,0.55);
  --text-mid: rgba(255,255,255,0.75);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.18);
  --card-bg: rgba(255,255,255,0.025);
  --card-hover: rgba(255,255,255,0.045);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Selection ---- */
::selection { background: rgba(212, 168, 66, 0.3); color: #fff; }

/* ============================================================
   ANIMATION WRAPPER — Fireflies
   ============================================================ */
#animation-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
#circle { display: none; }
.particle {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  background: var(--particle-primary);
}

/* ============================================================
   PARTICLES.JS
   ============================================================ */
#particles-js {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  padding: 20px 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 24px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  margin: 0 12px;
}

.nav-center a {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
}
.nav-center a:hover {
  color: #fff;
  transform: scale(1.1);
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  padding: 8px 14px;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-star {
  font-size: 0.7rem;
  padding: 0 8px;
  user-select: none;
  color: var(--gold);
  opacity: 0.7;
}

/* ============================================================
   HERO — Confident, clean, big typography
   ============================================================ */
.cover-v1 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 80%;
  padding-bottom: 60px;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 40px;
  color: #fff;
}

.hero-body {
  font-size: clamp(1.1rem, 2.5vw, 1.95rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-mid);
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.65rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: -0.2px;
}

.hl-green { color: var(--green); }
.hl-gold { color: var(--gold); }

/* Explore btn */
.explore-btn {
  position: absolute;
  left: 50%; bottom: 50px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUpBtn 0.6s ease-out 1.2s forwards;
  transition: all 0.25s ease;
  cursor: pointer;
}
.explore-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(-50%) translateY(-2px);
}

.explore-arrow {
  display: inline-flex;
  animation: bounceDown 2s infinite;
}

@keyframes fadeUpBtn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Gradient */
.gradient-bottom-black {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, #000 100%);
  z-index: 5;
  pointer-events: none;
}

/* ============================================================
   SECTIONS — Generous spacing
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 40px;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 72px;
  text-align: center;
}
.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ============================================================
   PROJECTS — Clean minimal cards, 4-col
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  padding: 20px 20px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: #ddd;
  transition: transform 250ms ease, border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--card-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  color: #fff;
}

.pcard__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff;
}

.pcard__desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
  flex: 1;
  margin-bottom: 14px;
}
.pcard:hover .pcard__desc { color: var(--text-mid); }

.pcard__tags { display: flex; flex-wrap: wrap; gap: 5px; }

.pcard__tag {
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: rgba(200,210,240,0.7);
  transition: all 0.3s ease;
}
.pcard:hover .pcard__tag {
  background: rgba(212,168,66,0.1);
  color: rgba(212,168,66,0.9);
}

/* Browse variant */
.pcard--browse {
  border-style: dashed;
  border-color: rgba(212,168,66,0.2);
}
.pcard--browse:hover {
  border-color: rgba(212,168,66,0.45);
  background: rgba(212,168,66,0.04);
}

/* ============================================================
   SKILLS — Icon + bold title + underline + comma list
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
}

.skill-block { text-align: left; }

.skill-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--gold);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.skill-block:hover .skill-icon {
  background: rgba(212,168,66,0.08);
  border-color: rgba(212,168,66,0.2);
  transform: translateY(-2px);
}

.skill-block__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.skill-block__list {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-dim);
  font-weight: 400;
}

/* ============================================================
   WORK EXPERIENCE — Timeline layout
   ============================================================ */
.work-list {
  max-width: 820px;
  margin: 0 auto;
}

.work-item {
  display: flex;
  gap: 32px;
  padding-bottom: 56px;
}
.work-item:last-child { padding-bottom: 0; }

.work-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.work-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(212,168,66,0.08);
  border: 1px solid rgba(212,168,66,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--gold);
  flex-shrink: 0;
}

.work-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(212,168,66,0.3), transparent);
  margin-top: 12px;
  border-radius: 2px;
}

.work-date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--gold);
}

.work-right h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.work-role {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.work-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 16px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-tags span {
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-entry {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.edu-logo {
  flex-shrink: 0;
  width: 90px; height: 90px;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.edu-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.edu-school {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.edu-degree {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.edu-meta {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.edu-cw-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.edu-cw-list {
  list-style: disc;
  padding-left: 22px;
}
.edu-cw-list li {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 6px;
}
.edu-cw-list li b {
  font-weight: 700;
  color: #fff;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease;
}
.cert-item:last-child { border-bottom: none; }
.cert-item:hover { background: rgba(255,255,255,0.025); }

.cert-logo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cert-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.cert-info p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.cert-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  transition: opacity 0.2s;
}
.cert-link:hover { opacity: 0.65; }

/* ============================================================
   CONTACT HERO V2 — Cinematic Elite Standard
   ============================================================ */
.contact-hero-v2 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

/* Cursor Spotlight Lens */
.contact-spotlight {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 168, 66, 0.15), transparent 40%);
  pointer-events: none;
  z-index: 2;
  transition: background 0.1s ease;
}

.contact-hero-content {
  flex: 1;
  display: flex;
  width: 100%;
}

.contact-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.contact-col:last-child { border-right: none; }

.mega-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  padding: 40px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.mega-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin-bottom: 24px;
  transition: color 0.4s ease;
}

.mega-title {
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: #fff;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mega-title.outlined {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

/* Hover States */
.contact-col:hover {
  flex: 1.4;
}

.contact-col:hover .mega-tag {
  color: var(--gold);
}

.contact-col:hover .mega-title.outlined {
  color: #fff;
  -webkit-text-stroke: 1px transparent;
}

.contact-col:hover .mega-title {
  transform: scale(1.05);
}

.mega-hover-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(212, 168, 66, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.contact-col:hover .mega-hover-bg {
  opacity: 1;
}

/* Footer Elite V2 */
.contact-footer-v2 {
  height: 100px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 10;
  background: #000;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
}

.availability-status-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-right {
  text-align: right;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .contact-hero-content { flex-direction: column; }
  .contact-col { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .mega-title { font-size: clamp(3rem, 15vw, 8rem); }
  .contact-footer-v2 { flex-direction: column; height: auto; padding: 40px; gap: 30px; text-align: center; }
  .footer-right { text-align: center; }
}

.contact-socials a:hover {
  color: #fff;
}

.contact-socials a:hover i {
  color: var(--gold);
}

.contact-socials a:hover span {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .contact-section { padding-bottom: 100px; }
  .contact-container { padding: 40px 20px; }
  .contact-socials { gap: 24px; flex-wrap: wrap; }
  .contact-socials a span { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
}

/* ============================================================
   FLOATING CTA
   ============================================================ */
.lets-talk {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 2000;
  background: var(--bg);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.lets-talk.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.lets-talk:hover {
  color: var(--gold);
  border-color: rgba(212,168,66,0.35);
  background: rgba(212,168,66,0.04);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
}

@media (max-width: 768px) {
  .section { padding: 100px 20px; }
  .section-heading { margin-bottom: 52px; }
  .projects-grid { grid-template-columns: 1fr; }
  .pcard { min-height: auto; }
  .skills-grid { grid-template-columns: 1fr; gap: 40px; }
  .edu-entry { flex-direction: column; gap: 24px; }
  .edu-logo { width: 70px; height: 70px; }
  .edu-school { font-size: 1.25rem; }
  .work-item { flex-direction: column; gap: 16px; }
  .work-left { flex-direction: row; gap: 12px; }
  .work-line { display: none; }
  .nav-inner { padding: 8px 14px; }
  .nav-link { font-size: 0.6rem; padding: 6px 10px; }
  .nav-center { padding: 0 12px; gap: 10px; }
  .hero-title { letter-spacing: -1.5px; }
}

@media (max-width: 480px) {
  .nav-center { display: none; }
  .nav-star { display: none; }
  .nav-link { font-size: 0.55rem; padding: 5px 8px; }
  .hero-title { letter-spacing: -1px; }
}