:root {
  --primary-color: #23d5ab;
  --secondary-color: #2d4059;
  --background-gradient: linear-gradient(45deg, #23a6d5 0%, #23d5ab 100%);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('WarmMoon.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

video {
  border-radius: 10px;
  background-color: black;
}

/* Main Content */
.main-content {
  margin-bottom: 4rem;
}

.profile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.profile-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-card b {
  font-size: large;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-button {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.github {
  background: #333;
  color: white;
}

.linkedin {
  background: #0077b5;
  color: white;
}

/* Suntitles */
#captionDisplay {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #23d5ab;
  font-size: 1.2em;
  font-weight: 1000;
  height: 25%;
  line-height: 1.5;
  margin-top: 10%;
  overflow: hidden;
  padding: 3%;
  position: relative;
  width: 100%;
}

.animated-subtitle {
  animation: slideInRight 1s ease-out;
  display: inline-block;
  left: 50%;
  max-width: 100%;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  transition: none !important;
  white-space: pre-line;
  width: max-content;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(-150%) scaleX(1.5);
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes underline-pulse {
  0% {
    width: 0;
    opacity: 0.1;
  }

  100% {
    width: 100%;
    opacity: 0.2;
  }
}

/* Featured Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  padding: 1rem;
}

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

.project-image {
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.project-content {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.project-content h3 {
  font-size: medium;
  color: #2d4059;
}

.project-content p {
  font-size: small;
}

.project-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.project-button:hover {
  background: var(--secondary-color);
}

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

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

#modalImage {
  width: 100%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;

}

/* Old Projects */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  transform: translateX(5px);
}

.project-item.empty {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  pointer-events: none;
}

.project-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.project-type {
  margin-top: 0.5rem;
  color: var(--secondary-color);
}

.section-title {
  color: white;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: purple;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Aniamted Cup */
#animated-cup {
  margin-top: 10%;
  margin-left: 5%;
}

.steam {
  position: absolute;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  background-color: #fff;
  margin-top: -75px;
  margin-left: 75px;
  z-index: 0;
  opacity: 0;
}

#steam1 {
  -webkit-animation: steam1 4s ease-out infinite;
  animation: steam1 4s ease-out infinite;
}

#steam3 {
  -webkit-animation: steam1 4s ease-out 1s infinite;
  animation: steam1 4s ease-out 1s infinite;
}

@-webkit-keyframes steam1 {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.2;
  }

  100% {
    transform: translateY(-200px) translateX(-20px) scale(1);
    opacity: 0;
  }
}

@keyframes steam1 {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.2;
  }

  100% {
    transform: translateY(-200px) translateX(-20px) scale(1);
    opacity: 0;
  }
}

#steam2 {
  -webkit-animation: steam2 4s ease-out 0.5s infinite;
  animation: steam2 4s ease-out 0.5s infinite;
}

#steam4 {
  -webkit-animation: steam2 4s ease-out 1.5s infinite;
  animation: steam2 4s ease-out 1.5s infinite;
}

@-webkit-keyframes steam2 {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.2;
  }

  100% {
    transform: translateY(-200px) translateX(20px) scale(1);
    opacity: 0;
  }
}

@keyframes steam2 {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.2;
  }

  100% {
    transform: translateY(-200px) translateX(20px) scale(1);
    opacity: 0;
  }
}

#cup {
  z-index: 1;
}

#cup-body {
  position: absolute;
  height: 200px;
  width: 300px;
  border-radius: 0 0 150px 150px;
  background-color: #fff;
  margin: auto;
  display: inline-block;
  overflow: hidden;
  z-index: 1;
}

#cup-shade {
  position: relative;
  height: 300px;
  width: 200px;
  background-color: #F3F3F3;
  display: inline-block;
  margin-left: 42%;
  margin-top: -3px;
  transform: rotate(50deg);
  z-index: 1;
}

#cup-handle {
  position: relative;
  height: 75px;
  width: 80px;
  border-radius: 0 150px 150px 0;
  border: 15px solid #F3F3F3;
  margin-bottom: 95px;
  margin-left: 250px;
  display: inline-block;
  z-index: 0;
}

#saucer {
  position: absolute;
  height: 30px;
  width: 300px;
  border-radius: 0 0 100px 100px;
  background-color: #F9F9F9;
  margin-top: -32px;
  margin-left: 5px;
  z-index: 2;
}

#shadow {
  height: 10px;
  width: 300px;
  border-radius: 50%;
  margin-top: -5px;
  margin-left: 6px;
  background-color: #7bb8d4;
}