/* ===== General Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #28443f;
  color: #e9e8e6;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Navigation ===== */
nav {
  background-color: #1f332d;
  border-bottom: 2px solid #f2fd7d;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: center;
  flex-wrap: wrap;
}

nav li a {
  text-decoration: none;
  color: #f2fd7d;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

nav li a:hover {
  background-color: #f2fd7d;
  color: #1f332d;
}

.logo {
  margin-right: auto;
  font-size: 1.5rem;
  font-weight: 900;
  color: #f2fd7d;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

/* ===== Main Content ===== */
main {
  flex: 1;
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #28443f 0%, #1f332d 100%);
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 3px solid #f2fd7d;
}

.hero h1 {
  font-size: 3rem;
  color: #f2fd7d;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: #e9e8e6;
  font-weight: 300;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.container h2 {
  color: #f2fd7d;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #f2fd7d;
}

/* ===== About Me Section ===== */
.about-me {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.card {
  background-color: #1f332d;
  border: 2px solid #f2fd7d;
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 253, 125, 0.2);
  border-color: #e9e8e6;
}

.card h3 {
  color: #f2fd7d;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: #e9e8e6;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.project-card {
  background-color: #1f332d;
  border: 2px solid #f2fd7d;
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(242, 253, 125, 0.2);
  border-color: #e9e8e6;
}

.project-card h3 {
  color: #f2fd7d;
  font-size: 1.5rem;
  margin: 0;
}

.project-card p {
  color: #e9e8e6;
  flex-grow: 1;
  line-height: 1.7;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #f2fd7d;
  color: #1f332d;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn:hover {
  background-color: #e9e8e6;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(242, 253, 125, 0.3);
}

.btn:active {
  transform: scale(0.98);
}

/* ===== Contact Section ===== */
.contact-section {
  text-align: center;
  background-color: #1f332d;
  border-top: 3px solid #f2fd7d;
  border-radius: 15px 15px 0 0;
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-section > p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #28443f;
  border: 2px solid #f2fd7d;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  color: #f2fd7d;
  transition: all 0.3s ease;
}

.contact-links a:hover {
  background-color: #f2fd7d;
  color: #1f332d;
  transform: scale(1.1) translateY(-5px);
}

.contact-links i {
  pointer-events: none;
}

/* ===== Stats Section ===== */
.stats-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f2fd7d;
}

.stats-section h3 {
  color: #f2fd7d;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.stats-section embed {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

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

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .container h2 {
    font-size: 2rem;
  }

  nav ul {
    gap: 1rem;
    padding: 0 1rem;
  }

  nav li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .about-me,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1.2rem;
  }

  .contact-links {
    gap: 1rem;
  }

  .contact-links a {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

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

  .container h2 {
    font-size: 1.5rem;
  }

  .card,
  .project-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #28443f;
}

::-webkit-scrollbar-thumb {
  background: #f2fd7d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e9e8e6;
}

/* ===== Text Styles ===== */
h2,
h3 {
  color: #f2fd7d;
}

p {
  color: #e9e8e6;
}

/* ===== Utility Classes ===== */
.center {
  text-align: center;
}
