@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #0b0b0b; /* matte black background */
  --second-bg-color: #1a1a1a; /* slightly lighter for sections if needed */
  --main-color: #ffd300; /* bold yellow for titles, buttons, links */
  --text-color: #d3d3d3; /* light grey for general text */
  --white-color: #ffffff; /* pure white for small highlights */
  --shadow-color: #555555; /* soft grey for box shadows */
}

html {
  font-size: 62.5%;
}

body {
  color: var(--text-color);
}
section {
  background-color: var(--bg-color);
  position: relative;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  box-shadow: var(--main-color) 0 0 1rem;
}

header.active {
  animation: show-header 1.5s linear forwards;
  animation-delay: 1.2s;
}

@keyframes show-header {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.logo {
  font-size: 3rem;
  color: var(--main-color);
  font-weight: 700;
}

nav a {
  font-size: 2rem;
  color: var(--main-color);
  font-weight: 500;
  margin-left: 3.5rem;
  transition: 0.5s;
}

nav a:hover,
nav a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 4rem;
  display: none;
}

@keyframes show-content {
  100% {
    visibility: visible;
    opacity: 1;
    overflow: auto;
  }
}

.home {
  background-color: var(--bg-color);
  position: relative;
  display: flex;
  align-items: center;
  gap: 5rem;
  height: 90vh;
}

.home.active {
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.6s;
}

.home-detail {
  margin-left: 50px;
}

.home-detail h1 {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
}

.home-detail h2 {
  display: inline-block;
  font-size: 3.2rem;
  margin-top: -1rem;
}

.home-detail h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 0.07rem var(--main-color);
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-detail h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 0.2rem solid var(--main-color);
  color: var(--main-color);
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }
}

.home-detail p {
  font-size: 1.6rem;
  margin: 1rem 0 2.5rem;
}

.home-detail .btn-sci {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--bg-color);
  font-weight: 500;
  transition: 0.5s;
}

.btn:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: none;
}

.home-detail .btn-sci .sci {
  margin-left: 2rem;
}

.home-detail .btn-sci .sci a {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 0 0.8rem;
  transition: 0.5s;
}

.home-detail .btn-sci .sci a:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.home-img .img-box {
  position: relative;
  width: 26vw;
  height: 26vw;
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: "";
  position: absolute;
  width: 50rem;
  height: 50rem;
  background: conic-gradient(
    transparent,
    transparent,
    transparent,
    var(--main-color)
  );
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border-radius: 50%;
  border: 0.01rem solid var(--bg-color);
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  position: absolute;
  top: 0rem;
  display: block;
  width: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.heading span {
  color: var(--main-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}

.services-container .services-box {
  padding: 3rem 2.5rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--second-bg-color);
  border-radius: 1rem;
  transition: 0.5s;
}

.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.services-box .icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.services-box .icon i {
  font-size: 4.5rem;
  transition: 0.5s;
}

.services-box:hover .icon :not(a i) {
  color: var(--main-color);
}

.services-box .icon a {
  display: inline-flex;
  background: var(--white-color);
  border-radius: 50%;
  padding: 1rem;
  transition: 0.5s;
}

.services-box:hover .icon a {
  background: var(--main-color);
}

.services-box .icon a i {
  font-size: 3rem;
  color: var(--bg-color);
  transform: rotate(225deg);
}

.services-box .icon a:hover i {
  transform: rotate(180deg);
}

.services-box h3 {
  font-size: 3rem;
  margin: 0.5rem 0 2rem;
  transition: 0.5s;
}

.services-box:hover h3 {
  color: var(--main-color);
}

.services-box p {
  font-size: 1.6rem;
}

/* Admi styles */

.admin-section {
  padding-top: 20px;
  height: 90vh;
  width: 100%;
}

.admin-container {
  margin: 90px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
}

.admin-sidebar h2 {
  font-size: 4.5rem;
}

.admin-sidebar p {
  font-size: 1.6rem;
  margin: 2rem 0 2.5rem;
}

.admin-tab {
  width: 100%;
  height: 5.3rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--second-bg-color);
  font-size: 1.6rem;
  color: var(--white-color);
  font-weight: 500;
  margin-bottom: 2rem;
  border-radius: 0.8rem;
  cursor: pointer;
}

.admin-tab.active {
  border-color: var(--main-color);
  color: var(--main-color);
}

.admin-section-content {
  margin-top: 60px;
  display: none;
}

.admin-section-content.active {
  display: block;
}

.admin-heading {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  height: 45rem;
  overflow: auto;
}

.event-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  height: 45rem;
  overflow: auto;
}
.admin-list::-webkit-scrollbar {
  width: 0.7rem;
}
.admin-list::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 1rem;
}
.admin-list:hover::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

.event-cards-container::-webkit-scrollbar {
  width: 0.7rem;
}
.event-cards-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 1rem;
}
.event-cards-container:hover::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

.admin-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  margin-right: 30px;
}

.btn-delete,
.btn-update {
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  color: var(--white-color);
}

.btn-delete {
  background-color: crimson;
}

.btn-update {
  background-color: var(--main-color);
}

.admin-aboutme {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
@media screen and (max-width: 1024px) {
  .admin-container {
    margin: 40px;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .admin-sidebar h2 {
    font-size: 3.5rem;
  }

  .admin-sidebar p {
    font-size: 1.4rem;
  }

  .admin-tab {
    font-size: 1.4rem;
    height: 4.8rem;
  }

  .admin-heading {
    font-size: 3rem;
  }

  .admin-list {
    height: auto;
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  body {
    background-color: var(--bg-color);
  }
  .admin-container {
    margin-top: 80px;
    padding-bottom: 40px;
  }
  .admin-section {
    margin-bottom: 220px;
    min-height: 130vh;
  }

  .admin-section-content {
    margin-top: 0px;
  }

  .admin-section-content:not(.active) {
    display: none;
  }

  .admin-section-content.active {
    display: block;
  }

  .admin-sidebar h2 {
    font-size: 2.8rem;
  }

  .admin-sidebar p {
    font-size: 1.3rem;
  }

  .admin-tab {
    font-size: 1.3rem;
    height: 4.5rem;
  }

  .admin-heading {
    font-size: 2.5rem;
  }

  .admin-list {
    grid-template-columns: 1fr;
  }

  .admin-item {
    padding: 2rem 1.5rem;
  }

  .btn-delete,
  .btn-update {
    width: 100%;
    font-size: 1.3rem;
    padding: 1rem;
  }

  .admin-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .admin-aboutme {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

/* About Me specific */
.aboutme-content {
  background-color: var(--second-bg-color);
  font-size: 1.6rem;
  color: black;
  margin-top: 4rem;
  border-radius: 5px;
  box-shadow: 0 0 15px var(--shadow-color);
  padding: 10px;
}

.aboutme-content .admin-description {
  font-size: 1.6rem;
  color: black;
  margin-top: 4rem;
}
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.portfolio-detail {
  display: none;
}

.portfolio-detail.active {
  display: block;
}

.portfolio-box .numb {
  font-size: 8rem;
  -webkit-text-stroke: 0.07rem var(--white-color);
  color: transparent;
  line-height: 1;
}

.portfolio-box h3 {
  font-size: 3.5rem;
  margin: 0.8rem 0 2rem;
}

.portfolio-box p {
  font-size: 1.6rem;
}

.portfolio-box .tech {
  margin: 2rem 0;
  color: var(--main-color);
  border-bottom: 0.1rem solid var(--white-color);
  padding-bottom: 2rem;
}

.portfolio-box .live-github a {
  position: relative;
  display: inline-flex;
  padding: 1.3rem;
  font-size: 3rem;
  color: var(--white-color);
  border-radius: 50%;
  background: var(--second-bg-color);
  transition: 0.5s;
}

.portfolio-box .live-github a:hover {
  color: var(--main-color);
}

.portfolio-box .live-github a:first-child {
  margin-right: 1.5rem;
}

.portfolio-box .live-github a:first-child i {
  transform: rotate(135deg);
}

.portfolio-box .live-github a span {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  font-size: 1.6rem;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  pointer-events: none;
  background: var(--white-color);
  color: var(--bg-color);
  opacity: 0;
  transition: 0.2s;
}

.portfolio-box .live-github a:hover span {
  top: -70%;
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.portfolio-box .portfolio-carousel {
  width: 100%;
  height: 45rem;
  border-radius: 1rem;
  overflow: hidden;
}

.portfolio-carousel .img-slide {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 2rem;
  height: inherit;
  transition: 0.5s;
}

.portfolio-carousel .img-item {
  height: inherit;
}

.portfolio-carousel .img-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.portfolio-box .navigation {
  text-align: right;
  margin-top: 2rem;
}

.portfolio-box .navigation button {
  display: inline-flex;
  padding: 0.4rem;
  background: var(--second-bg-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 0.6rem;
  font-size: 4rem;
  color: var(--main-color);
  cursor: pointer;
}

.portfolio-box .navigation button.disabled {
  border-color: var(--second-bg-color);
  color: var(--disabled-color);
}

.portfolio-box .navigation .arrow-right {
  margin-left: 1.5rem;
}
.contact {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  opacity: 1;
  visibility: visible;
  padding: 5rem 2rem;
  z-index: 1;
  position: relative;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-color) 0 0 1rem;
}

.contact-container .contact-box:first-child {
  align-self: center;
}

.contact-box h2 {
  font-size: 4.5rem;
}

.contact-box p {
  font-size: 1.6rem;
}

.contact-box .desc {
  margin: 1.5rem 0 2.5rem;
}

.contact-box .contact-detail {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.contact-detail i {
  display: inline-flex;
  background: var(--second-bg-color);
  color: var(--main-color);
  font-size: 3rem;
  padding: 1.2rem;
  border-radius: 0.6rem;
  margin-right: 1.5rem;
}

.contact-detail .detail p:first-child {
  color: var(--main-color);
}

.contact-box form {
  background: var(--second-bg-color);
  padding: 2.5rem 3.5rem 3.5rem;
  border-radius: 1rem;
  text-align: center;
}

.contact-box .heading {
  font-size: 3.5rem;
}

.contact-box .field-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-box .field-box input,
.contact-box .field-box textarea {
  padding: 1.5rem;
  background: var(--bg-color);
  border: 0.15rem solid var(--bg-color);
  border-radius: 0.6rem;
  font-size: 1.6rem;
  color: var(--white-color);
}

.contact-box .field-box textarea {
  grid-column: 1 / -1;
  height: 26rem;
  resize: none;
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus {
  border-color: var(--main-color);
}

.contact-box .btn {
  margin-top: 2rem;
  cursor: pointer;
}

/* breakpoints */
@media screen and (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media screen and (max-width: 992px) {
  header {
    padding: 2rem 4%;
  }

  section {
    padding: 10rem 4% 2rem;
  }
}

@media screen and (max-width: 810px) {
  .contact-box .field-box {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    margin: 4rem 0;
  }

  .home {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 2rem;
  }

  .home-img .img-box {
    width: 35rem;
    height: 35rem;
  }

  .resume-container,
  .portfolio-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-container {
    height: 80%;
    margin-top: 36px;
    padding: 2rem;
  }

  .resume-container {
    gap: 3rem;
  }

  .portfolio-container .portfolio-box:first-child {
    order: 1;
  }

  .contact-box .field-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .home-img .img-box {
    width: 30rem;
    height: 30rem;
  }
  .home {
    height: 120vh;
    margin-top: 25px;
  }
  .contact-box .field-box {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 450px) {
  html {
    font-size: 50%;
  }
  .home {
    margin-top: 35px;
  }
}

@media screen and (max-width: 400px) {
  .home-detail,
  .resume-box h2,
  .resume-box .heading,
  .resume-box .desc,
  .resume-detail.about .resume-item {
    text-align: center;
  }

  .home-detail .btn-sci {
    flex-direction: column-reverse;
  }

  .home-detail .btn-sci .sci {
    margin-left: 0;
    margin-bottom: 12rem;
  }

  .contact-box form {
    padding: 2.5rem 3rem 3.5rem;
  }

  .contact-box h2 {
    font-size: 3.5rem;
  }
}

/* Styes for the footer */
.footer-section {
  background-color: var(--bg-color);
  color: #fff;
  padding: 60px 20px 30px;
  font-family: "Segoe UI", sans-serif;
  box-shadow: var(--main-color) 0 0 1rem;
  border-radius: 3px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--main-color);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  font-size: 17px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

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

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

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a {
  text-decoration: none;
  color: white; /* or your footer color */
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a i {
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 14px;
  border-top: 1px solid #333;
  margin-top: 30px;
  color: #858585;
}

/* :white_check_mark: Responsive Styles */
@media (max-width: 992px) {
  .footer-container {
    justify-content: space-around;
  }

  .footer-column {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    flex: 1 1 100%;
    text-align: center;
  }

  .social-icons {
    margin-left: 70px;
  }
}
.about-me-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #fff;
}

.about-me-wrapper {
  background-color: var(--section-bg-color);
  color: var(--shadow-color);
  border-radius: 1rem;
  box-shadow: 8px 15px 30px 12px var(--shadow-color);
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
  height: 420px;
}

.about-me-container {
  background-color: var(--section-bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-me-text {
  flex: 1 1 500px;
}

.about-me-text .heading {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-me-text p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-top: 30px;
}

.about-me-image {
  flex: 1 1 100px;
  text-align: center;
}

.about-me-image img {
  height: 370px;
  /* margin-top: 4px; */
  margin: 9px 9px 9px 1px;
  max-width: 300px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 0 15px var(--shadow-color);
}

@media (max-width: 768px) {
  .about-me-container {
    min-height: 90vh;
    flex-direction: column;
    text-align: center;
  }
  .about-me-wrapper {
    height: 1050px;
    margin-top: 60px;
  }

  .about-me-text {
    padding: 1rem;
  }

  .about-me-image img {
    max-width: 90%;
  }
}

/* events code  */

/* EVENTS SECTION */
/* EVENTS SECTION */
.events-section {
  height: 60vh;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 100px;
  padding-top: 125px;
}

.events-container {
  max-width: 1100px;
  margin: 0 auto;
}

.events-section .heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-description {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

/* EVENT LIST */
.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.event-card.with-image-left {
  display: flex;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: var(--second-bg-color);
  text-align: left;
  box-shadow: 3px 5px 30px 12px var(--shadow-color);
}

.event-card.with-image-left .event-image {
  flex: 0 0 40%;
}

.event-card.with-image-left .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card.with-image-left .event-info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card.with-image-left .event-name {
  font-size: 1.4rem;
  text-align: left;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.event-card.with-image-left .event-location {
  font-size: 1.4rem;
  text-align: right;
  color: var(--main-color);
  margin-top: -3rem;
}

.event-card.with-image-left .event-description {
  font-size: 1.4rem;
  color: var(--text-color);
  flex: 1;
  margin-top: 2rem;
}

/* bottom container with date + button */
.event-card.with-image-left .event-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.event-card.with-image-left .event-date {
  font-weight: bold;
  color: var(--main-color);
}

.event-card.with-image-left .book-btn {
  padding: 0.5rem 1rem;
  background-color: var(--main-color);
  color: var(--bg-color);
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.3s;
}

.event-card.with-image-left .book-btn:hover {
  background-color: var(--main-color);
}

/* Responsive: stack image on top on small screens */
@media (max-width: 768px) {
  .event-card.with-image-left {
    flex-direction: column;
  }

  .event-card.with-image-left .event-image {
    width: 100%;
    height: 200px;
  }

  .event-card.with-image-left .event-image img {
    height: 100%;
  }

  .event-card.with-image-left .event-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .event-card.with-image-left .event-name {
    text-wrap: wrap;
  }
  .event-card.with-image-left .event-location {
    text-align: left;
    margin-top: 10px;
  }
  .event-card.with-image-left .event-date {
    font-size: 10px;
  }

  .events-section {
    height: 80vh;
    margin-top: -14px;
  }
  .event-card {
    width: 90%;
    margin-left: 20px;
  }
}

/* RESPONSIVENESS: STACK IMAGE BELOW ON SMALL SCREENS */
@media (max-width: 768px) {
  .event-card.with-image {
    flex-direction: column;
  }

  .event-card.with-image .event-image {
    flex: none;
    width: 100%;
    height: 200px;
  }

  .event-card.with-image .event-image img {
    height: 100%;
  }
}
/* ===========================
   USER MUSIC PAGE STYLES
=========================== */
.music-section {
  padding: 4rem 2rem;
  text-align: center;
  height: 63vh;
  margin-top: 70px;
  background-color: var(--bg-color);
}

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

.music-section .heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-description {
  color: var(--text-color);
  margin-bottom: 2rem;
}

.music-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.music-card {
  width: 60%;
  display: flex;
  flex-direction: column;
  background: var(--second-bg-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 3px 5px 30px 12px var(--shadow-color);
  text-align: left;
}

.song-description {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 2rem;
}

.music-btn {
  width: 50px;
  padding: 0.3rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s;
}

.music-btn.youtube {
  color: var(--bg-color);
  background-color: #ff0000;
  padding: 0.2rem auto;
  width: 60px;
}

.music-btn.spotify {
  background-color: #1db954;
}

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

.music-card.with-image {
  display: flex;
  padding: 0;
  overflow: hidden;
  height: auto;
}

.music-card.with-image .music-image {
  width: 100%;
  flex: 0 0 40%;
}

.music-card.with-image .music-image img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  display: block;
}

.music-card.with-image .music-info {
  margin-top: -70px;
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.music-card.with-image .song-title {
  font-size: 1.6rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  text-align: left;
}

.music-card.with-image .song-date {
  font-size: 1.2rem;
  color: var(--main-color);
  text-align: right;
  margin-top: -4rem;
}

.music-card.with-image .song-description {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 3rem 0;
  text-align: center;
}

.music-card.with-image .ui-music-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .music-section {
    margin-top: 90px;
    padding: 2rem 1rem;
    height: auto;
    display: flex;
    justify-content: center;
  }
  .music-card {
    margin-left: 55px;
    width: 80%;
  }
  .music-list {
    justify-content: center;
  }
  .music-card.with-image {
    flex-direction: column;
  }
  .music-card.with-image .music-image {
    flex: none;
    width: 100%;
  }
  .music-card.with-image .music-info {
    padding-top: 4.5rem;
  }
  .music-card.with-image .song-title {
    margin-top: 1.5rem;
  }
  .music-card.with-image .song-date {
    margin-top: -3.5rem;
  }
}

/* ===========================
   ADMIN MUSIC PAGE STYLES
=========================== */
.admin-music-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.admin-music-card {
  width: 60%;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 2px 4px 20px 8px var(--shadow-color);
  text-align: left;
}

.admin-music-card.with-image {
  display: flex;
  padding: 0;
  overflow: hidden;
  height: auto;
}

.admin-music-card.with-image .admin-music-image {
  flex: 0 0 40%;
}

.admin-music-card.with-image .admin-music-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-music-card.with-image .admin-music-info {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-music-card.with-image .admin-song-title {
  font-size: 1.6rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.admin-music-card.with-image .admin-song-date {
  font-size: 1.2rem;
  color: var(--main-color);
  text-align: right;
  margin-top: -3rem;
}

.admin-music-card.with-image .admin-song-description {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 1rem 0;
  text-align: center;
}

.admin-music-card.with-image .admin-music-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-music-card.with-image .admin-music-buttons.youtube {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.edit-btn,
.delete-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  border: none;
  cursor: pointer;
  color: #fff;
}

.edit-btn {
  background-color: #007bff;
}

.delete-btn {
  background-color: #dc3545;
}

.edit-btn:hover,
.delete-btn:hover {
  opacity: 0.85;
}
.music-btn.admin-youtube {
  color: var(--bg-color);
  background-color: #dc3545;
  padding-top: 8px;
  width: 60px;
}

.music-btn.admin-spotify {
  color: var(--bg-color);
  background-color: #1db954;
  padding-top: 9px;
  width: 60px;
}
@media (max-width: 768px) {
  /* .admin-section-content.music-content {
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  } */

  .admin-music-card.with-image {
    width: 100%;
    margin: 1rem auto;
    flex-direction: column;
  }

  /* .admin-music-card.with-image:last-child {
    margin-bottom: 20px !important;
  }

  .admin-section-content.music-content > .admin-music-list {
    margin-bottom: 0 !important;
  } */

  .admin-music-card.with-image .admin-music-image {
    width: 100%;
    height: auto;
  }

  .admin-music-card.with-image .admin-music-info {
    padding: 1rem;
    text-align: left;
  }

  .admin-music-card.with-image .admin-song-title {
    font-size: 1.2rem;
    text-align: left;
  }

  .admin-music-card.with-image .admin-song-date {
    font-size: 0.95rem;
    margin-top: 0.3rem;
    text-align: left;
  }

  .admin-music-card.with-image .admin-song-description {
    font-size: 1rem;
    text-align: left;
  }

  .admin-music-card.with-image .admin-music-buttons {
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
  }

  .admin-music-card.with-image .admin-music-buttons button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* General Form Styling */
.admin-login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 2px;
  background-color: var(--bg-color);
}

/* General Form Styling */
.admin-login-container,
.admin-job-container,
.edit-job-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.admin-form {
  background: var(--second-bg-color);
  padding: 20px;
  width: 100%;
  max-width: 600px; /* limits width on large screens */
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow-color);
  text-align: center;
  margin: 20px auto; /* center on page */
  box-sizing: border-box; /* makes padding play nicely */
}

/* Optional: tweak for very small screens */
@media (max-width: 400px) {
  .admin-form {
    width: 90%;
    padding: 15px;
    margin-top: 0px;
  }
}

.admin-form h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--text-color);
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 16px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

textarea {
  height: 100px;
  resize: none;
}

.admin-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.admin-dropdown .dropbtn {
  background-color: var(--main-color);
  color: var(--white-color);
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.admin-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--second-bg-color);
  min-width: 150px;
  box-shadow: 0 8px 16px var(--shadow-color);
  border-radius: 5px;
  z-index: 1;
}

.admin-dropdown .dropdown-content a {
  color: var(--white-color);
  padding: 12px 16px;
  text-decoration: none;
  display: flex;

  margin: 15px auto;
  font-size: 13px;
}

.admin-dropdown .dropdown-content a:hover {
  background-color: var(--main-color);
  color: var(--black-color);
}

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

@media (max-width: 768px) {
  .admin-dropdown .dropbtn {
    background-color: var(--main-color);
    font-size: 12px;
    padding: 7px 10px;
  }
}

.newsletter-inline {
  background-color: var(--bg-color);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.newsletter-inline .popup {
  background-color: var(--bg-color);
  border-radius: 16px;
  padding: 30px 20px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 0 20px var(--main-color);
}

.newsletter-inline h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--main-color);
}

.newsletter-inline p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
}

.newsletter-inline .timer {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0 20px;
  color: var(--main-color);
}

.newsletter-inline input[type="text"],
.newsletter-inline input[type="email"] {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
}

.newsletter-inline .signup-btn {
  background-color: var(--main-color);
  color: black;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-inline .signup-btn:hover {
  background-color: var(--main-color);
}

/* .user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.user-email {
  font-size: 0.95rem;
  color: #555;
  margin: 2px 0;
}

.user-date {
  font-size: 0.85rem;
  color: #888;
}

.admin-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.btn-delete {
  background: #e63946;
  border: none;
  padding: 6px 12px;
  color: white;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-delete:hover {
  background: #d62828;
} */
.admin-item {
  height: 200px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--second-bg-color);
  border: 1px solid var(--main-color);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* User info section */
.admin-user-info h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
}

.admin-user-info p {
  margin: 0.25rem 0;
  font-size: 1.8rem;
  color: var(--muted-text-color);
}

/* Action buttons */
.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-actions button {
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-delete {
  background: #ff4d4f;
  color: #fff;
}

.btn-delete:hover {
  background: #d9363e;
}

.btn-update {
  background: #1890ff;
  color: #fff;
}

.btn-update:hover {
  background: #1475cc;
}

/* access css  */
/* Overlay */
.access-gate[hidden] {
  display: none !important;
}
.access-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

/* Card */
.gate-card {
  width: 92%;
  max-width: 380px;
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.25);
}

/* Text */
.gate-card h3 {
  margin: 0 0 8px;
  color: #ffea00;
  font-size: 20px;
}
.gate-card p {
  margin: 0 0 14px;
  color: #ccc;
  font-size: 14px;
}

/* Inputs + buttons */
.gate-card input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: none;
  border-radius: 10px;
  background: #1c1c1c;
  color: #fff;
}
.gate-card button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  background: #ffea00;
  color: #111;
}
.gate-card button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Links / helper btn */
.link-btn {
  background: transparent;
  color: #ffea00;
  margin-top: 10px;
}

/* Messages */
.gate-msg {
  margin-top: 10px;
  font-size: 13px;
  min-height: 16px;
}
.gate-msg.error {
  color: #ff6b6b;
}
.gate-msg.success {
  color: #7cff6b;
}
