* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #00c4b4;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #00c4b4;
}

/* Sections */
section {
  padding: 6rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
#home {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: #f5f5f5;
  text-align: center;
}

#home .hero-content {
  max-width: 800px;
}

#home h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

#home .tagline {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 2rem;
  position: relative;
}

#home .tagline::after {
  content: "|";
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #00c4b4;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s, background-color 0.3s;
  animation: pulse 2s infinite;
}

.btn:hover {
  background-color: #009688;
  transform: scale(1.05);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

/* About Section */
#about {
  background-color: #fff;
}

.about-container {
  max-width: 1200px;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-text,
.about-image {
  flex: 1;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text {
  transform: translateX(-50px);
}

.about-image {
  transform: translateX(50px);
}

.about-container.visible .about-text,
.about-container.visible .about-image {
  opacity: 1;
  transform: translateX(0);
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

h2 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: #1a1a1a;
}

/* Projects Section */
#projects {
  background-color: #f5f5f5;
}

.project-grid {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.project-card:nth-child(1) {
  transition-delay: 0.1s;
}

.project-card:nth-child(2) {
  transition-delay: 0.2s;
}

.project-card:nth-child(3) {
  transition-delay: 0.3s;
}

.project-grid.visible .project-card {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #f5f5f5;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-content {
  transform: translateY(0);
}

.project-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.project-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-links a {
  margin-right: 1rem;
  font-size: 0.9rem;
}

/* Skills Section */
#skills {
  background-color: #fff;
  overflow: hidden;
}

.skills-container {
  max-width: 1200px;
  width: 100%;
  position: relative;
}

.skills-carousel {
  display: flex;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.skill {
  flex: 0 0 auto;
  width: 150px;
  text-align: center;
  margin-right: 2rem;
  opacity: 0;
  animation: bounceIn 0.5s ease forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  60% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.skill:nth-child(1) {
  animation-delay: 0.1s;
}

.skill:nth-child(2) {
  animation-delay: 0.2s;
}

.skill:nth-child(3) {
  animation-delay: 0.3s;
}

.skill:nth-child(4) {
  animation-delay: 0.4s;
}

.skill:nth-child(5) {
  animation-delay: 0.5s;
}

.skill-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: conic-gradient(
    #00c4b4 0% var(--percent),
    #e0e0e0 var(--percent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.skill-circle::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 50%;
}

.skill-circle span {
  position: relative;
  font-weight: 600;
  color: #1a1a1a;
}

.skill label {
  margin-top: 1rem;
  font-weight: 600;
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: #f5f5f5;
}

.contact-container {
  max-width: 1200px;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info p,
.contact-info a {
  margin-bottom: 1rem;
  color: #f5f5f5;
  text-decoration: none;
}

.contact-info a:hover {
  color: #00c4b4;
}

.contact-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  color: #1a1a1a;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00c4b4;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
  text-align: center;
  padding: 2rem;
}

footer a {
  color: #00c4b4;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0.5rem 1rem;
  }

  #home h1 {
    font-size: 2.5rem;
  }

  #home .tagline {
    font-size: 1.2rem;
  }

  .about-container {
    flex-direction: column;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    flex-direction: column;
  }

  .skills-carousel {
    animation: scroll 15s linear infinite;
    /* Faster on mobile */
  }

  .skill {
    width: 120px;
    margin-right: 1.5rem;
  }

  .skill-circle {
    width: 80px;
    height: 80px;
  }

  .skill-circle::before {
    width: 60px;
    height: 60px;
  }
}
