
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: #0f172a;
}

header {
  background: #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.logo {
  color: #3b82f6;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  padding-bottom: 2px;
}

.nav-links a:hover {
  color: #60a5fa;
}

.nav-links a.active {
  color: #3b82f6;
  border-bottom: 2px solid #3b82f6;
}

.hero {
  height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f8fafc;
  text-align: center;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
}

.hero-text span {
  color: #3b82f6;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: #3b82f6;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #60a5fa;
  color: #0f172a;
}

/* 🔹 Sections */
.about, .projects, .contact {
  padding: 60px 20px;
  text-align: center;
  background: #1e293b;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.about h2, .projects h2, .contact h2 {
  color: #3b82f6;
  margin-bottom: 20px;
}

/* 🔹 Projects Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: #0f172a;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
  border: 1px solid #1e293b;
}

.project-card h3 {
  color: #60a5fa;
  margin-bottom: 10px;
}

.project-card:hover {
  transform: translateY(-8px);
  background: #1e293b;
}

/* 🔹 Contact */
.contact a {
  color: #3b82f6;
  text-decoration: none;
  transition: 0.3s;
}

.contact a:hover {
  color: #60a5fa;
}

/* 🔹 Accessibility (Focus States) */
a:focus, .btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* 🔹 Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 20px;
  border-top: 1px solid #1e293b;
}

/* 🔹 Responsive Adjustments */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}
