* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #020617;
  background-image:
    linear-gradient(115deg, rgba(37, 99, 235, 0.14), rgba(15, 23, 42, 0.84) 45%, rgba(2, 6, 23, 0.95)),
    url("https://images.unsplash.com/photo-1555949963-aa79dcee981c?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #e2e8f0;
  line-height: 1.6;
}

.hero {
  min-height: 100vh;
  padding: 2rem 8vw 4rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.hero-content {
  margin-top: 2.5rem;
  max-width: 760px;
}

.hero-skills {
  margin-top: 1.5rem;
}

.hero-content h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #dbeafe;
  font-size: 0.85rem;
}

.section {
  padding: 3.5rem 8vw;
}

.section h3 {
  margin-top: 0;
  font-size: 1.7rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.carousel-wrapper {
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #334155;
  background: #0b1220;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.skill-card {
  min-width: 100%;
  position: relative;
  height: clamp(320px, 50vw, 560px);
}

.skill-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.skill-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.1));
}

.skill-overlay h4 {
  margin: 0;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  color: #dbeafe;
}

.skill-overlay p {
  margin: 0.35rem 0 0;
  color: #cbd5e1;
}

.carousel-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #111827;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.1rem;
}

.carousel-controls button:hover {
  background: #1e293b;
}

.carousel-dots {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: #475569;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  background: #60a5fa;
  transform: scale(1.25);
}

.service-list {
  margin: 0;
  padding-left: 1.1rem;
}

footer {
  padding: 2rem 8vw 3rem;
  border-top: 1px solid #334155;
  color: #cbd5e1;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #93c5fd;
  text-decoration: none;
}

.footer-link-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  fill: currentColor;
}

.footer-link:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #111827;
  color: #e2e8f0;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid #334155;
  font-weight: 600;
}

.btn.primary {
  margin-top: 1rem;
  background: #2563eb;
  border-color: #2563eb;
}

.btn.primary:hover {
  background: #1d4ed8;
}

@media (max-width: 640px) {
  .hero {
    padding: 1.2rem 1rem 2rem;
    min-height: auto;
  }

  .top-nav {
    gap: 0.75rem;
  }

  .logo {
    font-size: clamp(1.2rem, 5vw, 1.85rem);
  }

  .hero-content {
    margin-top: 1.2rem;
  }

  .hero-content h2 {
    font-size: 1.55rem;
  }

  .section-head h3 {
    font-size: 1.3rem;
  }

  .carousel-controls button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .skill-card {
    height: 290px;
  }

  .skill-overlay {
    padding: 0.85rem 0.9rem 1rem;
  }

  .skill-overlay h4 {
    font-size: 1.05rem;
  }

  .skill-overlay p {
    font-size: 0.88rem;
  }

  .section {
    padding: 2.2rem 1rem;
  }

  footer {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero {
    padding: 1.8rem 4vw 3rem;
  }

  .section {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  footer {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

@media (max-width: 430px) {
  .section-head {
    flex-wrap: wrap;
  }

  .carousel-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
