* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 70px 5%;
}

.alt {
  background: #f3f4f6;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 24px;
}

p {
  margin-bottom: 12px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 5%;
  background: #111827;
}

.logo {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}

.navbar nav a {
  color: #d1d5db;
  text-decoration: none;
  margin-left: 20px;
}

.navbar nav a:hover {
  color: #ffffff;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
}

.hero .container {
  width: 100%;
}

.hero-small {
  font-size: 1.2rem;
}

.hero h1 {
  font-size: 3.5rem;
}

.hero h2 {
  font-weight: normal;
  margin-bottom: 16px;
}

.hero-text {
  max-width: 600px;
  margin: 0 auto 24px auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: #ffffff;
  color: #4f46e5;
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.skill-group {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.skill-group h3 {
  margin-bottom: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

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

.project-tag {
  align-self: flex-start;
  background: #4f46e5;
  color: #ffffff;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-links .btn {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  padding: 6px 16px;
  font-size: 0.9rem;
}

.project-links .btn-outline {
  background: transparent;
  color: #4f46e5;
}

/* ---------- Contact & Footer ---------- */
.contact-links a {
  margin-right: 20px;
  color: #4f46e5;
  font-weight: bold;
}

footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 20px 5%;
}

footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .navbar {
    justify-content: center;
  }

  .navbar nav a {
    margin: 0 10px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-card {
  background: #f3f4f6;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.about-card h3 {
  margin: 16px 0 10px 0;
}

.about-card h3:first-child {
  margin-top: 0;
}

.facts {
  list-style: none;
}

.facts li {
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
