/* ── Reset & Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  background-color: #eedec5;
  background-image: url("background.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
}
body {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: #60463b;
  overflow-x: hidden;
}

html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

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

/* ── Header ── */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(700, calc(100% - 32px));
  background-color: rgba(96, 70, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  white-space: nowrap;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

header h1 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #eedec5;
  letter-spacing: 0.5px;
}

header.nav-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  pointer-events: none;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: rgba(238, 222, 197, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  margin-left: 0;
}

nav a:hover {
  color: #eedec5;
}

nav a.active {
  color: #eedec5;
  font-weight: 700;
  border-bottom: 2px solid rgba(238, 222, 197, 0.6);
  padding-bottom: 2px;
}

.nav-name {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #eedec5;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.nav-name:hover {
  opacity: 0.8;
}

nav a.nav-separator {
  border-left: 1px solid rgba(238, 222, 197, 0.3);
  padding-left: 16px;
  margin-left: 8px;
}

.github-btn {
  background: linear-gradient(to right, #2e3138, #6c6f7d);
  color: #eedec5;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.github-btn:hover {
  opacity: 0.85;
}

/* ── Sections ── */
section {
  padding: clamp(44px, 7vw, 80px) clamp(20px, 6vw, 60px);
  max-width: 900px;
  margin: 0 auto;
}

section h2 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin-bottom: 20px;
  color: #60463b;
  border-bottom-color: #856a5d;
  display: inline-block;
  padding-bottom: 4px;
}

/* ── About / Hero ── */
#about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 60px 80px;
}

.hero-left {
  flex-shrink: 0;
  width: 380px;
  position: relative;
}

.hero-image-block {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-letter {
  position: absolute;
  font-family: "Playfair Display", serif;
  font-size: 280px;
  font-weight: 700;
  color: rgba(96, 70, 59, 0.08);
  line-height: 1;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  z-index: 0;
}

.hero-image-block img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-image-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(46, 32, 22, 0.85), transparent);
  z-index: 2;
}

.hero-name {
  position: absolute;
  bottom: 60px;
  left: 24px;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: #eedec5;
  line-height: 1.1;
  z-index: 3;
}

.hero-label {
  position: absolute;
  bottom: 32px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(238, 222, 197, 0.7);
  text-transform: uppercase;
  z-index: 3;
}
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.hero-greeting {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  color: #2e2016;
  line-height: 1.2;
}

.hero-greeting span {
  color: #856a5d;
}

.hero-bio {
  font-size: 16px;
  color: #60463b;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
}

.hero-btn {
  position: relative;
  overflow: hidden;
  background: #60463b;
  color: #eedec5;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-block;
  transition: color 0.2s;
}

.hero-btn::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(238, 222, 197, 0.25) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  left: var(--x, 50%);
  top: var(--y, 50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.hero-btn:hover::before {
  opacity: 1;
}

.hero-btn:hover {
  background-color: #856a5d;
}

.hero-links {
  display: flex;
  gap: 24px;
}

.hero-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #60463b;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.hero-links a:hover {
  opacity: 1;
}

@media (max-width: 760px) {
  #about {
    flex-direction: column;
    padding: 120px 24px 60px;
    gap: 32px;
  }

  .hero-left {
    width: 100%;
  }

  .hero-image-block {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
  }

  .hero-letter {
    font-size: 200px;
  }
}

/* ── Statistics ── */
#Statistics {
  max-width: 100%;
  padding: 0px 60px 80px;
}

#Statistics h2 {
  border-bottom: 3px solid #856a5d;
  display: inline-block;
  padding-bottom: 4px;
  color: #60463b;
  margin-bottom: 40px;
}

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

.stats-card {
  background: #60463b;
  border: 1.5px solid #856a5d;
  border-radius: 16px;
  padding: 36px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #856a5d, #eedec5);
}

.stats-card:hover {
  box-shadow: 0 8px 28px rgba(96, 70, 59, 0.35);
  transform: translateY(-4px);
}

.stats-icon i {
  font-size: 28px;
  color: #faf1e5;
}

.stats-number {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  color: #eedec5;
  line-height: 1;
}

.stats-label {
  font-size: 11px;
  color: rgba(238, 222, 197, 0.6);
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-link {
  text-decoration: none;
  display: contents;
}

.stats-link .stats-card {
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.stats-link .stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Services ── */

#services {
  max-width: 100%;
  padding: 80px 60px;
}

#services h2 {
  border-bottom: 3px solid #856a5d;
  display: inline-block;
  padding-bottom: 4px;
  color: #60463b;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px auto 0;
  max-width: 900px;
}

.service-card {
  background: #60463b;
  border: 1.5px solid #856a5d;
  border-radius: 16px;
  padding: 36px 32px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #856a5d, #eedec5);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(96, 70, 59, 0.35);
}

.service-icon {
  font-size: 28px;
  color: #eedec5;
  margin-bottom: 16px;
}

.service-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #eedec5;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: rgba(238, 222, 197, 0.7);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list li {
  font-size: 14px;
  color: rgba(238, 222, 197, 0.6);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #856a5d;
  opacity: 1;
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Projects ── */
#projects {
  max-width: 100%;
  padding: 80px 60px;
}

#projects h2 {
  color: #60463b;
  border-bottom-color: #856a5d;
  border-bottom: 3px solid #856a5d;
  display: inline-block;
  padding-bottom: 4px;
}

#projects > div {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Skills ── */
#skills {
  max-width: 100%;
  padding: 80px 60px;
}

#skills > h2 {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 40px;
  border-bottom: 3px solid #856a5d;
  display: inline-block;
  padding-bottom: 4px;
  color: #60463b;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  background: #60463B;
  border: 1.5px solid #856A5D;
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.skill-card:hover {
  box-shadow: 0 8px 28px rgba(96, 70, 59, 0.35);
  transform: translateY(-4px);
}

.skill-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.skill-name {
  font-size: 15px;
  font-weight: 600;
  color: #eedec5;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.skill-proficiency {
  font-size: 11px;
  color: #856a5d;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.skill-desc {
  font-size: 12px;
  color: rgba(238, 222, 197, 0.6);
  line-height: 1.5;
  text-align: center;
  font-weight: 400;
}

/* ── Experience ── */
#experience {
  max-width: 100%;
  padding: 80px 60px;
}

#experience h2 {
  color: #60463b;
  border-bottom: 3px solid #856a5d;
  display: inline-block;
  padding-bottom: 4px;
}

.experience-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  flex: 1;
}

.exp-card {
  border: 1.5px solid #856A5D;
  border-radius: 16px;
  padding: 24px;
  background: #60463B;
  transition: box-shadow 0.2s, transform 0.2s;
}

.exp-card:hover {
  box-shadow: 0 8px 28px rgba(90, 42, 39, 0.35);
  transform: translateY(-4px);
}

.skill-card,
.exp-card,
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.skill-card::before,
.exp-card::before,
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #856A5D, #EEDEC5);
}

.exp-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.exp-title {
  font-size: 16px;
  font-weight: 700;
  color: #eedec5;
  margin-bottom: 4px;
}

.exp-duration {
  font-size: 13px;
  font-weight: 700;
  color: #8d5b4c;
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 13px;
  color: rgba(238, 222, 197, 0.7);
  line-height: 1.6;
}

.exp-photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
}



article h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #eedec5;
}

article p {
  color: rgba(238, 222, 197, 0.7);
  margin-bottom: 12px;
}

article a {
  display: inline-block;
  background-color: #006d77;
  color: #eedec5;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

article a:hover {
  background-color: #8d5b4c;
}

/* ── Testimonials ── */
#testimonials {
  max-width: 100%;
  padding: 80px 60px 200px;
}

#testimonials h2 {
  max-width: 900px;
  margin: 0 auto 40px;
  display: block;
  border-bottom: 3px solid #856a5d;
  display: inline-block;
  padding-bottom: 4px;
  color: #60463b;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  background: #60463b;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #856a5d;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(90, 42, 39, 0.35);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: #eedec5;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(238, 222, 197, 0.15);
  padding-top: 20px;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: #eedec5;
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 12px;
  color: #856a5d;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 48px 24px;
  background-color: #2e3138;
  color: rgba(238, 222, 197, 0.6);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.footer-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: #eedec5;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(238, 222, 197, 0.5);
  margin-bottom: 16px;
}

.footer-contacts {
  font-size: 15px;
  color: #856a5d;
  margin-bottom: 1px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-links a {
  color: #856a5d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #eedec5;
}

.footer-links span {
  color: rgba(238, 222, 197, 0.3);
}

.footer-copy {
  font-size: 12px;
  color: rgba(238, 222, 197, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 28px auto 32px;
}

.contact-row {
  display: flex;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(238, 222, 197, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  color: #eedec5;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  resize: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(238, 222, 197, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(238, 222, 197, 0.6);
}

.contact-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(238, 222, 197, 0.5);
  color: #eedec5;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.contact-btn:hover {
  background: rgba(238, 222, 197, 0.12);
  border-color: #eedec5;
}

@media (max-width: 540px) {
  .contact-row {
    flex-direction: column;
  }
}

/* ── Card ── */
.card {
  width: 100%;
  max-width: 720px;
  background: #60463b;
  border: 1px solid #8d5b4c;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* ── Card Header ── */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.card-header:hover {
  background: rgba(0, 0, 0, 0.1);
}

.card-header-left {
  flex: 1;
}

.card-description,
.section-text,
.feature-desc,
.skill-desc,
.exp-desc,
.testimonial-quote,
.testimonial-role,
.footer-links a {
  overflow-wrap: anywhere;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #eedec5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;       /* up from 12px */
  font-weight: 700;      /* up from 500 */
  padding: 5px 14px;     /* up from 3px 10px */
  border-radius: 20px;
  border: 1px solid;
}
.badge-completed {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.6);
  color: #4ade80; /* lighter green */
}

.badge-in-progress {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fcd34d; /* lighter amber */
}

.badge-planned {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.6);
  color: #cbd5e1; /* lighter slate */
}

.badge-deployed {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: #93c5fd; /* lighter blue */
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}



@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.card-description {
  font-size: 14px;
  color: rgba(238, 222, 197, 0.7);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 12px;
  font-family: "DM Mono", monospace;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #8d5b4c;
  color: #eedec5;
  padding: 3px 10px;
  border-radius: 6px;
}

.toggle-btn {
  background: none;
  border: none;
  color: #8d5b4c;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition:
    color 0.2s,
    transform 0.3s;
  flex-shrink: 0;
}

.card.open .toggle-btn {
  transform: rotate(180deg);
  color: #eedec5;
}

/* ── Card Body ── */
.card-body {
  display: none;
  border-top: 1px solid #8d5b4c;
}

.card.open .card-body {
  display: block;
}

/* ── Card Sections ── */
.section {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(141, 91, 76, 0.3);
}

.section:last-child {
  border-bottom: none;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d5b4c;
  margin-bottom: 10px;
  font-family: "DM Mono", monospace;
}

.section-text {
  font-size: 14px;
  color: rgba(238, 222, 197, 0.85);
  line-height: 1.7;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.feature-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid #8d5b4c;
  border-radius: 8px;
  padding: 14px 16px;
}

.feature-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  color: #eedec5;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: rgba(238, 222, 197, 0.6);
  line-height: 1.5;
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  font-weight: 400;
}

.stat-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid #8d5b4c;
  border-radius: 8px;
  padding: 16px;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  color: #eedec5;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: #8d5b4c;
  line-height: 1.4;
}

.outcome-text {
  font-size: 13px;
  color: rgba(238, 222, 197, 0.7);
  line-height: 1.7;
  margin-top: 14px;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  header {
    gap: 18px;
    padding: 12px 18px;
  }

  nav {
    gap: 14px;
  }

  .experience-layout {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .exp-photo {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  main {
    padding-top: 118px;
  }

  header {
    top: 12px;
    border-radius: 24px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  header h1 {
    width: 100%;
    text-align: center;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  nav a {
    font-size: 13px;
  }

  .github-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  #about {
    margin-top: 20px;
  }

  #projects,
  #skills,
  #experience,
  #testimonials {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .experience-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  main {
    padding-top: 150px;
    background-image: none;
    background-color: #faf1e5;
  }

  header {
    width: calc(100% - 20px);
    padding: 12px;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 12px;
  }

  .github-btn {
    width: 100%;
    text-align: center;
  }

  section h2 {
    font-size: 24px;
  }

  .about-card {
    border-radius: 16px;
    margin-top: -64px;
  }

  .hero-role {
    font-size: 16px;
  }

  .hero-bio {
    font-size: 15px;
  }

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

  .card-header {
    padding: 18px;
  }

  .card-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section {
    padding: 18px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card::before {
    font-size: 84px;
  }

  .footer-links {
    flex-direction: column;
    gap: 6px;
  }

  .footer-links span {
    display: none;
  }
}

@media (max-width: 380px) {
  main {
    padding-top: 170px;
    background-image: none;
    background-color: #faf1e5;
  }

  header h1 {
    font-size: 18px;
  }

  nav a {
    font-size: 11px;
  }

  .hero-greeting {
    font-size: 30px;
  }

  .card-header {
    gap: 10px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* ── Project Hover Cards ── */
#projects {
  max-width: 100%;
  padding: 80px 60px;
}

#projects > h2 {
  max-width: 900px;
  margin: 0 auto 32px;
  color: #60463b;
  border-bottom: 3px solid #856a5d;
  display: inline-block;
  padding-bottom: 4px;
}

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

.proj-card {
  position: relative;
  display: block;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.proj-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.proj-card:hover .proj-bg {
  transform: scale(1.05);
}

.proj-bg--1 {
  background-image: url("Nakachi.ico");
  background-size: cover;
  background-position: center;
}
.proj-bg--2 { 
  background-image: url("PersonalPortfolio.png");
  background-size: cover;
  background-position: center;
 }

 .proj-bg--3 { 
  background-image: url("JourniBitesIcon.png");
  background-size: cover;
  background-position: center;
 }

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease;
  z-index: 1;
}

.proj-card:hover .proj-overlay {
  background: rgba(0, 0, 0, 0.72);
}

.proj-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.proj-meta {
  display: flex;
  align-items: flex-start;
}

.proj-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: #eedec5;
  line-height: 1.2;
}

.proj-desc {
  font-size: 13px;
  color: rgba(238, 222, 197, 0.75);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.proj-card:hover .proj-desc {
  opacity: 1;
  transform: translateY(0);
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.proj-card:hover .proj-tags {
  opacity: 1;
  transform: translateY(0);
}

.proj-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(238, 222, 197, 0.5);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
}

.proj-card:hover .proj-cta {
  opacity: 1;
  transform: translateY(0);
  color: #eedec5;
}

.view-all-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #60463b;
  text-decoration: none;
  border-bottom: 2px solid rgba(96, 70, 59, 0.3);
  padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}

.view-all-btn:hover {
  color: #2e2016;
  border-color: #60463b;
}

@media (max-width: 600px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
  .proj-card {
    height: 260px;
  }
}