@import url("./global.css");
/* CSS */
/* The following file is intended for the styling of the Skill Swap project  */

/* *****######**** HOME PAGE *****########****/

/* this sections is intended for the body of the home page */
.container {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(auto, auto);
  gap: 2rem;
  padding: 0 1.6rem;
}

/* Hero section with main slideshow */
.item-1 {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 0rem;
  margin-top: 0rem;
}

.slideshow-container {
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 500px;
}

/* Remove the numbertext styling since we'll remove it from HTML */
.numbertext {
  display: none;
}

/* Update caption styling */
.text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  padding: 2.4rem;
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
}

/* Slideshow navigation */
.prev-1,
.next-1,
.prev-2,
.next-2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 2.4rem;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.prev-1,
.prev-2 {
  left: 2rem;
}

.next-1,
.next-2 {
  right: 2rem;
}

.prev-1:hover,
.next-1:hover,
.prev-2:hover,
.next-2:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.05);
}

/* Dot indicators */
.dots-container-1,
.dots-container-2 {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 2;
}

.dot-1,
.dot-2 {
  width: 1.2rem;
  height: 1.2rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot-1.active,
.dot-2.active,
.dot-1:hover,
.dot-2:hover {
  background-color: var(--white);
  transform: scale(1.2);
}

/* How to start section */
.item-2 {
  grid-column: 1 / -1;
  margin: 2rem 0;
}

.item-2 h1 {
  font-size: 3.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.4rem;
  color: var(--text-dark);
}

/* New horizontal layout for the steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 0 auto;
  max-width: 1200px;
}

.item-2 .image-container {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.item-2 .image-container:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.item-2 .image-container img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.item-2 .img-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.6rem 1.6rem 0.8rem;
}

.item-2 .img-subtitle {
  font-size: 1.6rem;
  color: var(--text-medium);
  margin: 0 1.6rem 1.6rem;
  line-height: 1.5;
}

/* Trending Skills section */
.item-3 {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 3rem;
}

.item-3 > * {
  width: 100%;
  max-width: 1280px;
}

.item-3 h2 {
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.slideshow-container-2 {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slide-2-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  padding: 2.4rem;
  font-size: 3.6rem;
  font-weight: 700;
  text-align: center;
}

/* People on SkillSwap section */
.item-people {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 3rem;
}

.people-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 1280px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  width: 100%;
}

.people-card {
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.people-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.people-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.people-content {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.people-content b {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.people-content p {
  font-size: 1.4rem;
  color: var(--text-medium);
  line-height: 1.5;
  flex: 1;
}

/* Recent posts */
.recent-post-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}

.recent-post-item {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.6rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.img-recent-post,
.img-recent-post-2 {
  width: 12rem;
  height: 12rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.text-recent-post-1,
.text-recent-post-2 {
  font-size: 1.6rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.text-recent-post-1 b,
.text-recent-post-2 b {
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.8rem;
}

/* Popular skills sidebar */
.popular-skills-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
  box-shadow: var(--shadow-md);
  margin-top: 4rem;
  width: 100%;
  max-width: 100%;
}

.caption {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2.4rem;
  text-align: center;
}

/* Grid layout for popular posts */
.popular-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
  width: 100%;
}

.popular-post-card {
  display: flex;
  background-color: var(--background);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.popular-post-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.popular-post-content {
  padding: 1.6rem;
  flex: 1;
}

.popular-post-content b {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.8rem;
}

.popular-post-content p {
  font-size: 1.4rem;
  color: var(--text-medium);
  line-height: 1.5;
}

/* Success Cases section */
.item-4 {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 3rem;
}

.item-4 h3 {
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.4rem;
  color: var(--text-dark);
  width: 100%;
  max-width: 1280px;
}

.success-cases-container {
  width: 100%;
  max-width: 1280px;
}

.success-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 3rem;
  align-items: center;
}

.success-case:last-child {
  margin-bottom: 0;
}

.success-case:nth-child(even) {
  direction: rtl;
}

.success-case-image {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInRight 0.8s forwards;
}

.success-case:nth-child(even) .success-case-image {
  transform: translateX(40px);
  animation: fadeInLeft 0.8s forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.success-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.success-case-image:hover img {
  transform: scale(1.05);
}

.success-case-text {
  direction: ltr;
  font-size: 1.8rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.success-case-text b {
  font-size: 2.2rem;
  color: var(--text-dark);
  display: block;
  margin-bottom: 1.6rem;
}

/* Footer styling - more compact and cleaner */
.footer {
  grid-column: 1 / -1;
  background: #272b30;
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 2.4rem 0;
  margin-top: 3rem;
}

/* Remove the RGB bar at the top */
.footer::before {
  display: none;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.footer p {
  font-size: 1.4rem;
  text-align: center;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer p:last-child {
  font-size: 1.3rem;
  opacity: 0.6;
}

.social-links {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 0.8rem;
}

.social-links a {
  width: 3.6rem;
  height: 3.6rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background-color: var(--primary);
  box-shadow: 0 3px 10px rgba(53, 99, 233, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .item-3 {
    grid-template-columns: 1fr;
  }

  .success-case {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .success-case:nth-child(even) {
    direction: ltr;
  }

  .success-case-image {
    height: 300px;
  }

  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .item-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .slideshow-container,
  .slideshow-wrapper {
    height: 300px;
  }

  .text,
  .slide-2-text {
    font-size: 2rem;
    padding: 1.6rem;
  }

  .recent-post-item {
    grid-template-columns: 1fr;
  }

  .img-recent-post,
  .img-recent-post-2 {
    width: 100%;
    height: 200px;
  }

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

  .item-2 .image-container {
    max-width: 480px;
    margin: 0 auto;
  }

  .popular-posts-grid {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .people-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .footer {
    padding: 2.4rem 0;
  }

  .social-links a {
    width: 3.2rem;
    height: 3.2rem;
  }

  .social-links a img {
    width: 1.6rem;
    height: 1.6rem;
  }
}

@media (max-width: 480px) {
  .slideshow-container,
  .slideshow-wrapper {
    height: 200px;
  }

  .prev-1,
  .next-1,
  .prev-2,
  .next-2 {
    width: 4rem;
    height: 4rem;
    font-size: 1.8rem;
  }

  .item-2 h1,
  .item-3 h2,
  .item-4 h3 {
    font-size: 2.4rem;
  }
}

/* Call to Action section */
.item-cta {
  grid-column: 1 / -1;
  margin: 1rem 0 3rem;
}

.cta-container {
  background: linear-gradient(135deg, #3563e9 0%, #2250d2 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.cta-container h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  padding: 1.4rem 3.2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-container {
    padding: 2.4rem 1.5rem;
  }

  .cta-container h2 {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
  }

  .cta-button {
    font-size: 1.6rem;
    padding: 1.2rem 2.8rem;
  }
}

@media (max-width: 480px) {
  .cta-container h2 {
    font-size: 2rem;
  }
}
