/* General Styles */
section {
  padding: 4rem 0;
  font-family: sans-serif;
}

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

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Background Video */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Content overlay */
.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 40px;
  max-width: 450px;

  backdrop-filter: blur(2px); /* optional glass effect */
}

.hero-content h1 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 14px;
  line-height: 1.5;
  color: #e4e4e4;
  margin-bottom: 25px;
}

.hero-links {
  display: flex;
  gap: 20px;
}

.hero-links a {
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  padding-bottom: 5px;
}

.hero-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hero-links a:hover::after {
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-video {
    object-position: 30% 70%;
  }
  .hero-section {
    min-height: 80vh;
    justify-content: left;
    align-items: flex-end;
  }
  .hero-content {
    max-width: 90%;
    text-align: left;
  }
  .hero-links {
    justify-content: left;
  }
}

.about-section {
  padding: 60px 20px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  align-items: flex-start;
}

/* Left Column (Title) */
.about-title h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.underline {
  margin-top: 8px;
  width: 60px;
  height: 2px;
  background: #ffffff;
}

/* Right Column (Content) */
.about-content p {
  margin-bottom: 20px;
  font-size: 15px;
  color: #ffffff;
}

.about-content strong {
  font-weight: 600;
}

.change-text {
  margin-top: 30px;
  font-size: 14px;
}

.change-text strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-top: 5px;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-title h2 {
    font-size: 16px;
  }

  .about-content p {
    font-size: 14px;
  }

  .change-text strong {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 40px 15px;
  }

  .about-title h2 {
    font-size: 15px;
  }

  .about-content p {
    font-size: 13px;
  }

  .change-text strong {
    font-size: 16px;
  }
}

/* Section container */
.world-section {
  padding: 60px 20px;
  margin: auto;
  background-color: #fff;
}

/* Title */
.world-title h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #000;
}

.world-section .underline {
  margin-top: 8px;
  width: 60px;
  height: 2px;
  background: #111;
}

/* Grid layout */
.world-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; /* base height */
  gap: 15px;
}

/* Make <a> fill the whole card */
.world-card a {
  position: absolute;
  inset: 0; /* top:0, right:0, bottom:0, left:0 */
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  z-index: 1; /* keeps text above overlay */
}

/* Remove padding from .world-card (moved inside <a>) */
.world-card {
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.world-card span {
  z-index: 2;
  position: relative;
}

.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.world-card:hover {
  transform: scale(1.03);
}

.world-card:hover::after {
  background: rgba(0,0,0,0.5);
}

/* === Different Card Sizes === */
.card-tall {
  grid-row: span 2; /* double height */
}

.card-wide {
  grid-column: span 2; /* double width */
}

a{
  text-decoration: none;
  color: #fff;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .world-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .world-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px; /* smaller base height */
  }

  /* Keep playful mosaic */
  .card-wide {
    grid-column: span 2; /* allow wide cards still */
  }

  .card-tall {
    grid-row: span 2; /* allow tall cards still */
  }
}

@media (max-width: 480px) {
  .world-grid {
    grid-template-columns: repeat(2, 1fr); /* still 2 columns */
    grid-auto-rows: 160px;
    gap: 10px;
  }

  .world-card {
    font-size: 12px;
  }

  .card-wide {
    grid-column: span 2; /* wide ones take full row */
  }

  .card-tall {
    grid-row: span 2; /* tall ones stay playful */
  }
}
