/* Global Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  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-bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .profile-container {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: var(--box-shadow);
}

.header-content {
  flex: 1;
}

h1 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-switcher:hover {
  background-color: #2980b9;
}

/* Introduction Section */
.introduction {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

/* Expandable Introduction Content */
.introduction-content {
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  position: relative;
}

.introduction-content.expanded {
  max-height: 2000px; /* Large enough to contain all content */
}

.introduction-content:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

.expand-button {
  display: block;
  margin: 1rem auto 0;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.expand-button:hover {
  background-color: #2980b9;
}

/* Projects Section */
.projects-section {
  margin-bottom: 2rem;
}

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

.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-description {
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-link:hover {
  background-color: #2980b9;
}

/* Footer Styles */
footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  body {
    padding: 15px;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .introduction, .project-content {
    padding: 1rem;
  }
}
