:root{
  --section-hor-padding: 32px;
}

/* Hero Section */
.hero {
  height: 453px;
  background-image: url("/assets/pcb.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-label {
  margin-left: 80px;

  background-color: white;
  color: black;

  border: black 1px solid;
}

.hero-content-container {
  padding: 8px 16px;
}

.hero-title {
  font-size: 72px;
}

.hero-subtitle {
  font-size: 32px;
}

.hero-decore-bar {
  height: 10px;
  background-color: var(--green);
}

/* Sections */
section{
  padding: 40px var(--section-hor-padding);
}

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

.section-header{
  margin-bottom: 30px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-image img {
  width: 100%;
}

/* Projects Section */
.projects {
  background-color: #f5f5f5;
  overflow: hidden;
}

.project-caruselle{
  display: flex;
  justify-content: center;

  margin-top: 10px;
  margin-bottom: 30px;

  gap: 20px;

  position: relative;
  width: 100vw;
  left: calc(var(--section-hor-padding) * -1);

  overflow: hidden;
}

.featured-project-card{
  width: 400px;
  height: 300px;

  flex-grow: 0;
  flex-shrink: 0;

  position: relative;
  overflow: hidden;

  display: flex;
  justify-content: end;
  flex-direction: column;

  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;

  border: var(--black) 1px solid;
}

.featured-project-card > div{
  z-index: 10;
  padding-left: 15px;
  padding-right: 15px;
  background-color: var(--background-color);
}

.project-short-info{
  padding-top: 20px;
  padding-bottom: 20px;

  gap: 5px;

  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.project-short-info .date{
  white-space: nowrap;
}

.project-extended-description{
  padding-top: 0px;
  padding-bottom: 0px;
  height: 0%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: all 0.5s ease;
}

.featured-project-card:hover .project-extended-description{
  height: 100%;
  padding-bottom: 20px;
}

.ongoing-label{
  color: var(--accent-dark);
}

.scroll-control{
  display: flex;
  justify-content: center;
  gap:5px;
}

/* Competitions Section */
.competition-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
}

.unibots-logo img {
  width: 100%;
  max-width: 300px;
}

.competitions h2 {
  margin-bottom: 48px;
}

/* Sponsors Section */
.sponsors {
  padding: 80px 32px;
  background-color: #f5f5f5;
}

.sponsor-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.sponsor-item img {
  width: 100%;
  max-width: 150px;
  margin-bottom: 16px;
}

.sponsors h2 {
  margin-bottom: 48px;
}

/* CTA Section */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 32px;
  margin-top: 32px;
}

.cta-card {
  position: relative;

  text-align: center;
  text-decoration: none;
  color: var(--text-color);

  overflow: hidden;

  padding: 0;

  border: var(--black) 1px solid;

  transition: transform 0.3s ease;
}

.cta-background{
  position: absolute;
  top: 0px;
  left: 0px;

  height: 100%;
  width: 100%;
}
.cta-background > *{
  position: absolute;
  z-index: 0;
}

.cta-card.join {
  aspect-ratio: 1046/465;
  background-color: var(--blue);
}

.cta-card.sponsor {
  aspect-ratio: 1046/465;
  background-color: var(--green);
}

.cta-card.contact {
  aspect-ratio: 1571/303;
  grid-column: 1 / -1;
  background-color: var(--red);
}

.cta-card:hover {
  transform: translateY(-5px);
}

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  z-index: 15;

  position: relative;
  
  width: 100%;
  height: 100%;
}

.cta-card h3 {
  color: white;
  font-size: 24px;
  margin-top: 8px;
}

.robot-arm-left{
  bottom: -7px; 
  left: 0px; 
  height: 95%;

  transition: translate 0.2s ease;
}

.robot-arm-right{
  bottom: -25%;
  left: 50%;
  height: 80%;
  transform: scaleX(-1);

  transition: translate 0.3s ease;
}

.cta-card:hover .robot-arm-left{
  translate: 0px -30px;
}

.cta-card:hover .robot-arm-right{
  translate: 0px -30px;
}

/* Desktop/Tablet Responsive Styles for larger images */
@media (min-width: 769px) {
  .about-image img.borded,
  .competition-content .about-image img.borded {
    min-height: 300px;
    object-fit: cover;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Make hero section more mobile-friendly */
  .hero-label {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 24px;
  }
  
  /* Make about section stack vertically on mobile */
  .about-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Make bordered images larger on mobile */
  .about-image img.borded,
  .competition-content .about-image img.borded {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 280px;
    object-fit: cover;
    border-radius: 12px;
  }
  
  /* Make competition section stack vertically */
  .competition-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Ensure images in competition section are prominent */
  .competition-content .about-image {
    order: -1; /* Move image to top on mobile */
  }
  
  /* Make sponsor grid more mobile-friendly */
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  /* Even smaller screens - make images even more prominent */
  .about-image img.borded,
  .competition-content .about-image img.borded {
    min-height: 200px;
    border-radius: 12px;
  }
  
  /* Single column for sponsors on very small screens */
  .sponsor-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Reduce section padding on small screens */
  section {
    padding: 24px 16px;
  }
}