/* ===========
   GENERAL BODY
   =========== */
body {
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  background-color: #ffffff;
  color: #111;
}

/* ===========
   HEADER STYLING
   =========== */
header {
  background-color: #380bbf;
  color: white;
  padding: 30px 40px;
  position: relative;
  border-bottom: 2px solid white;
  min-height: 50px; /* NEW LINE */
}


.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(6px 6px 10px rgba(0,0,0,0.8));
}

@media (min-width: 769px) {
  header {
    padding: 20px 40px;
    position: relative;
    display: block;
  }

@media (min-width: 769px) {
  header {
    display: flex;
    justify-content: center;
    align-items: center; /* ← THIS is the key line */
    padding: 20px 40px;
    min-height: 50px;
    position: relative;
  }

  .nav-wrapper {
    display: flex;
    justify-content: center;
  }

  nav {
    display: flex;
    gap: 14px;
  }
}

  .logo {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }

  .nav-wrapper {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    position: relative;
    transform: none;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo img {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .nav-wrapper {
    width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  nav a {
    width: 80%;
    max-width: 280px;
  }
}

.nav-wrapper {
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  background-color: #f0b400;
  color: white;
  padding: 4px 14px;
  text-decoration: none;
  will-change: transform;
  margin: 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 2px solid white;
  min-width: 90px;
  font-family: 'Satoshi', sans-serif;
  text-align: center;
  display: inline-block;
  transition: transform 0.35s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow: hidden;
}

nav a:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(120deg, #f0b400 0%, #ffe066 50%, #f0b400 100%);
  background-size: 200% 100%;
  background-position: left;
  animation: shimmer 0.8s linear forwards;
}


/* ===========
   HERO SECTION
   =========== */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #380bbf;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  margin: 20px auto;
  display: block;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1rem;
  font-style: normal;
  font-weight: normal;
  color: white;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 14px;
  min-width: 90px;
  background-color: #f0b400;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  will-change: transform;
  font-family: 'Satoshi', sans-serif;
  border: 2px solid white;
  text-align: center; 
  position: center;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cta-button:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(120deg, #f0b400 0%, #ffe066 50%, #f0b400 100%);
  background-size: 200% 100%;
  background-position: left;
  animation: shimmer 0.8s linear forwards;
}

/* ===========
   SECTION STYLING
   =========== */
section {
  padding: 60px 20px;
  background-color: #380bbf;
  color: white;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 10px rgba(240, 180, 0, 0.25);
  text-align: center;
  border: 2px solid white;
  font-family: Futura Md BT;
}

section h2 {
  text-align: center;
}

h2 i {
  color: #FFFF00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  margin-right: 10px;
  font-size: 0.85em;
  position: relative;
  top: -1.5px; /* shift upward */
}

/* ==== SKILLS SECTION REBUILD ==== */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 10px 20px;;
  max-width: 1000px;
  margin: 0 auto;
}


.skill-group {
  padding: 10px 10px 20px;
  padding-top: 10px;
  margin-bottom: 8px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.skill-group-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 10px; /* reduce vertical spacing */
}



.skill-main {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 14px;
  text-align: center;

  /* FIXED icon placement */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}


.skill-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-sublist li {
  background-color: #f0b400;
  color: white;
  padding: 12px;
  border-radius: 6px;
  border: 2px solid white;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3), 0 0 6px rgba(240, 180, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-sublist li i {
  margin-right: 10px;
  color: #FFFF00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.skill-sublist li:hover {
  transform: scale(1.05);
  background-color: #c48d00;
}

.skill-main i {
  color: #FFFF00;
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.pbrcim-showcase {
  padding: 60px 20px;
  background-color: #380bbf;
  color: white;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(247, 243, 10, 0.35);
  text-align: center;
  border: 2px solid white;
  font-family: 'Futura Md BT', sans-serif;
}

@media (max-width: 480px) {
  .pbrcim-showcase .btn {
    width: 100%;
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    margin-top: 16px;
  }
}
.button-main {
  position: relative;
  padding: 4px 14px;
  min-width: 130px;

  background: #f0b400;
  color: white;
  border: 2px solid white;
  border-radius: 4px;

  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;

  cursor: pointer;
  overflow: hidden;

  /* Text stability */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.button-main::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    #f0b400 0%,
    #ffe066 50%,
    #f0b400 100%
  );
  background-size: 200% 100%;
  background-position: left;

  z-index: -1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-main:hover::before {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  animation: shimmer 0.8s linear forwards;
}

@keyframes shimmer {
  100% {
    background-position: right;
  }
}



/* ===========
   PROJECT CARDS
   =========== */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-card {
  background-color: #f0b400;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 10px rgba(240, 180, 0, 0.25);
  width: 200px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  background-color: #c48d00;
}
/* ===========
   RSS FEED MODULE - TRENDS SECTION
   =========== */

#rss-feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 24px 48px;
  background: none;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 60px; /* Adds space before next section */
}

.trend-card {
  background-color: #f0b400;
  color: white;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px; /* Ensures uniform height */
}

.trend-card:hover {
  background-color: #e4a800; /* Slight shade change instead of motion */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.trend-card a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.trend-card a:hover {
  text-decoration: underline;
  color: white;
}

.trend-card p {
  margin: 0;
  color: white;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===========
   FOOTER + SEPARATION FIX
   =========== */
.footer {
  padding: 30px 20px;
  background-color: #380bbf;
  color: #ffffff;
  font-size: 14px;
  border-top: 2px solid white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Email and copyright styling */
.footer-email,
.footer-copy {
  margin: 5px 0;
  color: #ffffff;
}

.footer-email a {
  color: #ffffff;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-email a i {
  color: #f7f30a;
  text-shadow: 1px 1px 2px black;
}


/* 📱 Desktop layout switch */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .footer-email,
  .footer-copy {
    margin: 0;
  }
}

/* ===========
   ANIMATIONS
   =========== */
@keyframes shimmer {
  100% {
    background-position: right;
  }
}

@keyframes shimmer-move {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* ===========
   RESPONSIVE RULES
   =========== */
@media (max-width: 768px) {
  header {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    position: relative !important;
    transform: none !important;
    margin: 0 auto 15px auto !important;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo img {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .nav-wrapper {
    width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  nav a {
    width: 80%;
    max-width: 280px;
  }


  section {
    padding: 40px 20px;
    margin: 20px 10px;
  }

  .skill-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 15px;
  }

  .project-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
    max-width: 320px;
  }

  .profile-pic {
    width: 150px;
    height: 150px;
  }

  .cta-button,
  nav a {
    font-size: 0.9rem;
    padding: 4px 12px;
  }
}

/* ======================
   MODAL STYLING UPDATE
   ====================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #380bbf;
}

.modal-content {
  margin: 5% auto;
  padding: 0;
  max-width: 20cm;
  box-shadow: 0 0 20px black;
  background-color: transparent;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.modal-description-container {
  background-color: #380bbf;
  border: 2px solid white;
  border-radius: 12px;
  margin-top: 20px;
  padding: 20px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.5;
}

.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Animation */
@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.project-button {
  background-color: #f0b400;
  color: white;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid white;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  margin: 10px auto;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Satoshi', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-button:hover {
  transform: scale(1.05);
  background-image: linear-gradient(120deg, #f0b400 0%, #ffe066 50%, #f0b400 100%);
  background-size: 200% 100%;
  animation: shimmer 0.8s linear forwards;
}

/* ========== PROJECT GRID STYLING ========== */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.project-item {
  background-color: #f0b400;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 180px;
}

.project-item:hover {
  background-color: #d69e00;
  transform: translateY(-3px);
}

/* ========== MODAL SYSTEM ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #2d1e14; /* Rich brown */
  margin: 3% auto;
  padding: 20px 30px;
  border-radius: 14px;
  width: 90vw;               /* Responsive width */
  max-width: 1200px;         /* ≈26.5cm */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  color: white;
  text-align: left;
}

.modal-content img {
  width: 100%;
  max-height: 90vh;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.modal-img {
  width: 200% !important;
  height: auto !important;
  max-height: 85vh !important;
  object-fit: contain !important;
  display: block;
  margin-bottom: 20px;
  border-radius: 12px;
}

#modalDesc {
  color: white;
  font-size: 1rem;
  margin-top: 10px;
  text-align: left;
  line-height: 1.6;
}

.close {
  color: #aaa;
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* ======= FREE UTILITY APPS SECTION ======= */
.utility-section {
  background-color: #380bbf;
  padding: 60px 20px;
  text-align: center;
  
}

.section-title {
  color: white;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.6rem; /* Adjusted to match other sections */
  margin-bottom: 10px;
}

.section-description {
  color: white;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
  letter-spacing: 0.3px;
  max-width: 800px;
  margin: 0 auto 30px;
  
}

/* Use existing project-button styling — just ensure no underline */
.project-button {
  background-color: #f0b400;
  color: white;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600; /* Ensures bold text */
  text-decoration: none; /* Removes underline */
  border: 2px solid white;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  margin: 10px auto;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Satoshi', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-button:hover {
  transform: scale(1.05);
  background-image: linear-gradient(120deg, #f0b400 0%, #ffe066 50%, #f0b400 100%);
  background-size: 200% 100%;
  animation: shimmer 0.8s linear forwards;
}

@keyframes shimmer {
  100% {
    background-position: -200% 0;
  }
}

.utility-section {
  background-color: #380bbf;
  padding: 60px 20px;
  text-align: center;
}

.utility-section .section-title {
  color: white;
  font-family: 'Satoshi', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

.utility-section .section-description {
  color: white;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: justify;
  line-height: 1.7;
  font-family: Futura Md BT;
}

@media screen and (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-pic {
    width: 150px;
  }

  nav a,
  .sample-projects button {
    display: block;
    margin-bottom: 10px; /* Adds spacing between stacked items */
  }
}

/* --- HEADER FIX --- */
header {
  padding: 10px 40px;
}

.logo img {
  height: 70px;
}

 header .logo {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  header .logo img,
  header .logo span {
    display: block;
    margin: 0 auto;
  }
  
  .project-button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

nav ul li {
  width: 100%;
  text-align: center;
}


/* --- SKILLS CENTERING FIX --- */
.skill-list {
  justify-content: center;
}

/* --- PROJECT BUTTON SPACING --- */
.project-card button,
.project-card a {
  margin: 6px 4px;
  display: inline-block;
}

/* --- NAV BUTTON CLEANUP (optional but optimal) --- */
nav a {
  margin: 0; /* let gap handle spacing */
}




/* General section spacing */
.section {
  padding: 60px 20px;
}

/* Grid for trends */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Each trend item */
.trend-item {
  background: #f0b400; /* Changed from #f9f9f9 */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.trend-item:hover {
  transform: translateY(-5px);
}

/* Headings and links */
.trend-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.trend-item p {
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.trend-item a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.trend-item a:hover {
  text-decoration: underline;
}
.contact-btn {
  background-color: #f0b400;
  border: 2px solid white;
  border-radius: 8px;
  padding: 8px 16px;
  will-change: transform;
  font-size: 16px;
  font-weight: bold;
  color: white;
  width: 20%;
  min-width: 120px;
  max-width: 200px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  background-image: linear-gradient(120deg, #f0b400 0%, #ffe066 50%, #f0b400 100%);
  background-size: 200% 100%;
  background-position: left;
  animation: shimmer 1s linear forwards;
}

@keyframes shimmer {
  100% {
    background-position: right;
  }
}

.contact-flex-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .skill-grid {
    grid-template-columns: 1fr; /* stack the 2-column layout into one */
    padding: 0 12px;
    box-sizing: border-box;
  }

  .skill-group-wrapper {
    grid-template-columns: 1fr; /* stack subgroups vertically */
  }

  .skill-sublist li {
    font-size: 0.95rem;
    padding: 10px;
  }

  body {
    overflow-x: hidden;
  }
}
@media (max-width: 768px) {
  .skill-sublist li {
    justify-content: flex-start;      /* Align icon + text to the left */
    text-align: left;                 /* Prevent center text misalignment */
    padding-left: 14px;               /* Add internal left padding */
  }

  .skill-sublist li i {
    margin-right: 8px;                /* Keep icons tight to text */
    min-width: 20px;                  /* Prevent icons from shifting on wrap */
    text-align: center;               /* Visually centers the icon itself */
  }
}
@media (max-width: 768px) {
  .skill-main {
    display: flex !important;         /* Force consistent layout on mobile */
    align-items: center !important;
    justify-content: flex-start !important;  /* Align icon + text to the left */
    gap: 10px !important;             /* Maintain visual spacing */
    text-align: left !important;
  }

  .skill-main i {
    min-width: 20px;
    margin-right: 4px;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .skill-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .skill-main {
    justify-content: center !important;
    text-align: center !important;
  }

  .skill-main span {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
  }
}

/* ===== Mobile Menu Styling ===== */
.header-top {
  display: flex;
  justify-content: center;  /* ✅ center logo + menu as one group */
  align-items: center;
  width: 100%;
  gap: 12px; /* small spacing between logo & menu button */
}

.menu-toggle {
  display: none;
  font-size: 1rem;
  font-weight: bold;
  background: none;
  border: 2px solid white;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* 📱 Mobile view */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrapper {
    display: none;
    width: 100%;
    background-color: #380bbf;
    text-align: center;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
  }

  .nav-wrapper.active {
    display: block;
    max-height: 500px; /* enough to fit all links */
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
  }

  nav a {
    display: block;
    width: 80%;
    max-width: 280px;
    padding: 8px 17px; /* ✅ wider button feel */
    font-size: 1rem;
    background-color: #f0b400;
    border: 2px solid white;
    border-radius: 6px;
    transition: transform 0.3s ease;
  }

  nav a:hover {
    transform: scale(1.05);
  }
}

@media (min-width: 769px) {
  header {
    display: flex;
    flex-direction: column; /* ✅ keep logo row and nav wrapper stacked */
    align-items: center;
  }


  .nav-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* ✅ keep all links in one row */
    gap: 14px;
  }
}

/* -------------------------------
   Strong mobile header override
   Paste this at the BOTTOM of style.css
   ------------------------------- */
@media (max-width: 768px) {
  /* make header a centered column */
  header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
  }

  /* Group logo + MENU tightly and center them */
  .header-top {
    display: inline-flex !important;          /* inline-flex helps center within header */
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;                     /* small spacing between logo & MENU */
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* Neutralize any absolute/offset rules that were moving the logo */
  .header-top .logo,
  .header-top .logo img {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  /* Force MENU button to sit next to the logo (no auto margins / floats) */
  .menu-toggle {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
    border: 2px solid white !important;
    background: none !important;
    cursor: pointer !important;
    align-self: center !important;
  }

  /* Just in case some rule adds a push to the right */
  .menu-toggle { margin-left: 0 !important; margin-right: 0 !important; }

  /* Nav wrapper sits below the header-top and remains centered */
  .nav-wrapper {
    width: 100% !important;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    background-color: #b06500; /* same header bg */
    box-sizing: border-box !important;
  }

  .nav-wrapper.active {
    display: block;
    max-height: 600px; /* enough height for links */
  }

  /* ensure nav links remain stacked and centered in mobile */
  nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 0 !important;
  }

  nav a {
    width: 84% !important;
    max-width: 320px !important;
    padding: 8px 17px !important;
    box-sizing: border-box !important;
  }
}
/* ===============================
   LOGO SIZE OVERRIDES (ONLY)
   =============================== */

/* Desktop logo size adjustment */
.logo img {
  height: 40px !important;   /* smaller than current 90px */
  width: auto !important;
  object-fit: contain;
}

/* Mobile logo size adjustment */
@media (max-width: 768px) {
  .logo img {
    height: 40px !important;  /* smaller than current 70px */
    width: auto !important;
  }
}

/* ===== Brand enhancement (safe add-on) ===== */

.logo.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: "Copperplate Gothic Bold", "Copperplate Gothic", serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit; /* inherits existing header color */
  white-space: nowrap;
}

@media (max-width: 768px) {
  .logo.brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 1.4rem;
  }
}
