/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and Background */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('assets/k6.jpeg') no-repeat center center fixed; 
  background-size: 100% 240%;
  color: #fff;
  line-height: 1.6;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  font-weight: bold;
}

/* Style for the Software Sponsors heading */
.section-heading {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 48px;
  font-weight: bold;
  color: #f1f1f1;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

/* Sponsor Section */
#sponsors {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 6rem 2rem;
  height: calc(100vh - 60px);
  transition: all 0.3s ease;
}

.sponsor-container {
  display: flex;
  gap: 30px;
  padding-top: 18vh;
  
}

/* Sponsor Card Container (for 3D flip effect) */
.sponsor-card {
  position: relative;
  width: 280px;
  height: 330px;
  perspective: 800px;
  border: 2px solid #f4eeee;
  border-radius: 20px;
}

/* Sponsor Card - Front and Back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s ease;
}

.card-front {
  background-color: rgba(0, 0, 0, 0.323);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.sponsor-img {
  width: 180px;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 100px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.sponsor-name {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.sponsor-card a {
  text-decoration: none !important;
}

.card-back {
  background-color: #333;
  color: #fff;
  transform: rotateY(180deg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.description {
  font-size: 16px;
  margin-bottom: 20px;
}

.visit-btn {
  background-color: #151413;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.visit-btn:hover {
  background-color: #000000;
}

.sponsor-card:hover .card-front {
  transform: rotateY(180deg);
}

.sponsor-card:hover .card-back {
  transform: rotateY(0deg);
}

#container3D {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

/* Background Gradient Animation */
@keyframes gradientBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* Phone */
@media (max-width: 480px) {

  body {
    background: url('assets/chu.jpg') no-repeat center center fixed;
    background-size: cover; /* Ensures the background covers the screen properly */
    background-attachment: fixed; /* Prevents background movement */
    background-position: center center; /* Centered background */
    color: #fff;
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden; /* Removes horizontal scroll */
    font-weight: bold;
  }



  html, body {
    width: 100%; /* Prevents content overflow */
    max-width: 100%; /* Ensures no horizontal scrolling */
    overflow-x: hidden; /* Strictly disables horizontal scroll */
  }

  /* Style for the Software Sponsors heading */
  .section-heading {
    font-size: 7vw;
    margin-bottom: 20px; /* Reduced margin for smaller screens */
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
  }

  /* Sponsor Section */
  #sponsors {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    margin-top: 20vw;
    padding: 4vw;
    height: auto; /* Allows flexibility for dynamic content */
    transition: all 0.3s ease;
  }

  .sponsor-container {
    display: grid;
    gap: 5vw;
    padding-top: 10vh; /* Adjusted for better alignment */
  }

  /* Sponsor Card Container (for 3D flip effect) */
  .sponsor-card {
    position: relative;
    width: 70vw; /* Adjusted width for smaller devices */
    height: 80vw; /* Proportional height */
    border: 0.5vw solid #f4eeee;
    border-radius: 15px; /* Slightly reduced border radius */
    overflow: hidden; /* Ensures no content spills outside */
    margin-bottom: 8vw;
  }

  /* Sponsor Card - Front and Back */
  .card-front,
  .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease;
  }

  .card-front {
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }

  .sponsor-img {
    width: 60%;
    height: 60%;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
  }

  .sponsor-name {
    font-size: 5vw;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }

  .sponsor-card a {
    text-decoration: none !important;
  }

  .card-back {
    background-color: #333;
    color: #fff;
    transform: rotateY(180deg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .description {
    font-size: 4vw;
    margin-bottom: 10px;
  }

  .visit-btn {
    background-color: #151413;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 4vw;
    transition: background-color 0.3s ease;
  }

  .visit-btn:hover {
    background-color: #000000;
  }

  .sponsor-card:hover .card-front {
    transform: rotateY(180deg);
  }

  .sponsor-card:hover .card-back {
    transform: rotateY(0deg);
  }
}


/* Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
  /* General Body and HTML Styles */
  html, body {
    height: 100%; /* Full height of the viewport */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack content vertically */
  }

  body {
    background: url('assets/tabvhu.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    color: #fff;
    line-height: 1.6;
    font-weight: bold;
    overflow-x: hidden;
  }

  /* Main Content (Sponsors Section) */
  #sponsors {
    flex: 1; /* Allow this section to grow and push the footer down */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 4vw;
    width: 100%;
    box-sizing: border-box; /* Include padding in dimensions */
    margin-top: 15vw;
  }

  .sponsor-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
    width: 90%;
    margin: 0 auto;
    margin-top: -13vw;
    padding-bottom: 5vw;
  }

  .sponsor-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 0.5vw solid #f4eeee;
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card-front,
  .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease;
  }

  .card-front {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
  }

  .sponsor-img {
    width: 60%;
    height: 60%;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
  }

  .sponsor-name {
    font-size: 5vw;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }

  .card-back {
    background-color: #333;
    color: #fff;
    transform: rotateY(180deg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .description {
    font-size: 4vw;
    margin-bottom: 10px;
  }

  .visit-btn {
    background-color: #151413;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 4vw;
    transition: background-color 0.3s ease;
  }

  .visit-btn:hover {
    background-color: #000000;
  }

  .sponsor-card:hover .card-front {
    transform: rotateY(180deg);
  }

  .sponsor-card:hover .card-back {
    transform: rotateY(0deg);
  }

  /* Footer Styling */
  footer {
    background-color: #151413;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 4vw;
    margin-top: auto; /* Push the footer to the bottom of the page */
    width: 100%; /* Ensure it spans the full width */
  }
}




