/* Global Styles */
:root {
  --primary-color: #7c27b5; /* Dark purple */
  --secondary-color: #e0b0ff; /* Light purple */
  --accent-color: #b284be; /* Slightly darker purple for hover */
  --text-color: #333;
  --light-color: #ffffff; /* White */
  --dark-color: #000000; /* Black */
}

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

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

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

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

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

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
  transform: translateY(-2px);
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--dark-color);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 500;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--light-color) 0%,
    var(--secondary-color) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark-color);
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;

  .image-placeholder {
    width: 300px;
    height: 300px;
    background-color: #9cb3d3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
  }
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Experience Section */
.experience {
  background-color: var(--light-color);
}

.experience-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.experience-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;

  img {
    height: 200px;
    width: 200px;
  }
  
  p {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}

.experience-card:hover {
  transform: translateY(-10px);
  
  p {
    opacity: 1;
    visibility: visible;
  }
}

.experience-card h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

/* Projects Section */
.projects {
  background-color: white;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

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

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

.project-image {
  height: 200px;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-info p {
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Contact Section */
.contact {
  background-color: var(--light-color);
}

.contact-container {
  display: flex;
  gap: 50px;
  justify-content: center;
}

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

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--dark-color);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 15px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  /* Keep a pop of color for social links hover */
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-container {
    flex-direction: column;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}
