/* ========== Universal Styles ========== */
* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: #fff;
}

/* Tooltip for skills popup */
.skills-tooltip {
  position: absolute;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0a0a0a;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.skills-tooltip.hidden {
  display: none;
}

/* ========== Header Section ========== */
#header {
  width: 100%;
  height: 100vh;
  background-image: url(images/img_landscape.jpg);
  background-size: cover;
  background-position: center;

}

.container {
  padding: 10px 10%;
}

/* ========== Navigation ========== */
nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  width: 140px;
}

.menu-toggle,
.menu-cancel {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 102;
}

.menu-cancel {
  position: absolute;
  right: 20px;
  top: 20px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ========== Header Text ========== */
.header-text {
  margin-top: 0;
  padding-top: 60px;
  font-size: 30px;
}

.header-text h1 {
  font-size: 60px;
  margin-top: 20px;
}

.header-text span {
  color: #ff004f;
}

/* ========== About Section ========== */
#about {
  padding: 80px 0;
  color: #ababab;
}

.about-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(255, 0, 79, 0.3);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

.about-intro {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ddd;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-2 {
  flex-basis: 60%;
}

.sub-title {
  font-size: 60px;
  font-weight: 600;
  color: #fff;
}

.tab-titles {
  display: flex;
  justify-content: start;
  gap: 30px;
  margin: 20px 0 40px;
  flex-wrap: wrap;
}

.tab-links {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-bottom: 5px;
  color: #ccc;
  transition: color 0.3s ease;
}

.tab-links.active-link {
  color: #ff004f;
}

.tab-links::after {
  content: '';
  width: 0%;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.4s ease;
}

.tab-links.active-link::after {
  width: 100%;
}

.tab-contents {
  display: none;
  animation: fadeIn 0.6s ease;
}

.tab-contents.active-tab {
  display: block;
}

.tab-contents ul {
  padding-left: 20px;
}

.tab-contents ul li {
  margin-bottom: 15px;
  color: #ccc;
  font-size: 15px;
}

.tab-contents ul li span {
  color: #ff004f;
  font-weight: bold;
  font-size: 16px;
}

/* See more arrow under About -> Skills */
.see-more-skill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ff004f;
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.see-more-skill:hover {
  background: #ff004f;
  transform: translateY(-1px);
}

/* ========== Services Section ========== */
#services {
  padding: 30px 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.services-list div {
  background: #262626;
  padding: 40px;
  font-size: 13px;
  font-weight: 300;
  border-radius: 10px;
  transition: background 0.5s, transform 0.5s;
}

.services-list div i {
  font-size: 50px;
  margin-bottom: 30px;
}

.services-list div h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
}

.services-list div a {
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}

.services-list div {
  transition: background 220ms ease, transform 220ms ease, color 220ms ease, border-color 220ms ease;
}

.services-list div i,
.services-list div h2,
.services-list div p,
.services-list div a {
  transition: color 220ms ease, opacity 220ms ease;
}

/* Ensure smooth readable color on hover */
.services-list div:hover {
  background: rgba(255, 0, 79, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid #ff004f;
  transform: translateY(-10px);
}

.services-list div:hover i,
.services-list div:hover h2,
.services-list div:hover p,
.services-list div:hover a {
  color: #ffffff;
}

.services-list div a {
  color: #fff;
  opacity: 0.85;
}

.services-list div:hover a {
  opacity: 1;
}

/* ===== Services interactions ===== */
.services-list div {
  cursor: pointer;
}

/* ===== Skills Bottom Sheet Popup ===== */
.skills-popup.hidden {
  display: none;
}

.skills-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.skills-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 200ms ease;
}

.skills-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.skills-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-close {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 16px;
  padding: 16px;
}

/* Skill item: icon + percentage meter */
.skills-grid .skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.skills-grid .skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 200ms ease;
  will-change: transform;
}

.skills-grid .skill-icon i {
  font-size: 36px;
}

.skills-grid .skill-icon:hover,
.skills-grid .skill-icon:focus-visible,
.skills-grid .skill-item:hover .skill-icon,
.skills-grid .skill-item:focus-within .skill-icon {
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.06) inset;
  outline: none;
}

.skills-grid .skill-icon:active {
  transform: translateY(-2px) scale(0.99);
}

/* Ensure GitHub logo is white for better contrast on dark tile */
.skills-grid .skill-icon i.devicon-github-original {
  color: #ffffff !important;
}

/* Ensure MongoDB icon displays properly */
.skills-grid .skill-icon i.devicon-mongodb-plain {
  color: #4db33d !important;
  /* MongoDB green color */
}

/* Ensure Postman API icon displays properly */
.skills-grid .skill-icon i.fa-plug {
  font-size: 32px !important;
  color: #ff6c37 !important;
  /* Postman orange color */
}

/* Fallback for any missing icons */
.skills-grid .skill-icon i[class*="fa-"] {
  font-size: 32px !important;
}

/* Percentage meter */
.skill-meter {
  width: 100%;
}

.skill-meter .meter-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.skill-meter .meter-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Centered percentage label overlay for better readability */
.skill-meter .meter-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

/* Level colors */
.meter-beginner {
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.meter-intermediate {
  background: linear-gradient(90deg, #99f6e4, #06b6d4);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

.meter-advanced {
  background: linear-gradient(90deg, #bbf7d0, #22c55e);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

/* Open state animations */
.skills-popup.open .skills-backdrop {
  opacity: 1;
}

.skills-popup.open .skills-sheet {
  transform: translateY(0%);
}

.skills-popup.open .skills-grid .skill-icon {
  animation: iconPop 400ms ease forwards;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(1) {
  animation-delay: 40ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(2) {
  animation-delay: 80ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(3) {
  animation-delay: 120ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(4) {
  animation-delay: 160ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(5) {
  animation-delay: 200ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(6) {
  animation-delay: 240ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(7) {
  animation-delay: 280ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(8) {
  animation-delay: 320ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(9) {
  animation-delay: 360ms;
}

.skills-popup.open .skills-grid .skill-icon:nth-child(10) {
  animation-delay: 400ms;
}

@keyframes iconPop {
  from {
    transform: translateY(12px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ========== Portfolio Section ========== */
#portfolio {
  padding: 50px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

/* Hide optional projects initially (revealed by JS) */
.hidden-project {
  display: none;
}

.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a {
  margin-top: 20px;
  color: #ff004f;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.5s;
}

.btn:hover {
  background: #ff004f;
}

/* ========== Contact Section ========== */
.contact-left {
  flex-basis: 35%;
  padding-right: 20px;
}

.contact-right {
  flex-basis: 60%;
  max-width: 100%;
}

.contact-left p {
  margin-top: 25px;
  line-height: 1.6;
  color: #ddd;
}

.contact-left p i {
  color: #ff004f;
  margin-right: 15px;
  font-size: 22px;
  vertical-align: middle;
  width: 24px;
  display: inline-block;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 26px;
  margin-right: 15px;
  margin-bottom: 10px;
  color: #ababab;
  display: inline-block;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #ff004f;
  transform: translateY(-5px);
}

.btn.btn2 {
  display: inline-block;
  background: #ff004f;
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: auto;
  min-width: 150px;
}

.btn.btn2:hover {
  background: #e60046;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 79, 0.3);
}

.contact-right form {
  width: 100%;
  max-width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 1px solid #333;
  outline: none;
  background: #262626;
  padding: 14px 16px;
  margin: 10px 0;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #ff004f;
  box-shadow: 0 0 0 2px rgba(255, 0, 79, 0.2);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

#msg {
  display: block;
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
}

#msg.show {
  opacity: 1;
  background: rgba(97, 183, 82, 0.1);
  color: #61b752;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {

  .contact-left,
  .contact-right {
    flex-basis: 100%;
    padding: 0;
  }

  .contact-right {
    margin-top: 40px;
  }

  form input,
  form textarea {
    font-size: 15px;
    padding: 12px 14px;
  }

  .btn.btn2 {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  /* Keep original social icons and CV button styles */
  .social-icons {
    margin-top: 30px;
    text-align: left;
  }

  .social-icons a {
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
  }

  .social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
  }

  .btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
  }

  .btn:hover {
    background: #ff004f;
  }

  #msg {
    margin-top: 10px;
    font-size: 14px;
  }
}

/* ========== Footer ========== */
.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #262626;
  font-weight: 300;
  margin-top: 20px;
  font-size: 14px;
}

/* ========== Responsive (Laptop / Tablet landscape) ========== */
/* Improve navbar spacing and scale header text for medium screens (laptops) */
@media only screen and (min-width: 769px) and (max-width: 1200px) {
  .container {
    padding: 10px 6%;
  }

  nav ul {
    gap: 12px;
    flex-wrap: wrap;
    /* allow items to wrap instead of overflowing */
    align-items: center;
  }

  nav ul li a {
    font-size: 16px;
  }

  .logo {
    width: 120px;
  }

  .header-text {
    padding-top: 40px;
    font-size: 22px;
  }

  .header-text h1 {
    font-size: 44px;
  }
}

@media only screen and (min-width: 993px) and (max-width: 1400px) {

  /* Slightly larger laptops */
  nav ul {
    gap: 14px;
  }

  nav ul li a {
    font-size: 17px;
  }
}

/* Ensure hamburger/menu icons are hidden on all non-mobile widths */
@media only screen and (min-width: 769px) {

  .menu-toggle,
  .menu-cancel {
    display: none !important;
  }

  /* Make the navigation sticky on tablet/desktop and add spacing so content is not hidden */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.6);
    /* semi-transparent so background image still shows */
    z-index: 999;
    padding: 10px 6%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
  }

  /* Push page content down so the fixed nav does not overlap it */
  .container {
    padding-top: 70px;
    /* adjust if your nav height changes */
  }
}

.copyright i {
  color: #ff004f;
}

/* ========== Responsive (Mobile) ========== */
@media only screen and (max-width: 768px) {
  #header {
    background-image: url(images/img_portrait.jpg);
  }

  .header-text {
    margin-top: 0;
    padding-top: 60px;
    font-size: 16px;
  }

  .header-text h1 {
    font-size: 30px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-cancel {
    display: none;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #080808;
    z-index: 999;
    padding: 10px 10%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .container {
    padding-top: 60px;
    /* Push content down so it's not hidden under the sticky navbar */
  }

  nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: #080808;
    padding-top: 80px;
    transition: right 0.4s ease-in-out;
    z-index: 100;
  }

  nav ul.show-menu {
    right: 0;
  }

  nav ul li {
    margin: 20px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 20px;
  }

  .sub-title {
    font-size: 40px;
  }

  .about-container {
    flex-direction: column;
  }

  .about-intro {
    font-size: 14px;
  }

  .tab-titles {
    flex-direction: column;
    gap: 10px;
  }

  .tab-links {
    font-size: 16px;
    margin-right: 0;
  }

  .tab-contents ul li {
    font-size: 14px;
  }

  .about-col-1,
  .about-col-2,
  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .about-col-1 {
    margin-bottom: 30px;
  }

  #msg {
    color: #61b752;
    margin-top: -40px;
    display: block;
  }

  /* ========== Portfolio Responsive (Mobile) ========== */
  .work-list {
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 30px;
    margin-top: 30px;
  }

  .work {
    border-radius: 10px;
    overflow: hidden;
  }

  .layer {
    padding: 0 30px;
    font-size: 14px;
  }

  .layer h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .layer p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .layer a {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
  }

  .btn {
    margin: 30px auto;
    padding: 14px 40px;
    font-size: 16px;
  }

  /* Show only first 3 projects on mobile initially */
  .hidden-project {
    display: none;
  }

  #see-more-btn {
    display: block;
    margin: 30px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
    font-size: 16px;
  }

  #see-more-btn:hover {
    background: #ff004f;
  }
}

/* ========== Responsive (Tablet) ========== */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .work-list {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablet */
    gap: 30px;
  }

  /* Show all projects on tablet (no need for see more) */
  .hidden-project {
    display: block;
  }

  #see-more-btn {
    display: none;
    /* Hide see more button on tablet */
  }
}

/* ========== Responsive (Desktop) ========== */
@media only screen and (min-width: 1025px) {

  /* Show all projects on desktop */
  .hidden-project {
    display: block;
  }

  #see-more-btn {
    display: none;
    /* Hide see more button on desktop */
  }
}

/* ========== Fade-in Animation ========== */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Testimonials Section ========== */
#testimonials {
  padding: 50px 0;
  color: #fff;
}

.testimonial-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #ababab;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-bottom: 8px;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #ff004f;
}

.tab-btn::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.3s;
}

.tab-btn.active::after {
  width: 100%;
}

.testimonial-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-content.active {
  display: block;
}

/* Swiper Card Styling */
.swiper {
  width: 100%;
  padding-bottom: 50px !important;
  /* Space for pagination */
}

.swiper-slide {
  height: auto !important;
  /* Allow slides to stretch */
}

.testimonial-card {
  background: #262626;
  border-radius: 12px;
  padding: 30px;
  margin: 10px;
  height: calc(100% - 20px);
  /* Adjust for margin */
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.client-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff004f;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.card-header p {
  font-size: 12px;
  color: #ababab;
}

.stars {
  color: #ffb400;
  font-size: 14px;
  margin-top: 5px;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: #ababab;
  font-style: italic;
  flex-grow: 1;
  /* Push footer down */
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background: #ababab !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: #ff004f !important;
  opacity: 1;
}

/* Review Form */
.add-review-container {
  margin-top: 40px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#student-review-form {
  margin-top: 20px;
  background: #262626;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  text-align: left;
}

#client-review-form {
  margin-top: 20px;
  background: #262626;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

#client-review-form.hidden {
  display: none;
}

.form-hint {
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
  font-style: italic;
}

#student-review-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  background: #333;
  border: 1px solid #444;
  padding: 12px;
  color: #fff;
  border-radius: 5px;
  outline: none;
}

textarea#reviewer-text {
  width: 100%;
  background: #333;
  border: 1px solid #444;
  padding: 12px;
  color: #fff;
  border-radius: 5px;
  outline: none;
  resize: vertical;
}

.trust-badge {
  text-align: center;
  margin-top: 30px;
  color: #4cd137;
  font-size: 14px;
}

/* Delete Button */
.delete-review-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
}

.delete-review-btn:hover {
  color: #dc3545;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .form-group {
    flex-direction: column;
  }
}

/* Enhanced Submit Button for Reviews */
#student-review-form button[type="submit"],
#client-review-form button[type="submit"] {
  background: #ff004f;
  border: none;
  color: #fff;
  width: fit-content;
  min-width: 150px;
  padding: 14px 40px;
  margin: 20px auto 0;
  /* Center button */
  display: block;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#student-review-form button[type="submit"]:hover,
#client-review-form button[type="submit"]:hover {
  background: #d40042;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(255, 0, 79, 0.3);
}

/* Custom Toast Notification */
.toast {
  position: fixed;
  top: 30px;
  right: 30px;
  border-radius: 12px;
  background: rgba(38, 38, 38, 0.95);
  padding: 15px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-left: 5px solid #ff004f;
  overflow: hidden;
  transform: translateX(120%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.toast.active {
  transform: translateX(0%);
}

@media only screen and (max-width: 600px) {
  .toast {
    right: 15px;
    left: 15px;
    width: auto;
    top: 15px;
    padding: 12px 20px;
  }
}

.toast-content {
  display: flex;
  align-items: center;
}

.toast-content i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-width: 35px;
  background-color: #ff004f;
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
}

.toast-content .message {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.message .text {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.message .text.text-1 {
  font-weight: 600;
  color: #fff;
}

.toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #ddd;
}

.toast .toast-progress:before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: #ff004f;
}

.toast.active .toast-progress:before {
  animation: progress 3s linear forwards;
}

@keyframes progress {
  100% {
    right: 100%;
  }
}

.toast.error {
  border-left-color: #ff3333;
}

.toast.error i {
  background-color: #ff3333;
}

.toast.success {
  border-left-color: #4cd137;
}

.toast.success i {
  background-color: #4cd137;
}

/* Custom Confirmation Modal */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.confirm-modal.active {
  opacity: 1;
  visibility: visible;
}

.confirm-content {
  background: #262626;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.confirm-modal.active .confirm-content {
  transform: scale(1);
}

.confirm-header i {
  font-size: 50px;
  color: #ffb400;
  margin-bottom: 20px;
}

.confirm-header h2 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 24px;
}

#confirm-msg {
  color: #ababab;
  margin-bottom: 30px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-cancel {
  background: #444 !important;
  color: #fff !important;
  min-width: 100px;
}

.btn-delete {
  background: #ff004f !important;
  color: #fff !important;
  min-width: 100px;
}

.btn-cancel:hover {
  background: #555 !important;
}

.btn-delete:hover {
  background: #d40042 !important;
}

.toast.hidden {
  display: none;
}