/* =======================
   ROOT VARIABLES
========================== */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-text: #1c4b42;
  --color-accent: #c6f921;
  --color-card: #f7f6f3;

  /* Size */
  --size-sm: 8px;
  --size-md: 12px;
  --size-lg: 16px;
  --size-xl: 24px;

  /* Font sizes */
  --font-xs: 0.75rem;
  --font-sm: 0.9rem;
  --font-md: 1.2rem;
  --font-lg: 3rem;
}

/* =======================
   RESET & BASE
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* =======================
   HERO SECTION
========================== */
.hero-section {
  height: 100vh;
  background-color: var(--color-bg);
  padding: var(--size-lg);
}

.hero-container {
  background-color: var(--color-accent);
  border-radius: var(--size-lg);
  height: 100%;
  width: 100%;
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo {
  position: absolute;
  top: var(--size-xl);
  left: var(--size-xl);
  width: 48px;
  height: auto;
  z-index: 2;
}

.lines-decor {
  position: absolute;
  z-index: 1;
  width: auto;
  height: auto;
}

.top-lines {
  top: 0;
  right: 90px;
  width: 90px;
}

.bottom-lines {
  bottom: 0;
  right: 69px;
  width: 130px;
}

.hero-line {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  width: 130px;
  height: 10px;
  background-color: var(--color-text);
  border-radius: 2px;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 4rem;
  color: var(--color-text);
}

/* =======================
   PROJECTS SECTION
========================== */
.projects-section {
  background-color: var(--color-bg);
  border-bottom-left-radius: var(--size-xl);
  border-bottom-right-radius: var(--size-xl);
  padding: 60px 24px 160px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-tag {
  display: inline-block;
  padding: 12px 20px;
  font-size: var(--font-xs);
  font-weight: 600;
  background-color: var(--color-card);
  color: #333;
  border-radius: 20px;
  margin-bottom: var(--size-xl);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projects-title {
  font-size: var(--font-lg);
  max-width: 500px;
  color: var(--color-text);
  margin-bottom: 80px;
  font-weight: 400;
  line-height: 1.3;
}

.highlight {
  color: var(--color-accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
}

/* =======================
   PROJECT CARD COMPONENT
========================== */
.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-card);
  border-radius: var(--size-lg);
  padding: var(--size-xl);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.project-card:hover {
  background-color: var(--color-accent);
}

.project-image {
  width: 100%;
  border-radius: var(--size-md);
  margin-bottom: var(--size-lg);
  background-color: var(--color-bg);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-year {
  font-size: var(--font-xs);
  color: var(--color-text);
  opacity: 0.8;
}

.project-name {
  font-size: var(--font-md);
  color: var(--color-text);
}

.project-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  background-color: var(--color-text);
}

.project-card:hover ion-icon {
  color: #fff;
}

ion-icon {
  transform: rotate(315deg);
  font-size: var(--size-xl);
  color: var(--color-text);
}

/* =======================
   FOOTER
========================== */
.footer {
  background-color: var(--color-card);
  padding: 100px 24px 60px 24px;
  margin-top: -40px;
  z-index: 0;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--size-lg);
}

.footer-copy {
  font-size: var(--font-sm);
  color: var(--color-text);
  flex: 1 1 100%;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex: 1 1 100%;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--font-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  font-size: var(--size-md);
  transform: rotate(315deg);
  transition: color 0.3s ease;
  color: var(--color-text);
}

.footer-link-item a:hover + .footer-icon {
  color: var(--color-accent);
}

/* =======================
   RESPONSIVE
========================== */
@media (min-width: 1441px) {
  .hero-container {
    align-items: center;
    text-align: center;
  }

  .hero-content h1 {
    text-align: center;
  }
}

@media (max-width: 820px) {
  .hero-section {
    height: 600px;
    padding: var(--size-lg);
  }

  .hero-container {
    padding: var(--size-xl);
  }

  .hero-logo {
    width: 40px;
    top: 20px;
    left: 20px;
  }

  .top-lines {
    right: 70px;
    width: 70px;
  }

  .bottom-lines {
    right: 49px;
    width: 110px;
  }

  .hero-line {
    height: 6px;
  }

  .hero-content {
    max-width: 600px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 3rem;
  }

  .projects-section {
    padding: 60px 24px 120px;
  }

  .projects-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .projects-grid {
    gap: var(--size-xl);
  }

  .footer {
    padding: 80px 24px 40px 24px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy,
  .footer-links {
    flex: unset;
    justify-content: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--size-sm);
  }
}
