/* Global Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  font-size: 16px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #333;
}

header nav {
  flex: 1;
}

#nav-menu {
  display: flex;
  list-style: none;
}

#nav-menu li a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

#nav-menu li a:hover {
  color: #1e90ff;
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #e0e0e0;
}

/* Section Styling */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
#hero {
  text-align: center;
  background-color: #1a1a1a;
  padding: 100px 20px;
}

#hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.125rem;
  color: #ccc;
}

/* About Section - Grayscale Styled */
.about-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
  text-align: center;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.about-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-block {
  background-color: #1f1f1f;
  border: 1px solid #333;
  padding: 2rem;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.about-block:hover {
  transform: translateY(-4px);
}

.about-block p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-block ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.about-block li {
  margin-bottom: 0.5rem;
  color: #bbb;
  font-size: 0.95rem;
}

/* Resume Cards */
#resume {
  text-align: center;
}

#resume h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.resume-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resume-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.resume-card:hover {
  transform: translateY(-4px);
}

.resume-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Projects & Learn to Code */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

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

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Learn to Code Section */
#learn-to-code h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

#learn-to-code p {
  margin-bottom: 2rem;
  text-align: center;
}

/* Contact Section */
#contact {
  text-align: center;
  padding-bottom: 4rem;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
  transform: translateY(-2px);
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

form label {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-align: left;
}

input,
textarea {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 0.75rem;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: 2px solid #1e90ff;
  border-color: #1e90ff;
}

form .button {
  width: fit-content;
  align-self: center;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: #333;
  color: #e0e0e0;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #555;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  #nav-toggle {
    display: block;
  }

  #nav-menu {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #1f1f1f;
    width: 180px;
    border: 1px solid #333;
    display: none;
  }

  #nav-menu.active {
    display: flex;
  }

  #nav-menu li {
    margin: 1rem;
  }

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