/* ============================================================
   HARSHIT JAIN — PORTFOLIO STYLES
============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #111111;
}

/* ============================================================
   MAIN LAYOUT
============================================================ */
.wrap {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  padding: 40px 60px;
}

/* ============================================================
   LEFT SIDEBAR
============================================================ */
.left {
  position: sticky;
  top: 40px;
  height: fit-content;
  align-self: start;
}

.profile .avatar {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  background: #ddd;
  background-image: url("assets/profile.jpg");
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile {
  text-align: center;
}

.name {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.role {
  font-size: 16px;
  color: #111111;
  margin-bottom: 8px;
  text-align: center;
}

.desc {
  font-size: 15px;
  color: #111111;
  line-height: 1.6;
  margin-top: 6px;
  text-align: center;
}

.textbox {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  margin-top: 12px;
}

/* ============================================================
   RIGHT CONTENT AREA
============================================================ */
.right {
  max-width: 960px;
}

.section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  color: #111111;
}

/* ============================================================
   CARD GRIDS
============================================================ */
.cards {
  display: grid;
  gap: 20px;
  justify-content: center;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
  margin: 0 auto;
}

.cards.one {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
  max-width: 100%;
}

.cards.contactgrid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   CARD STYLES
============================================================ */
.card {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card.vertical {
  aspect-ratio: 9 / 16;
  width: 100%;
}

.card.square {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.card.horizontal {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contactcard {
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contactcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.cname { font-weight: 700; font-size: 15px; color: #111111; }
.csub  { font-size: 12px; opacity: 0.65; margin-top: 2px; color: #ffffff; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .left {
    position: relative;
    top: 0;
  }

  .right {
    max-width: 100%;
  }

  .cards.two,
  .cards.one,
  .cards.contactgrid {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .name {
    font-size: 32px;
  }
}
