body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: rgb(19, 18, 18);
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}
html {
  scroll-behavior: smooth;
}

h1 {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  color: white;
  font-size: 1.5rem;
}
h2 {
  font-size: 1.5rem;
}

/*Nav */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav li a {
  text-decoration: none;
  color: rgb(80, 79, 79);
}
nav li a:hover {
  color: #8ab4f8;
}

/*About */
.hero-container {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem; /* reduced vertical spacing */
}

.hero-text-box {
  position: relative;
  border: 1px solid white;
  padding: 1.5rem; /* tighter padding inside box */
  max-width: 800px;
  background-color: rgb(19, 18, 18);
  border-radius: 8px;
  color: #ffffff;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.text-left h2 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
}

.text-left .location {
  font-size: 0.9rem;
  margin: 0;
  color: #8ab4f8;
}

.hero-text-box p {
  font-size: 0.95rem;
  margin: 0.75rem 0 0 0;
  line-height: 1.4;
  text-align: left;
}

.social-icons {
  display: flex;
  gap: 0.4rem;
}

.btn-icon {
  border-radius: 6px;
  font-size: 1rem;
  padding: 0.4rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Projects */
.projects {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.projects h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.project-card {
  background-color: #2e2d2d;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

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

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 300px; /* Reduce this to control height */
  object-fit: cover;
  display: block;
  filter: brightness(70%) grayscale(20%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image:hover .overlay {
  opacity: 1;
}

.learn-more {
  background-color: #ffffff;
  color: black;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
}

.project-content {
  padding: 0.8rem;
  color: white;
}

.project-content h3 {
  margin: 0;
  font-size: 1rem;
}

.tech-stack {
  margin: 0.8rem 0;
}

.badge {
  display: inline-block;
  background-color: #333;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}
/* skills */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.tech-stack i {
  font-size: 1.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #111;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#skills {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.carousel-row {
  overflow: hidden;
  white-space: nowrap;
  margin: 1.5rem 0;
  height: 5rem;
}

.carousel-track {
  display: inline-flex;
  gap: 3rem;
  animation: scroll-left 18s linear infinite;
}

.row2 .carousel-track {
  animation-delay: 0s;
}

.skill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: white;
  white-space: nowrap;
}

.skill i {
  font-size: 2rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.carousel-row {
  overflow: hidden;
  white-space: nowrap;
  margin: 1.5rem 0;
  height: auto;
  max-width: 500px; /* control how wide the scrolling area is */
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;

  color: white;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Contact Section */
#contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  color: white;
}

/* Match "My Personal Projects" heading style */
#contact h2 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 2rem;
}

/* Optional: style the contact paragraph */
#contact p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: rgb(200, 200, 200);
}

/* Optional: improve spacing & alignment of contact icons */
#contact .btn-icon {
  font-size: 1.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}
.btn-icon:link,
.btn-icon:visited,
.btn-icon:active {
  color: #8ab4f8; /* or your preferred color */
  border-color: #8ab4f8;
}
.btn-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-icon:hover {
  transform: translateY(-5px);
  color: white;
}
.contact-box {
  border: 1px solid white;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgb(19, 18, 18);
  border-radius: 8px;
}
