/* Global reset and variable definitions */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3498db;
  --background-color: #1a1a1a;
  --text-color: #f1f1f1;
  --accent-color: #e74c3c;
  /* Changed font to a more academic style */
  --font-family: 'Merriweather', Georgia, serif;
}

/* Base styles */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  /* Increased overall font size further */
  font-size: 1.2rem;
}

/* Header and Navigation */
header {
  background: #111;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Main page sections */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* Home section */
#home {
  text-align: center;
}

#home h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#home p {
  font-size: 1.2rem;
}

/* About section */
#about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

#about .about-text {
  flex: 1 1 300px;
}

#about .about-image {
  flex: 1 1 300px;
}

#about img {
  width: 100%;
  border-radius: 8px;
}

/* Projects section */
#projects .project-item {
  background: #222;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

#projects .project-item:hover {
  transform: translateY(-5px);
}

#projects .project-item h3 {
  margin-bottom: 0.5rem;
}

#projects .project-item p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Blog section */
#blog article {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

#blog article h3 {
  margin-bottom: 0.5rem;
}

#blog article p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact section */
#contact .social-links {
  display: flex;
  justify-content: center; /* Centers icons horizontally */
  align-items: center; /* Ensures vertical alignment */
  gap: 1rem;
  padding: 1rem 0;
}

#contact .social-links a {
  display: flex; /* Ensures the anchor tag behaves as a block */
  align-items: center;
  justify-content: center;
}

#contact .social-links a img {
  margin-top:32px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#contact .social-links a img:hover {
  transform: scale(1.1);
}


#contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
}

#contact input[type="submit"] {
  background: var(--primary-color);
  color: var(--background-color);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contact input[type="submit"]:hover {
  background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  #about {
    flex-direction: column;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}
