* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #f5f7fb;
  color: #222;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  color: white;
  padding: 20px 8%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 52px;
  margin-bottom: 15px;
}

.hero-text h1 span {
  color: #38bdf8;
}

.hero-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn {
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.primary {
  background: #38bdf8;
  color: #0f172a;
}

.primary:hover {
  background: #0ea5e9;
  color: white;
}

.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.secondary:hover {
  background: white;
  color: #0f172a;
}

.social-icons {
  display: flex;
  gap: 18px;
}

.social-icons a {
  color: white;
  font-size: 26px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hero-image img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

.section {
  padding: 70px 8%;
}

.section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 35px;
  color: #0f172a;
}

.dark-section {
  background: #e2e8f0;
}

.card {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill-card {
  background: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  background: #38bdf8;
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.project-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

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

.project-card h3 {
  margin-bottom: 10px;
  color: #0f172a;
}

.tech {
  color: #0284c7;
  font-weight: bold;
  margin-bottom: 12px;
}

.card ul {
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 12px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.contact-card,
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.contact-card p {
  margin-bottom: 15px;
  font-size: 17px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 20px;
  background: #0f172a;
  color: white;
}

@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 38px;
  }

  .hero-text h3 {
    font-size: 20px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text p {
    margin: auto auto 25px;
  }

  .hero-buttons,
  .social-icons {
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: center;
    margin-top: 10px;
  }
}
