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

html {
  scroll-behavior: smooth;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 35px 12%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: white;
  font-weight: 600;
  transition: 0.3s ease;
}

.logo:hover {
  color: burlywood;
  text-shadow: 0 0 25px burlywood,
    0 0 50px burlywood;
  transform: scale(1.1);
}

span {
  color: burlywood;
}

.navbar a {
  font-size: 18px;
  color: white;
  font-weight: 500;
  margin: 0 20px;
  /* border-bottom: 3px solid burlywood; */
  transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: burlywood;
  border-bottom: 3px solid burlywood;
}

.contact {
  padding: 10px 28px;
  background: white;
  color: black;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact:hover {
  background: burlywood;
  box-shadow: 0 0 25px burlywood;
  color: white;
}

.home {
  width: 100%;
  min-height: 100vh;
  background: rgb(241, 241, 241);
  display: flex;
  align-items: center;
  gap: 7em;
  padding: 30px 12% 0;
}

.home-content {
  max-width: 800px;
}

.home-content h3 {
  font-size: 42px;
}

.home-content h1 {
  font-size: 62px;
  line-height: 1.2;
}

.home-content p {
  font-size: 18px;
  margin: 25px 0 30px;
}

.btn-box {
  width: 345px;
  display: flex;
  gap: 2em;
}

.btn-1 {
  padding: 15px 28px;
  background-color: black;
  color: white;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-1:hover {
  background-color: white;
  color: black;
  border: 2px solid black;
}

.btn-2 {
  padding: 15px 28px;
  background-color: burlywood;
  color: white;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-2:hover {
  background-color: white;
  color: burlywood;
  border: 2px solid burlywood;
}

.img-box img {
  border-radius: 50%;
  width: 550px;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background: burlywood;
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.6);
  width: 50px;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12% 8%;
  gap: 10em;
  background: black;
}

.about-img img {
  position: relative;
  width: 550px;
  box-shadow: 0 0 25px burlywood,
    0 0 50px burlywood;
  border-radius: 50%;
}

.about-content h2 {
  text-align: left;
  color: white;
  font-size: 42px;
}

.about-content h3 {
  text-align: left;
  color: white;
  font-size: 42px;
}

.about-content p {
  color: white;
  font-size: 20px;
  margin: 2em 0 3em;
}

.contact-form {
  scroll-margin-top: 120px;
}

.contact-form h2 {
  text-align: center;
  margin-top: 3em;
  margin-bottom: 1em;
  font-size: 36px;
}

.contact-form form {
  max-width: 50em;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3em;
}

.contact-form form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-form form .input-box input,
.contact-form form textarea {
  width: 100%;
  padding: 1.5em;
  font-size: 18px;
  color: black;
  background: rgb(241, 241, 241);
  border-radius: .8rem;
  margin: 1rem 0;
  resize: none;
}

.contact-form form textarea {
  resize: none;
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  text-align: center;
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: white;
}

.footer .social a {
  font-size: 24px;
  color: white;
  border: 2px solid burlywood;
  width: 40px;
  height: 40px;
  line-height: 38px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 8px;
  box-shadow: 0 0 10px burlywood, 0 0 10px burlywood;
  transition: 0.3s ease;
}

.footer .social a:hover {
  transform: scale(1.2)translateY(-10px);
  color: burlywood;
  border: 2px solid burlywood;
}

.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li a {
  color: white;
  border-bottom: 3px solid burlywood;
  transition: 0.3s ease;
}

.footer ul li a:hover {
  color: burlywood;
  border-bottom: 3px solid burlywood;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer .copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  color: white;
}

.footer .copyright a {
  color: white;
  border-bottom: 3px solid burlywood;
  transition: 0.3s ease;
}

.gallery-container {
  padding: 120px 12% 60px;
  background: rgb(241, 241, 241);
  min-height: 100vh;
}

.gallery-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  margin-top: 50px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
}

.gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 2px solid burlywood;
}

.gallery-item-info {
  padding: 20px;
  text-align: center;
}

.gallery-item-info h3 {
  color: black;
  font-size: 24px;
  margin-bottom: 10px;
}

.gallery-item-info p {
  color: #666;
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .gallery-item img {
    height: 250px;
  }
}

/* Modal/Lightbox styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: burlywood;
}

/* Animated text styles */
.animated-text {
  display: inline-block;
  position: relative;
  min-width: 420px;
  height: 100px;
  overflow: hidden;
  vertical-align: top;
  animation: resetAnimation 8s infinite;
}

.animated-text span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  text-align: left;
  white-space: nowrap;
}

/* Adjust timing for each word */
.animated-text span:nth-child(1) {
  animation: slideIn 8s infinite;
}

.animated-text span:nth-child(2) {
  animation: slideIn 8s infinite;
  animation-delay: 2s;
}

.animated-text span:nth-child(3) {
  animation: slideIn 8s infinite;
  animation-delay: 4s;
}

.animated-text span:nth-child(4) {
  animation: slideIn 8s infinite;
  animation-delay: 6s;
}

@keyframes slideIn {

  0%,
  100% {
    opacity: 0;
    transform: translateY(20px);
  }

  3%,
  22% {
    opacity: 1;
    transform: translateY(0);
  }

  25%,
  97% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes resetAnimation {

  0%,
  100% {
    opacity: 1;
  }
}

.navbar a i,
.btn-2 i {
  margin-right: 5px;
  font-size: 1.1em;
  vertical-align: middle;
}

.github-section {
  padding: 120px 12% 60px;
  background: rgb(241, 241, 241);
}

.github-section .heading {
  text-align: center;
  margin-bottom: 50px;
  font-size: 42px;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
}

.repo-tech {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.repo-tech span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(222, 184, 135, 0.1);
  color: burlywood;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
}

.repo-tech i {
  font-size: 16px;
}

.repo-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.repo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(222, 184, 135, 0.2);
}

.repo-card h3 {
  color: black;
  font-size: 24px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-card h3 i {
  color: burlywood;
}

.repo-card p {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.repo-link {
  display: inline-block;
  padding: 10px 20px;
  background: burlywood;
  color: white;
  border-radius: 8px;
  transition: 0.3s ease;
  text-align: center;
  font-weight: 500;
}

.repo-link:hover {
  background: white;
  color: burlywood;
  box-shadow: 0 0 10px burlywood;
}

.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading i {
  font-size: 24px;
  color: burlywood;
}

.error {
  text-align: center;
  padding: 40px;
  color: #ff4444;
  font-size: 18px;
}

/* Music Projects Styles */
.music-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
}

.music-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.music-card:hover {
  box-shadow: 0 8px 20px rgba(222, 184, 135, 0.2);
}

.music-info {
  padding: 20px 20px 10px;
}

.music-info h3 {
  color: black;
  font-size: 24px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-info h3 i {
  color: burlywood;
}

.music-info p {
  color: #666;
  font-size: 16px;
  margin-bottom: 15px;
}

.audio-player {
  padding: 0 20px 20px;
}

.audio-player audio {
  width: 100%;
  height: 40px;
  margin-bottom: 10px;
}

/* Custom audio player styling */
.audio-player audio::-webkit-media-controls-panel {
  background-color: #f5f5f5;
}

.audio-player audio::-webkit-media-controls-play-button {
  background-color: burlywood;
  border-radius: 50%;
}

.audio-player audio::-webkit-media-controls-timeline {
  background-color: rgba(222, 184, 135, 0.2);
  border-radius: 10px;
  height: 4px;
}

.audio-player audio::-webkit-media-controls-current-time-display,
.audio-player audio::-webkit-media-controls-time-remaining-display {
  color: #666;
}

.track-details {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 14px;
}

.track-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.track-details i {
  color: burlywood;
}

/* Responsive adjustments for music grid */
@media (max-width: 768px) {
  .music-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .music-intro {
    padding: 0 20px;
    font-size: 16px;
  }
}

/* Responsive Design for Mobile Devices */
@media (max-width: 991px) {
  .header {
    padding: 20px 4%;
  }

  .navbar a {
    margin: 0 15px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 3%;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 15px 3%;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(222, 184, 135, 0.2);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    margin: 15px 0;
    text-align: center;
    font-size: 18px;
  }

  .contact {
    display: none;
  }

  /* Home section adjustments */
  .home {
    padding: 100px 4% 0;
    flex-direction: column;
    gap: 3em;
  }

  .home-content {
    text-align: center;
  }

  .home-content h3 {
    font-size: 32px;
  }

  .home-content h1 {
    font-size: 42px;
  }

  .home-content p {
    font-size: 16px;
    margin: 15px 0 20px;
  }

  .btn-box {
    width: 100%;
    justify-content: center;
  }

  /* About section adjustments */
  .about {
    flex-direction: column;
    padding: 100px 4%;
    gap: 5em;
    text-align: center;
  }

  .about-img img {
    width: 100%;
    max-width: 400px;
  }

  .about-content h2,
  .about-content h3 {
    font-size: 32px;
    text-align: center;
  }

  .about-content p {
    font-size: 16px;
    margin: 1.5em 0 2em;
  }

  /* Contact form adjustments */
  .contact-form {
    padding: 0 4%;
  }

  .contact-form h2 {
    font-size: 32px;
    margin-top: 2em;
  }

  .contact-form form .input-box {
    flex-direction: column;
  }

  .contact-form form .input-box input,
  .contact-form form textarea {
    font-size: 16px;
    padding: 1.2em;
  }

  /* Gallery adjustments */
  .gallery-container {
    padding: 100px 4% 40px;
  }

  .gallery-title {
    font-size: 32px;
    margin: 30px 0;
  }

  /* Music section adjustments */
  .music-intro {
    padding: 0 20px;
    font-size: 16px;
  }

  .music-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .music-card {
    margin: 0 10px;
  }

  /* GitHub section adjustments */
  .repos-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .repo-card {
    margin: 0 10px;
  }

  /* Animated text adjustments */
  .animated-text {
    min-width: 280px;
    height: 80px;
  }

  /* Footer adjustments */
  .footer {
    padding: 30px 4%;
  }

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

@media (max-width: 450px) {
  .home-content h3 {
    font-size: 28px;
  }

  .home-content h1 {
    font-size: 36px;
  }

  .btn-box {
    flex-direction: column;
    gap: 1em;
  }

  .btn-1,
  .btn-2 {
    width: 100%;
  }

  .animated-text {
    min-width: 240px;
    height: 60px;
  }

  .gallery-item img {
    height: 200px;
  }
}

/* Add hamburger menu styles */
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

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

/* Form status styles */
.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.form-status.success {
  background-color: rgba(75, 181, 67, 0.1);
  color: #4BB543;
  border: 1px solid #4BB543;
}

.form-status.error {
  background-color: rgba(255, 68, 68, 0.1);
  color: #FF4444;
  border: 1px solid #FF4444;
}

.models-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}