body {
  background-color: #212134;
  color: #eee; /* optional: to make text visible on dark background */
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 20px;
}

/* Admin dropdown styling */
.dropdown {
  position: relative;
}


.whatsapp-float {
  position: fixed;
  bottom: 80px; /* adjust as needed */
  right: 20px;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  z-index: 1000;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  text-decoration: none;
  color: white;
}

.dropdown .dropbtn {
  cursor: pointer;
  padding: 10px 15px;
  background-color: transparent;
  border: none;
  color: inherit;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a2d;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 1000;
  padding: 0;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content li a {
  display: block;
  padding: 10px 15px;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: normal;
  transition: background 0.2s;
}

.dropdown-content li a:hover {
  background-color: #2c2c40;
}

.dropdown:hover .dropdown-content {
  display: block;
}


.hamburger {
  display: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project-card {
  background: #212134;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  color: #f1f1f1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain; /* change from 'cover' to 'contain' */
  background-color: #1e1e30;
}

.project-image:hover {
  transform: scale(1.03);
}

.no-image {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a3a50;
  color: #aaa;
  font-style: italic;
  border-radius: 10px;
}

.project-title {
  margin-top: 1rem;
  font-weight: 700;
  color: #ff5f5f;
  text-align: center;
}

.description {
  color: #ff5f5f;
  text-align: center;
  font-size: xx-large;
}

.project-description {
  font-size: 1rem;
  margin: 0.8rem 0;
  line-height: 1.6;
  color: #ccc;
}

.project-tech {
  font-weight: 500;
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.project-links {
  margin-top: auto;
  text-align: center;
}

.project-links a {
  display: inline-block;
  padding: 0.75rem 1.5rem;     /* more vertical and horizontal space */
  margin: 0.4rem 0.6rem;        /* adjusted margin */
  border-radius: 8px;           /* slightly more rounded corners */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;           /* increase from 0.95rem */
  transition: all 0.3s ease;
}


/* Base button style */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  border: none;
  outline: none;
  background-color: #44445f;
  color: #eee;
  box-shadow: 0 4px 8px rgba(68, 68, 95, 0.3);
}

.btn:hover,
.btn:focus {
  background-color: #5a5a7a;
  box-shadow: 0 6px 12px rgba(90, 90, 122, 0.6);
  transform: translateY(-2px);
}

/* Demo button (primary) */
.btn-demo {
  background-color: #ff5f5f;
  color: white;
  box-shadow: 0 4px 10px rgba(255, 95, 95, 0.4);
}

.btn-demo:hover,
.btn-demo:focus {
  background-color: #e14a4a;
  box-shadow: 0 6px 14px rgba(225, 74, 74, 0.6);
  transform: translateY(-2px);
}

/* Source button (secondary) */
.btn-source {
  background-color: #2e2e40;
  color: #ddd;
  box-shadow: 0 4px 10px rgba(46, 46, 64, 0.4);
}

.btn-source:hover,
.btn-source:focus {
  background-color: #44445f;
  box-shadow: 0 6px 14px rgba(68, 68, 95, 0.6);
  transform: translateY(-2px);
}

.navbar {
  background-color: #1b1b2f;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navbar logo */
.navbar-logo img {
  height: 70px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.navbar-logo img:hover {
  transform: scale(1.1);
}

/* Navbar menu */
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;

  /* Allow menu to grow and center inside navbar */
  flex-grow: 1;
  justify-content: center;
}

.navbar-menu li a {
  color: #ccc;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-menu li a:hover {
  background-color: #ff5f5f;
  color: white;
  transform: translateY(-2px);
}

/* Spacer to balance logo width and keep menu centered */
.navbar-spacer {
  width: 70px; /* same width as logo height */
  height: 70px;
  /* invisible but occupies space */
}

.site-footer {
  background-color: #1b1b2f;
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 20px;
  border-top: 1px solid #2d2d44;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center footer columns horizontally */
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1 1 280px;
  text-align: center; /* Center content inside the column */
}

.footer-column h4 {
  color: #ff5f5f;
  margin-bottom: 0.75rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ff5f5f;
}

.social-icons {
  list-style: none;
  display: flex;
  justify-content: center; /* Center the icons horizontally */
  gap: 2rem;               /* More spacing between icons */
  padding: 0;
  margin: 1rem 0;
}

.social-icons li a {
  color: #ccc;
  font-size: 2rem;         /* Bigger icons */
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons li a:hover {
  color: #ff5f5f;
  transform: scale(1.2);   /* Slightly scale icons on hover */
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #ff5f5f;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-email a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-email a:hover {
  color: #ff5f5f;
  text-decoration: underline;
}

.footer-email i {
  color: #ff5f5f;
  font-size: 1rem;
}


/* ==========================================================================
   landing-carousel 
   ========================================================================== */


.landing-carousel {
  max-width: 1000px;   /* wider hero container */
  margin: 3rem auto;
  color: #eee;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 1000px;      /* wider */
  height: 450px;      /* taller for hero */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease;
  width: calc(1000px * 3); /* number_of_images * image_width */
  height: 450px;
}

.carousel-slide img {
  width: 1000px;
  height: 450px;
  flex-shrink: 0;
  object-fit: contain;   /* Changed from cover to contain */
  user-select: none;
  border-radius: 16px;
  background-color: #212134; /* optional: background to fill letterboxing */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ff5f5f;
  border: none;
  color: white;
  font-size: 2.8rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: #e14a4a;
}

.carousel-btn.left {
  left: 20px;
}

.carousel-btn.right {
  right: 20px;
}

.project-detail-container {
  max-width: 900px;
  margin: 2rem auto;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



  .modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 45px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgba(0,0,0,0.9); 
  }

  .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.3s;
  }

  .modal-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

  @keyframes zoom {
    from {transform: scale(0.5);}
    to {transform: scale(1);}
  }


  .modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ff5f5f;
  border: none;
  color: white;
  font-size: 2.8rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.modal-arrow.left { left: 20px; }
.modal-arrow.right { right: 20px; }

.modal-thumbnails {  
  text-align: center;
}

.modal-thumbnails img {
  width: 80px;
  height: auto;
  margin: 5px;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.3s, border 0.3s;
}

.modal-thumbnails img.active {
  opacity: 1;
  border-color: white;
}

.modal-more-text {
  color: #eee;
  font-size: 19px;
  padding: 10px 20px;
  text-align: left;
  line-height: 1.5;
}

.modal-more-text .toggle-more {
  display: block;
  margin-top: 10px;
  color: #6cf;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.modal-more-text .toggle-more:hover {
  text-decoration: underline;
}

 .modal-caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 25px;
  }

  .modal-buttons {
    text-align: center;
    margin-top: 10px;
  }

  .modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
  }

  .modal-thumb {
    height: 50px;
    cursor: pointer;
    border: 2px solid transparent;
  }

  .modal-thumb.active {
    border-color: #00f;
  }

  .text-modal {
    display: none;
    position: fixed;
    z-index: 50000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
  }

  .text-modal-content {
    background-color: #ff5f5f;
    color: white;
    margin: 20% auto;
    padding: 30px;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 16px;
    position: relative;
  }

  #textModalClose {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
  }

  #textModalClose:hover {
    color: #ccc;
  }

  #openTextModal.btn {
    margin-top: 15px;
    background: #555;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
  }

  #openTextModal.btn:hover {
    background: #777;
  }

  .modal-caption-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  padding: 0 20px;
  text-align: center;
}

.modal-caption {
  color: white;
  font-size: 25px;
  margin: 0;
  padding: 0;
}


form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ff5f5f;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

form h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: white;
}

form input[type="text"],
form input[type="url"],
form textarea,
form input[type="file"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

form input[type="text"],
form input[type="password"],   /* add this to target password input */
form input[type="url"],
form textarea,
form input[type="file"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;  /* increase bottom margin slightly */
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

form button {
  display: block;
  width: 100%;
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;  /* add margin on top of the button */
}



form button:hover {
  background-color: #219150;
}

form .errorlist {
  margin: -1rem 0 1rem 0;
  padding: 0.5rem;
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  border-radius: 4px;
  font-size: 0.9rem;
}


.navbar-admin-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 1rem;
}

.navbar-admin-dropdown .dropbtn {
  color: white;
  padding: 8px 12px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

/* Change color when logged in */
body.logged-in .navbar-admin-dropdown .dropbtn {
  background-color: #ff5f5f;
  color: white;
}

.navbar-admin-dropdown .dropbtn:hover {
  background-color: #ff5f5f;
}

.navbar-admin-dropdown .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ff5f5f;
  min-width: 140px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 1000;
}

.navbar-admin-dropdown .dropdown-content a {
  color: #34495e;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-weight: 600;
}

.navbar-admin-dropdown .dropdown-content a:hover {
  background-color: #ff5f5f;
  color: white;
}

.navbar-admin-dropdown:hover .dropdown-content {
  display: block;
}



.help-section {
  text-align: center;
  padding: 1rem 0;
  margin: 1rem 0;
}

.help-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #ff5f5f;
}

.sample-text {
  text-align: center;
  color: #ff5f5f;
}

.help-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.help-box {
  background: #ff5f5f;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;

  display: flex;
  flex-direction: column;
}

.help-box:hover {
  transform: translateY(-5px);
}

.help-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: white;
}

.help-box p {
  font-size: 0.95rem;
  color: white;
}

.help-box p.seo-note {
  margin-top: auto;
  font-style: italic;
  font-size: 0.9rem;
  color: white;
}

.about-section {
  text-align: center;
  padding: 1rem 0;
  margin: 1rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #ff5f5f;  /* Matches your other headings */
}

.about-section p {
  background: #ff5f5f;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.skills-section {
  text-align: center;
  padding: 1rem 0;
  margin: 1rem 0;
}

.skills-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #ff5f5f;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-item {
  background: #ff5f5f;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.skill-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.skill-item {
  perspective: 1000px;
  position: relative;
}

.skill-description {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: white;
}

.skill-item:hover .skill-description {
  display: block;
}


.skill-description.visible {
  display: block;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem;
  background: #ff5f5f;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-title {
  color: #ff5f5f;
  margin-top: 0.5rem;
}

.project-description {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.project-tech {
  font-style: italic;
  color: white;
  margin-bottom: 0.75rem;
}

.portfolio-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #ff5f5f;
    text-align: center;
}

.navbar-menu a.active {
  color: white; /* text stays white */
  background-color: #ff5f5f; /* background highlight */
  font-weight: bold;
  border-bottom: none; /* remove border-bottom if you want */
  padding: 0.25rem 0.5rem; /* add some padding so background looks nicer */
  border-radius: 4px; /* optional: round corners */
}

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

.contact-section {
  text-align: center;
  padding: 1rem 0;
  margin: 1rem 0;
}

.contact-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #ff5f5f;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background-color: #ff5f5f;
}

.form-group {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.submit-btn {
  background: #ff5f5f;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #e14e4e;
}

#form-messages p.success,
#form-messages p.error {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  cursor: default;
  max-width: 100%;
  text-align: center;
}

#form-messages p.success {
  background-color: #4CAF50; /* green */
  color: white;
}

#form-messages p.error {
  background-color: #ff5f5f; /* your red */
  color: white;
}

#form-messages p.success:hover,
#form-messages p.error:hover {
  transform: translateY(-3px);
}

.image-manager {
  max-width: 900px;
  margin: 3rem auto;
  color: #eee;
}

.image-thumb {
  display: flex;
  justify-content: center; /* horizontally center the image */
  overflow: hidden;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}


.image-thumb img {
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.carousel-upload-form {
  max-width: 400px;
  margin: 2rem auto 0;
  padding: 1rem;
  background: #ff5f5f;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.carousel-upload-form label {
  font-weight: 600;
  color: white;
  margin-bottom: 0.3rem;
  display: block;
}

.carousel-upload-form input[type="file"],
.carousel-upload-form input[type="text"] {
  width: 100%;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.manage-text {
  text-align: center;
  color: #ff5f5f;
}

.delete-buttons {
  background: none;
  border: none;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    margin: 0;
    padding: 0;
  }

  /* ✅ Navbar styles */
  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 1000;
  }

  .navbar-logo {
    max-width: 150px;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    margin-left: auto;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background-color: #1a1a2e;
    padding: 1rem;
    width: 100%;
    border-radius: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 999;
  }

  .navbar-menu.open {
    display: flex;
  }

  .navbar-spacer {
    display: none;
  }

  /* ✅ Project grid */
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  /* ✅ Carousel styles */
  .carousel-wrapper {
    width: 100vw;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    position: relative;
  }

  .carousel-slide {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .carousel-slide > * {
    flex: 0 0 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    scroll-snap-align: start;
    border-radius: 0;
    max-height: none; /* ✅ critical: remove image height limit */
  }
  

  .mobile-carousel img {
    width: 100vw;
    height: auto;
    object-fit: contain;
  }

  .carousel-slide::-webkit-scrollbar {
    display: none;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
  }

  .carousel-btn.left {
    left: 0.5rem;
  }

  .carousel-btn.right {
    right: 0.5rem;
  }

  /* ✅ Footer */
  .footer-column {
    text-align: center;
  }

  /* ✅ Modal */
  .modal-content {
    padding-top: 30%;
    max-width: 100%;
    max-height: 100vh;
  }

  .modal-arrow {
  padding: 0.25rem;
  font-size: 1rem; 
  width: 36px;     
  height: 36px;           
}

.modal-thumbnails {
    display: block; /* or grid, or none — depends on what you want */
    justify-content: unset;
    gap: 0;
    overflow-x: visible;
  }


  /* ✅ Forms */
  form {
    margin: 1rem;
    padding: 1rem;
  }

  /* ✅ Skills + Help Boxes */
  .skills-list,
  .help-boxes {
    grid-template-columns: 1fr;
  }

  /* ✅ Add spacing between sections */
  section {
    margin-bottom: 2rem;
  }

  .btn-source {
    margin-top: 2rem;
  }

  .project-detail-text {
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center !important; /* center horizontally */
    text-align: center; /* optional: center text */
  }

  .project-detail-btn {
  text-align: center;
  margin-top: 1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-group .btn {
  min-width: 140px; /* optional, to standardize button width */
}

}

/* ---------- Back‑to‑Top ---------- */
.back-to-top{
  position:fixed;bottom:20px;right:20px;
  width:48px;height:48px;line-height:48px;text-align:center;
  background:white;color:#ff5f5f;border-radius:50%;
  font-size:20px;text-decoration:none;
  box-shadow:0 2px 6px rgba(0,0,0,.3);
  opacity:0;pointer-events:none;transition:opacity .3s;
  z-index:1000;
}

/* show only on small screens */
@media(max-width:767px){
  .back-to-top.show{opacity:1;pointer-events:auto;}
}
