@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2BAE66;
  --primary-dark: #229955;
  --primary-light: #e8f8ef;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.header__title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========== ASSIGNMENTS GRID ========== */
.assignments {
  flex: 1;
  margin-bottom: 3rem;
}

.assignments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ========== CARD ========== */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card__description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.card__button {
  display: inline-block;
  flex: 1;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.card__button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(43, 174, 102, 0.3);
}

.card__button:active {
  transform: translateY(0);
}

.card__button--secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.card__button--secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.card__buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer__text {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer__github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.footer__github-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(43, 174, 102, 0.3);
}

.footer__github-btn:active {
  transform: translateY(0);
}

.footer__github-btn svg {
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer__links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--primary-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .assignments__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .assignments__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header__title {
    font-size: 2rem;
  }

  .header__subtitle {
    font-size: 1rem;
  }

  .assignments__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card__number {
    font-size: 2.5rem;
  }

  .card__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.75rem;
  }

  .header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  .header__title {
    font-size: 1.75rem;
  }

  .card {
    padding: 1.25rem;
  }
}
