/* Global Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 1rem;
}

/* Layout Grids */
.row,
.row-inverse {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.row-inverse {
  flex-direction: row-reverse;
}
.col {
  flex: 1;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sections fade-in on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sub-zone,
.individual-page,
h1,
h2 {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}
.sub-zone:nth-child(odd),
h1,
h2 {
  animation-delay: 0.2s;
}
.sub-zone:nth-child(even) {
  animation-delay: 0.4s;
}

/* Interactive Hover Cards */
.square {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.square:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Smooth Scroll Anchor Links */
html {
  scroll-behavior: smooth;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.rank-card {
  padding: 1rem;
  position: relative;
}
.rank-card h2 {
  margin-bottom: 0.75rem;
}




/* Responsive Styles */
@media (max-width: 768px) {
  .row,
  .row-inverse {
    flex-direction: column;
  }
  .col {
    padding: 1rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  p {
    font-size: 0.9rem;
  }
}


@media only screen and (max-width: 600px) {

  .row,
  .row-inverse {
    display: flex;           
    flex-direction: column;  
    align-items: center;     
    gap: 1rem;             
  }


  .square {
    width: 90%;      
    max-width: 300px;
    margin-bottom: 1rem;
  }
}

