/* RESET */
* {
  box-sizing: border-box;
}

/* =========================
   GLOBAL / BODY
========================= */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0f0f0f;
  color: #f5f5f5;
}

/* =========================
   LAYOUT
========================= */
.layout {
  display: flex;
  height: 100vh; /* FIXED: allows equal height cards */
  padding: 40px;
  gap: 32px;
  padding: 40px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 350px;
  height: 100%;
  flex-shrink: 0;
}

.profile-card {
  background: #161616;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* rendering polish */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.sidebar-header {
  position: relative;
  margin-bottom: 28px;
}

.sidebar-header::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 20px auto 0;
  border-radius: 2px;
  background-color: #ffffff;
  opacity: 0.9;
}

.sidebar-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sidebar-role {
  font-size: 14px;
  color: #b3b3b3;
}

/* CONTACT */
.contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1c1c1c;
  color: #f5c26b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact small {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #d0d0d0;
}

/* =========================
   MAIN CONTENT
========================= */
.content {
  flex: 1;
  height: 100%;
  background: #161616;
  border-radius: 20px;

  padding: 0; /* ✅ key change */
  overflow-y: auto;
  position: relative;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* =========================
   TABS
========================= */
.tabs {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  gap: 24px;

  padding: 28px 48px 18px; /* looks like your old spacing */
  background: #161616;

  /* optional polish */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tab {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding-bottom: 6px;
  position: relative;
}

.tab.active {
  color: #f5f5f5;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #f5c26b;
}

.content-inner {
  padding: 28px 48px 48px; /* your original padding vibe */
}
/* =========================
   TAB CONTENT
========================= */
.tab-content {
  display: block;

  padding-bottom: 80px;

  /* ✅ when you click a tab, it scrolls to section without hiding under sticky tabs */
  scroll-margin-top: 90px;
}

/* =========================
   TYPOGRAPHY
========================= */
.page-title {
  position: relative;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.page-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background-color: #f5c26b;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
}

.body-text {
  font-size: 18px;
  line-height: 1.7;
  color: #b3b3b3;
  max-width: 720px;
  margin-bottom: 16px;
}

.body-text.subtle {
  color: #8f8f8f;
  font-size: 16px;
}

/* =========================
   RESUME SECTIONS
========================= */
.resume-section {
  margin-top: 10px;
}

/* Section header with icon */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-icon {
  width: 40px;
  height: 40px;
  background: #1c1c1c;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c26b;
  font-size: 18px;
}

/* =========================
   TIMELINE
========================= */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid #2a2a2a;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.dot {
  position: absolute;
  left: -9px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #f5c26b;
  border-radius: 50%;
}

.timeline-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.timeline-content .date {
  font-size: 14px;
  color: #f5c26b;
  display: block;
  margin: 6px 0 10px;
}

.timeline-content p {
  font-size: 16px;
  color: #b3b3b3;
  line-height: 1.6;
}

/* =========================
   SKILLS
========================= */
.skill {
  margin-bottom: 20px;
}

.skill span {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.bar {
  background: #2a2a2a;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: linear-gradient(90deg, #f5c26b, #ffb84d);
  border-radius: 6px;
}

/* =========================
   PROJECTS
========================= */
.project-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: #1c1c1c;
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  background-color: #222;
}

.card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* =========================
   RESUME – WORK HISTORY
========================= */

.role-block {
  margin-bottom: 48px;
}

.role-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.role-meta {
  font-size: 15px;
  color: #f5c26b;
  margin-bottom: 14px;
  line-height: 1.4;
}

.role-meta .date {
  color: #b3b3b3;
  font-size: 14px;
}

.role-points {
  padding-left: 18px;
  margin: 0;
}

.role-points li {
  font-size: 16px;
  color: #b3b3b3;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-map {
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  background: #0f0f0f;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) brightness(0.85);
}

/* FORM WRAPPER */
.contact-form-wrapper {
  margin-top: 48px;
}

/* FORM */
.contact-form {
  margin-top: 24px;
  background: #161616;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 14px 16px;
  color: #f5f5f5;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form textarea {
  margin-top: 20px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f5c26b;
  background: rgba(255, 255, 255, 0.02);
}

/* BUTTON */
.contact-form button {
  margin-top: 24px;
  background: #f5c26b;
  color: #111;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 194, 107, 0.4);
}

/* MOBILE */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PORTFOLIO – FEATURED PROJECT
   ========================= */

.project-feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  background: #161616;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* PROJECT IMAGE */
.project-feature-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* PROJECT BODY */
.project-feature-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TECH TAGS */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.project-tags .tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* PROJECT LINKS */
.project-links {
  margin-top: 16px;
}

.project-link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}

/* TAKEAWAYS */
.project-subtitle {
  margin-top: 32px;
  font-size: 1.1rem;
  font-weight: 600;
}

.project-takeaways {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-takeaways li {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .project-feature {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

/* =========================
   PROJECT FEATURE IMAGE
   ========================= */

.project-feature-media {
  width: 100%;
  max-width: 520px; /* keeps it elegant, not massive */
  height: 280px; /* THIS is the key: fixed height */
  overflow: hidden; /* crops excess */
  border-radius: 16px;
  background: #111; /* fallback for transparent PNGs */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.project-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 magic */
  object-position: center;
}

/* =========================
   MOBILE LAYOUT FIX
========================= */
@media (max-width: 768px) {
  /* 1. Stack everything vertically */
  .layout {
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 16px;
  }

  /* 2. Sidebar becomes top card */
  .sidebar {
    width: 100%;
    height: auto;
  }

  .profile-card {
    height: auto;
    padding: 24px;
  }

  /* 3. Content becomes normal flow */
  .content {
    height: auto;
    overflow: visible;
  }

  /* 4. Tabs spacing tighter */
  .tabs {
    padding: 16px 20px 12px;
    gap: 16px;
  }

  .tab {
    font-size: 14px;
  }

  /* 5. Content padding reduced */
  .content-inner {
    padding: 20px;
  }

  /* 6. Typography scale */
  .page-title {
    font-size: 28px;
  }

  .body-text {
    font-size: 16px;
  }

  /* 7. Projects stack cleanly */
  .project-feature {
    padding: 24px;
    gap: 24px;
  }

  .project-feature-media {
    max-width: 100%;
    height: 200px;
  }
}
