/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #909db1;
  color: #222831;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1); /* Transparent */
  backdrop-filter: blur(10px); /* Blur effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center; /* Center navbar */
}

/* Navbar Items */
nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-weight: bold;
  font-size: 1rem;
  color: black; /* Black font */
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: #2563eb; /* Blue on hover */
}


/* Hero Section */
#home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1rem 4rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #222831;
}

.hero-text h1 span {
  color: #2563eb;
}

.hero-text h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: #222831;
}

.hero-text p {
  color: #222831;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: #2563eb;
  font-weight: bold;
  transition: color 0.3s;
}

.social-links a:hover {
  text-decoration: underline;
  color: #3b82f6;
}

.social-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Section Layouts */
section {
  padding: 4rem 1rem;
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2563eb;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.project-card {
  background: #909db1;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.08);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.16);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.2rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222831;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.github-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1.5px solid #222831;
  border-radius: 999px;
  color: #222831;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.github-btn:hover {
  background: #222831;
  color: #fff;
}

.live-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1.5px solid #2563eb;
  border-radius: 999px;
  color: #2563eb;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.live-btn:hover {
  background: #2563eb;
  color: #fff;
}

/* Contact Section */
#contact .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: #2563eb;
  color: #ffffff;
  text-align: center;
  padding: 2rem 1rem;
}

/* Divider */
hr {
  border: none;
  height: 1px;
  background: black;
  margin: 3rem 0;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    max-width: 100%;
  }

  nav ul {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h3 {
    font-size: 1.2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    max-width: 100%;
    padding: 1rem;
  }

  .social-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #b3c1d3;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222831;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: #f9fafb;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #1d4ed8;
}


