@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --bg-color: #f4f4f4;
  --card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container img{
  height: auto;
  width: auto;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

.hero {
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  opacity: 0.8;
}

/* Section Styles */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

/* About Section */
#about .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.skills-list li {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 20px 20px 10px;
  font-size: 24px;
}

.project-card p {
  padding: 0 20px 20px;
  color: #666;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin: 0 20px 20px;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Contact Section */
.contact-info {
  text-align: center;
  font-size: 18px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  color: #fff;
  font-size: 24px;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  #about .container {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Contact Section Styles */
#contact {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.1;
  z-index: 0;
}

#contact .container {
  position: relative;
  z-index: 1;
}

#contact h2 {
  color: var(--secondary-color);
  margin-bottom: 50px;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info,
.contact-form {
  flex: 1;
  padding: 40px;
}

.contact-info {
  background-color: var(--primary-color);
  color: #ffffff;
}

.contact-info h3,
.contact-form h3 {
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
}

.contact-info h3::after,
.contact-form h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: #ffffff;
}

.contact-form h3::after {
  background-color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.contact-info i {
  margin-right: 15px;
  color: #ffffff;
  font-size: 24px;
  width: 24px;
  text-align: center;
}

.contact-info .social-links {
  margin-top: 40px;
}

.contact-info .social-links a {
  color: #ffffff;
  font-size: 24px;
  margin-right: 20px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.contact-info .social-links a:hover {
  transform: translateY(-5px);
}

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

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background-color: #f8f9fa;
  color: var(--text-color);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
  background-color: var(--primary-color);
  border: none;
  color: #ffffff;
  padding: 12px 30px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
}

.contact-form .btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Responsive design for contact section */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    border-radius: 15px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    padding: 30px;
  }

  .contact-info {
    border-radius: 15px 15px 0 0;
  }

  .contact-form {
    border-radius: 0 0 15px 15px;
  }
}

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

#contact h2,
.contact-info,
.contact-form {
  animation: fadeInUp 0.6s ease-out forwards;
}

.contact-info {
  animation-delay: 0.2s;
}

.contact-form {
  animation-delay: 0.4s;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-icon {
  color: white;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #22c55e;
}

.icon {
  font-size: 3rem;
  animation: bounce 2s infinite;
}