body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #0b1f3a;
  color: peachpuff;
}

.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.section-title h1 {
  background: linear-gradient(#1e2d4d, #0b1f3a);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 2rem;
}

h1, h2, h3 {
  color: peachpuff;
  text-align: center;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0b1f3a;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
}

.navbar a {
  text-decoration: none;
  color: peachpuff;
  font-weight: bold;
  transition: 0.3s;
}

.navbar a:hover {
  color: white;
}

.home-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.profile-pic {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid peachpuff;
  flex-shrink: 0;
}

.home-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.home-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.home-text p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  margin: 0 0.5rem;
  color: peachpuff;
  font-weight: bold;
  text-decoration: underline;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-box {
  background-color: #1e2d4d;
  border-left: 6px solid peachpuff;
  padding: 1rem 2rem;
  border-radius: 8px;
}

.skill-box h3 {
  margin-bottom: 0.5rem;
}

.skill-box ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.skill-box li a {
  color: peachpuff;
  text-decoration: none;
}

.skill-box li a:hover {
  text-decoration: underline;
}

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

.card {
  background-color: #1e2d4d;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  color: peachpuff;
}

.card img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

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

.project-card {
  background-color: #1e2d4d;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  color: peachpuff;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.rec-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.rec-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.rec-card {
  min-width: 300px;
  max-width: 300px;
  height: 200px;
  background-color: #1e2d4d;
  padding: 1.5rem;
  border-radius: 12px;
  font-style: italic;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.rec-card:hover {
  border-color: #3b82f6;
  background-color: #1e2d4d;
}

.rec-card p:first-child {
  font-style: italic;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  max-height: calc(1.4em * 4);
}

.rec-author {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: normal;
  flex-shrink: 0;
}

.click-indicator {
  position: absolute;
  bottom: 10px;
  right: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.8rem;
  color: #3b82f6;
  font-weight: 500;
}

.rec-card-link:hover .click-indicator {
  opacity: 1;
}

.rec-card::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 1.5rem;
  right: 1.5rem;
  height: 20px;
  background: linear-gradient(transparent, #1e2d4d);
  pointer-events: none;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-316px * 9)); }
}

.carousel {
  display: flex;
  overflow: hidden;
  gap: 1rem;
  padding-bottom: 1rem;
  position: relative;
  animation: scroll 45s linear infinite;
  width: calc(316px * 18);
  mask: linear-gradient(to right, transparent 0%, white 5%, white 95%, transparent 100%);
  -webkit-mask: linear-gradient(to right, transparent 0%, white 5%, white 95%, transparent 100%);
}

.carousel:hover {
  animation-play-state: paused;
}


@media screen and (max-width: 768px) {
  .home-container {
    flex-direction: column;
  }
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }
}
