/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather', serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Typography */
h1 {
  font-family: 'Sacramento', cursive;
  font-size: 3.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #34495e;
  margin-bottom: 1rem;
  font-weight: 600;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #3498db;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Header section */
.top-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 100px 20px 50px;
  position: relative;
  overflow: hidden;
}

.top-container h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.top-container h2 {
  color: #f8f9fa;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.intro {
  font-size: 1.2rem;
  color: #e9ecef;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.top-cloud {
  position: absolute;
  right: 300px;
  top: 50px;
  opacity: 0.3;
}

.bottom-cloud {
  position: absolute;
  left: 300px;
  top: 150px;
  opacity: 0.3;
}

/* Main content */
.middle-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Profile section */
.profile {
  text-align: center;
  margin-bottom: 4rem;
}

.my-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.my-image:hover {
  transform: scale(1.05);
}

.profile-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.profile-description a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid #3498db;
}

.profile-description a:hover {
  color: #2980b9;
  border-bottom-color: #2980b9;
}

/* Experience section */
.experience {
  margin-bottom: 4rem;
}

.experience-item {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
}

.experience-item h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.experience-item h4 {
  color: #3498db;
  font-weight: 500;
  margin-bottom: 1rem;
}

.experience-item ul {
  list-style: none;
  padding-left: 0;
}

.experience-item li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.experience-item li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

/* Skills section */
.skills {
  margin-bottom: 4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.skill-category h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.skill-category p {
  color: #666;
  font-size: 0.95rem;
}

/* Projects section */
.projects {
  margin-bottom: 4rem;
}

.project-item {
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.project-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.project-item h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.project-item p {
  color: #666;
  margin-bottom: 1rem;
}

.tech-stack {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Achievements section */
.achievements {
  margin-bottom: 4rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.achievement-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.achievement-item h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.achievement-item p {
  color: #666;
  font-size: 0.95rem;
}

/* Contact section */
.contact-me {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.location {
  color: #666;
  font-style: italic;
  margin-top: 1rem;
}

/* Bottom container */
.bottom-container {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem;
}

.bottom-container p {
  margin: 0;
  color: #bdc3c7;
}

/* Dividers */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 3rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .top-container h1 {
    font-size: 2.5rem;
  }
  
  .top-container h2 {
    font-size: 1.5rem;
  }
  
  .intro {
    font-size: 1rem;
  }
  
  .middle-container {
    padding: 40px 15px;
  }
  
  .top-cloud, .bottom-cloud {
    display: none;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
    justify-content: center;
  }
}
