* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Instrument Serif', serif;
  color: #333;
  background-color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1024px;
}

/* Landing Section */
#landing {
  padding: 2rem 0;
}

.landing-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #333;
}

.landing-title .text-primary {
  color: #367FFD !important;
  font-style: italic;
}

.landing-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: #666;
  margin-bottom: 2rem;
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
  color: #333;
}

/* About Section */
.about-text {
  font-size: 1.6rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  color: #555;
  line-height: 1.8;
}

/* Videos Section */
#videos {
  background-color: #fff;
}

.video-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Projects Section */
.project-card {
  background: white;
  padding: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.project-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  padding: 5px 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-link.github {
  background-color: #333;
  color: white;
}

.project-link.github:hover {
  background-color: #555;
  color: white;
}

.project-link.demo {
  background-color: #BB3E00;
  color: white;
}

.project-link.demo:hover {
  background-color: #bb3e00b3;
  color: white;
}

/* Footer */
footer {
  background-color: #fff;
  padding: 4rem 0;
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
  color: #333;
}

.footer-quote {
  font-size: 1.1rem;
  color: #666;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Social Bar */
.social-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 15px 25px;
  display: flex;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.social-link {
  color: #333;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: #367FFD;
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-up:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .landing-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .landing-quote {
    font-size: 1.2rem;
    text-align: center;
  }

  .profile-img {
    width: 200px;
    height: 200px;
    margin-top: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-text {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .portfolio-title {
    font-size: 2.5rem;
  }

  .footer-title {
    font-size: 1.2rem;
  }

  .footer-quote {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .social-bar {
    bottom: 20px;
    padding: 12px 20px;
    gap: 5px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-links {
    flex-direction: column;
    gap: 10px;
  }

  .project-link {
    text-align: center;
  }

  .video-card {
    /* margin-bottom: 0.5rem; */
    height: 180px;
  }
}

/* Loading states */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #367FFD;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}