body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #f4f4f4;
  text-align: center;
  padding: 1rem;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

footer {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter {
  margin-bottom: 1rem;
}

.newsletter h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 1rem;
  opacity: 0.8;
}

section {
  margin-bottom: 2rem;
}

a {
  color: #3498db;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #2980b9;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
}

h1, h2, h3 {
  color: #2c3e50;
}

ul {
  padding-left: 20px;
}

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #3498db;
}

.social-links .custom-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


.contact-section {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.contact-intro {
  text-align: left;
}

.contact-intro > * + * {
  margin-top: 0.5rem;
}

.contact-title {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
}

.contact-description {
  color: #555;
  margin-bottom: 1.5rem;
}

.contact-form {
  width: 100%;
}

.form-group-container {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

.form-input {
  height: 2.25rem;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
  background-color: #3498db;
  color: #fff;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #2980b9;
}

section {
  margin-top: 1rem;
  padding-top: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

section:last-child {
  border-bottom: none;
}

#current-project {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 3rem;
}

.project {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #eee;
}

.project:last-child {
  margin-bottom: 0;
}

.project h3 {
  margin-top: 0;
  color: #2c3e50;
}

.highlight-project {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 2rem;
}

#current-projects .project:last-child,
#upcoming-projects .project:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }

  .contact-section {
    padding: 0;
  }
  
  .form-group-container {
    gap: 0.5rem;
  }
}

/* Add these mobile improvements to your existing styles.css */

/* Better mobile spacing and layout */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }
  
  header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  header p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  main {
    padding: 1.5rem 1rem;
  }
  
  section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .project {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .highlight-project {
    padding: 1.5rem;
  }
  
  #current-projects, 
  #upcoming-projects,
  #other-projects {
    margin-bottom: 1.5rem;
  }
  
  ul {
    padding-left: 1.25rem;
  }
  
  li {
    margin-bottom: 0.5rem;
  }
  
  .contact-section {
    padding: 0;
  }
  
  .contact-intro {
    margin-bottom: 1.5rem;
  }
  
  footer {
    padding: 1.5rem 1rem;
  }
  
  .footer-content {
    padding: 0 0.5rem;
  }
  
  .newsletter h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .social-links {
    gap: 15px;
    margin-top: 1.5rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  header p {
    font-size: 0.875rem;
  }
  
  main {
    padding: 1rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  h3 {
    font-size: 1.15rem;
  }
  
  .project,
  .highlight-project {
    padding: 1rem;
  }
}