/* ========== Reset and Box Sizing ========== */
/* Removes default spacing and makes sizing consistent */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== Body Styling ========== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  padding: 20px;
}

/* ========== Header Section ========== */
header {
  text-align: center;
  margin-bottom: 32px;
}

/* Profile picture styling */
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;           /* Makes image circular */
  object-fit: cover;            /* Prevents distortion */
  display: block;
  margin: 0 auto 20px auto;     /* Centered image with bottom margin */
  border: 3px solid #2980b9;    /* Colored border */
}

/* Name styling */
header h1 {
  font-size: 2.5em;
  color: #2c3e50;
}

/* Title/subtitle styling */
header p {
  font-size: 1.2em;
  color: #555;
}

/* ========== Navigation Menu ========== */
nav {
  background-color: #2c3e50;
  padding: 15px 0;
  text-align: center;
  margin-bottom: 32px;
  border-radius: 8px;
}

/* Remove list styling */
nav ul {
  list-style: none;
}

/* Make links display horizontally */
nav ul li {
  display: inline;
  margin: 0 15px;
}

/* Navigation links */
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* ========== Section Styling ========== */
/* Generic section container */
section {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Section headers */
section h2 {
  color: #34495e;
  margin-bottom: 15px;
  font-size: 1.8em;
  text-align: center;
}

/* Bullet list spacing */
section ul {
  list-style-type: square;
  margin-left: 20px;
}

/* Paragraph and list item spacing */
section p,
section li {
  margin-bottom: 10px;
}

/* ========== CV Download Link ========== */
#about a {
  color: #2980b9;
  text-decoration: none;
  font-weight: bold;
}

#about a:hover {
  text-decoration: underline;
}

/* ========== Contact Form Styling ========== */
/* Center the form and set max width */
form {
  max-width: 600px;
  margin: auto;
}

/* Input and textarea styling */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  margin-bottom: 15px;
}

/* Submit button styling */
input[type="submit"] {
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #1a252f;
}

/* ========== Footer Styling ========== */
footer {
  text-align: center;
  margin-top: 50px;
  color: #777;
  font-size: 0.9em;
}

/* Space above footer text */
footer p {
  margin-top: 24px;
}

/* Social media icon container */
.social-links {
  margin-top: 15px;
}

/* Icon styling */
.social-links a {
  color: #2c3e50;
  font-size: 1.5em;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for icons */
.social-links a:hover,
.social-links a:focus {
  color: #2980b9;
  transform: scale(1.2);
}

/* ========== Layout Container Width Limiter ========== */
/* Keeps all main sections within a max width and centered */
body > header,
body > nav,
body > .about-education,
body > .skills-interests,
body > section,
body > footer {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== Flex Layouts for Sections ========== */
/* Apply flexbox to organize content horizontally */
.about-education,
.skills-interests {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

/* Individual section inside flex containers */
.about-education section,
.skills-interests section {
  flex: 1;
  background-color: #fcfcfc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 25px;
}

/* ========== Section Background Colors ========== */
/* Gives each section a subtle distinguishing color */
#about,
#skills {
  background-color: #e8f5e9;
}

#education {
  background-color: #e3f2fd;
}

#projects {
  background-color: #fce4ec;
}

#interests {
  background-color: #f3e5f5;
}

#contact {
  background-color: #ececec;
}

/* ========== Responsive Design for Mobile ========== */
/* Stacks flex items vertically on small screens */
@media (max-width: 768px) {
  .about-education,
  .skills-interests {
    flex-direction: column;
  }
}
