/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
}

/* Navigation Bar */
nav {
  background: #333;
  color: white;
  padding: 1rem;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin-left: 1rem;
}
nav a {
  color: white;
  text-decoration: none;
}

/* Hero Section */
#home .hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f4f4f4;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.button {
  background: #333;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
}

/* About, Projects, Contact Sections */
.typewriter {
  font-family: "Open Sans", sans-serif;
  font-size: 2em;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid black; /* Cursor effect */
  width: 0;
  animation: typing 4s steps(20) 1s infinite, blink 0.75s step-end infinite;
}

@keyframes typing {
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.project {
  margin-bottom: 1.5rem;
}
.project h3 {
  font-size: 1.5rem;
}
.project p {
  margin: 0.5rem 0;
}

/* Projects Section */
#projects {
  padding: 2rem 0;
  text-align: center;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.project-card {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 1.5rem;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.project-card p {
  margin-bottom: 1rem;
  color: #555;
}

.project-card .button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.project-card .button.secondary {
  background: #555;
}

.project-card .button:hover {
  background: #555;
}

/* General button styles */
.button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: background 0.3s ease;
}

/* GitHub button specific styles */
.button.github {
  background-color: #333;
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
}

/* GitHub icon styling */
.button.github i {
  margin-right: 0.5rem; /* Space between icon and text */
  font-size: 1.2rem;
}

/* Hover effect for GitHub button */
.button.github:hover {
  background-color: #24292e; /* Darker shade for hover effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* About Section - Updated */
#about {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content */
  text-align: center; /* Center text */
  padding: 2rem;
}

#about p {
  margin-bottom: 1rem;
  max-width: 600px;
}

#about .button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
}
form input,
form textarea,
form button {
  margin: 0.5rem 0;
  padding: 0.5rem;
  font-size: 1rem;
}
form button {
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
}

/* Social Links */
.social-links {
  margin-top: 1rem;
}
.social-links a {
  margin-right: 1rem;
  color: #333;
  text-decoration: none;
}
