/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0f4f8;
  color: #374151;
  line-height: 1.6;
  padding: 20px;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  padding: 15px 25px;
  box-shadow: 0 2px 8px rgba(209, 217, 230, 0.5);
  margin-bottom: 30px;
  border-radius: 10px;
}

nav a {
  color: #7c9aff;
  text-decoration: none;
  margin-right: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: #a3bffa;
  color: #1f2937;
}

/* Container */
.section {
  max-width: 700px;
  margin: 0 auto;
}

/* Cards & Presentation Sections */
.card,
.presentation,
.expertise {
  max-width: 700px;
  margin: 2.5rem auto 4rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #f8f4f1, #e9f0f8);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(100, 100, 120, 0.1);
  color: #333;
  font-family: inherit;
  line-height: 1.7;
  text-align: center;
  animation: fadeSlideUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(25px);
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar */
.presentation .avatar,
.avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin: 0 auto 1.8rem;
  border: 5px solid #cbd5e1; /* subtle pastel border */
  transition: transform 0.3s ease;
  display: block;
}

.presentation .avatar:hover,
.avatar:hover {
  transform: scale(1.05);
}

/* Presentation Headings & Text */
.presentation h1,
.expertise h2 {
  font-weight: 700;
  color: #334e68;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.presentation h1 {
  font-size: 2.8rem;
}

.expertise h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #5a5a5a;
}

/* Paragraphs */
.presentation p,
.expertise p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.6rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Expertise Grid */
.expertise-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.expertise-grid ul {
  list-style: none;
  padding: 0;
  flex: 1 1 320px;
  max-width: 360px;
}

.expertise-grid li {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: default;
  transition: color 0.3s ease;
}

.expertise-grid li:hover {
  color: #6b91c9;
}

.icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Button Styles */
.btn,
.btn-primary {
  background-color: #a3bffa;
  color: #374151;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(163, 191, 250, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.25s ease;
  text-decoration: none;
  display: inline-block;
  user-select: none;
}

.btn-primary {
  padding: 0.75rem 2.2rem;
  border-radius: 30px;
  background: #a3c4f3;
  color: #1c3d5a;
  box-shadow: 0 6px 15px rgba(163, 196, 243, 0.5);
}

.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-primary:focus {
  background-color: #7c9aff;
  color: #1f2937;
  box-shadow: 0 6px 12px rgba(124, 154, 255, 0.7);
  outline: none;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 700px) {
  .expertise-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  header {
    padding: 10px 15px;
  }

  nav a {
    margin-right: 12px;
    font-size: 1rem;
  }

  .presentation,
  .expertise,
  .card {
    padding: 2rem 1.5rem;
    margin: 2rem auto 3rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .presentation h1 {
    font-size: 2rem;
  }

  .expertise h2 {
    font-size: 1.8rem;
  }

  .btn,
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}
/* Contact Section */
.contact-section {
  max-width: 600px;
  margin: 0 auto 60px auto;
  background: rgba(255 255 255 / 0.7); /* Soft pastel glass effect */
  padding: 30px 25px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(163 191 250 / 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #436d8a;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 20px;
  border-radius: 30px;
  border: 1.8px solid rgba(163 191 250 / 0.6);
  background: rgba(255 255 255 / 0.5);
  color: #374151;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(163 191 250 / 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7c9affcc;
  font-style: italic;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255 255 255 / 0.8);
  box-shadow: 0 8px 25px rgba(124 154 255 / 0.5);
  transform: scale(1.05);
  outline: none;
  border-color: #7c9aff;
}

.contact-form button.btn {
  width: 100%;
  font-weight: 700;
  padding: 15px 0;
  font-size: 1.2rem;
  border-radius: 30px;
  border: none;
  background: #a3bffa;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(163 191 250 / 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button.btn:hover,
.contact-form button.btn:focus {
  background: #7c9aff;
  box-shadow: 0 8px 25px rgba(124 154 255 / 0.7);
  outline: none;
}
/* Project Grid Container */
#github-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Project Card */
.project-card {
  background: rgba(255, 255, 255, 0.7); /* Pastel glass effect */
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover Effect */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Project Title */
.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #444;
  font-weight: 700;
}

/* Project Description */
.project-card p {
  font-size: 0.95em;
  color: #555;
  flex-grow: 1;
  line-height: 1.4;
}

/* Project Link Button */
.project-card a {
  align-self: flex-start;
  margin-top: 15px;
  padding: 8px 14px;
  background: #b0d6f9; /* pastel blue */
  color: #1e3a5f;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
  box-shadow: 0 3px 8px rgba(176, 214, 249, 0.6);
}

.project-card a:hover {
  background: #98c4ec;
  box-shadow: 0 5px 15px rgba(152, 196, 236, 0.8);
}
