/* 
   YASH KUMAR — PORTFOLIO
   Clean, responsive, dark theme */

/* ── CSS Variables ── */
:root {
  --bg:        #020617;
  --bg-card:   #0f172a;
  --accent:    #38bdf8;
  --accent2:   #6366f1;
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --border:    #1e293b;
  --radius:    16px;
  --shadow:    0 0 24px rgba(56, 189, 248, 0.2);

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR*/
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav__menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}

.nav__menu a:hover,
.nav__menu a.active {
  color: var(--accent);
}

.nav__cta {
  background: var(--accent2);
  color: #fff;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s, transform 0.2s;
}

.nav__cta:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* Mobile hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SECTION HELPERS */
.section {
  padding: 100px 8%;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
}

.section__title span {
  color: var(--accent);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #020617;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.btn--outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--accent);
  color: #020617;
  transform: translateY(-3px);
}

/* HERO */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 8%;
}

.hero__content {
  max-width: 560px;
}


.hero__title {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero__title span {
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero__desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual */
.hero__visual {
  position: relative;
  flex-shrink: 0;
  width: 380px;
  height: 380px;
  animation: float 5s ease-in-out infinite;
}

.hero__blob {
  width: 100%;
  height: 100%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0.15;
  filter: blur(30px);
  
}

@keyframes float {
     0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
} 

.hero__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  
}

.hero__card-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero__tags span {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
}

/* ABOUT */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Generic card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--accent);
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

/* Skills chips inside card */
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.skill-chip {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.project-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.4s;
}

.project-card:hover .project-card__image img {
  opacity: 0.85;
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 40px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card__body {
  padding: 28px;
}

.project-card__body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-card__body p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card__tech span {
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 40px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__desc {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  max-width: 460px;
  margin: -30px auto 50px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}

.contact-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: rgba(56, 189, 248, 0.4);
}

.contact-item__icon {
  width: 52px;
  height: 52px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background 0.25s;
}

.contact-item:hover .contact-item__icon {
  background: var(--accent);
}

.contact-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer strong {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
  }

  .hero__visual {
    width: 100%;
    max-width: 340px;
    height: 300px;
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .nav__menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__menu.open {
    max-height: 300px;
  }

  .nav__menu li {
    width: 100%;
    text-align: center;
  }

  .nav__menu a {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .section {
    padding: 70px 6%;
  }

  .hero {
    padding: 40px 6%;
    min-height: auto;
  }
}
