/* General Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #2980b9;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-color: var(--light-bg);
}

header {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #34495e;
  padding: 1rem 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Profile Section */
.profile-section {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--secondary-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.caption {
  font-style: italic;
  color: #7f8c8d;
  flex: 1;
  min-width: 200px;
  font-size: 1.1rem;
}

/* Rectangle Boxes */
.rectangle-box {
  background-color: var(--white);
  border-left: 4px solid var(--secondary-color);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-radius: 0 4px 4px 0;
}

.rectangle-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rectangle-box a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.rectangle-box a:hover {
  color: var(--accent-color);
}

/* Contact Form */
#contact-form {
  display: grid;
  grid-gap: 1.2rem;
  max-width: 600px;
  margin: 2rem auto;
}

#contact-form input,
#contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

#contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

#contact-form button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}

#contact-form button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.social-links {
  text-align: center;
  margin-top: 2rem;
}

.social-links p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.social-links a {
  display: inline-block;
  margin: 0 0.8rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  margin-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1.5rem 0;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-pic {
    margin: 0 auto 1rem;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  .social-links a {
    margin: 0.5rem;
    display: block;
    width: 80%;
    margin: 0.5rem auto;
  }
}

@media (max-width: 480px) {
  nav a {
    margin: 0.2rem;
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}