/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Albert Sans", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Loading state - hide body initially until hero image loads */
body.loading {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

/* h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Albert Sans", sans-serif;
  margin-bottom: 1rem;
} */

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  margin-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: -1;
}

.hero-background.with-transition {
  transition: opacity 1.5s ease-in-out;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}

.hero-background.fade-out {
  opacity: 0;
}

.hero-background.fade-in {
  opacity: 1;
}

.hero-background.loading {
  filter: blur(10px);
}

.hero-background.loaded {
  filter: blur(0);
}

.hero-content {
  padding: 0 20px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
}

/* Only animate hero content when body is loaded */
body.loaded .hero-content {
  animation: fadeInUp 1s ease forwards 0.3s;
}

.hero h1 {
  font-size: 12rem;
  margin-bottom: 1rem;
  line-height: 0.9;
  font-family: "Kurdis Extra Condensed SemiBold", sans-serif;
  opacity: 0.9;
  text-transform: uppercase;
}

.hero h1 .energy-word {
  font-family: "Kurdis Condensed Black", sans-serif;
  text-transform: uppercase;
}

.hero h1 .art-word {
  font-family: "Kurdis Condensed Black", sans-serif;
  text-transform: uppercase;
}

.hero h1 .highlight-word {
  font-family: "Kurdis Condensed Black", sans-serif;
  color: #e0eb75;
  opacity: 0.8;
  text-transform: uppercase;
  /* font-style: italic; */
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

/* Only animate hero buttons when body is loaded */
body.loaded .hero-buttons {
  animation: fadeInUp 1s ease forwards 0.5s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 300px;
}

.btn-outline {
  color: white;
  border: 2px solid white;
  background-color: transparent;
}

.btn-filled {
  background-color: white;
  color: black;
  border: 2px solid white;
}

/* Remove hover effects */
.btn-outline:hover,
.btn-filled:hover {
  transform: none;
}

/* Featured Galleries */
.featured-galleries {
  padding: 4rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 auto;
  max-width: 1200px;
}

/* Add styles for scroll sentinel to prevent it from creating extra space */
.scroll-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  grid-column: 1 / -1; /* Make it span full width */
  visibility: hidden; /* Hide it visually */
}

/* Footer */
footer {
  background-color: #000;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
  color: #ddd;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1366px) {
  .hero h1 {
    font-size: 8rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
  }

  .hero h1 {
    font-size: 6rem;
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 90%;
    padding: 0.6rem 1rem;
  }

  .hero-content {
    margin-top: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 2rem;
  }

  /* Remove hover effect on pagination buttons for mobile */
  .pagination-btn:not(:disabled):hover {
    background-color: #f5f5f5;
    transform: none;
  }

  .gallery-card {
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .gallery-card.fade-in {
    transform: translateY(0);
  }

  .gallery-image {
    height: 300px;
  }

  .gallery-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.7) 100%
    );
  }

  .btn-view-gallery {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
  }

  /* Hide pagination on mobile */
  .pagination {
    display: none;
  }

  /* Improve search experience on mobile */
  .search-input {
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 12px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .search-container {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 4rem;
  }
}

/* Galleries Section */
.galleries {
  padding: 0;
  background-color: #fff;
}

.galleries .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.galleries h2 {
  font-size: 6rem;
  margin: 0 0 40px 0;
  letter-spacing: 1px;
  line-height: 0.8;
}

.galleries-description {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.athlete-search-link {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.athlete-search-link::after {
  content: "↗";
  margin-left: 4px;
}

.search-container {
  margin-bottom: 48px;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #000;
}

.gallery-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.gallery-card.fade-in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Stagger delays - shorter for quicker appearance */
.gallery-card:nth-child(1) {
  transition-delay: 0s;
}
.gallery-card:nth-child(2) {
  transition-delay: 0.1s;
}
.gallery-card:nth-child(3) {
  transition-delay: 0.2s;
}
.gallery-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* Additional delays for subsequent cards - shorter delays */
.gallery-card:nth-child(5) {
  transition-delay: 0.1s;
}
.gallery-card:nth-child(6) {
  transition-delay: 0.2s;
}
.gallery-card:nth-child(7) {
  transition-delay: 0.3s;
}
.gallery-card:nth-child(8) {
  transition-delay: 0.4s;
}

.gallery-image {
  position: relative;
  width: 100%;
  height: 250px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  color: white;
}

.gallery-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  text-align: left;
}

.gallery-overlay p {
  font-size: 1.25rem;
  margin: 0;
  opacity: 0.9;
  text-align: left;
}

.btn-view-gallery {
  display: inline-block;
  padding: 7px 21px;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.3s ease;
  align-self: flex-start;
  width: 200px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 40px;
  margin-bottom: 40px;
}

.pagination-btn {
  padding: 12px 24px;
  background-color: transparent;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 150px;
  text-align: center;
}

.pagination-btn:disabled {
  background-color: #f5f5f5;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
  border-width: 2px;
}

.pagination-btn:not(:disabled):hover {
  background-color: #000;
  color: white;
}

.page-info {
  font-size: 16px;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .galleries {
    padding: 0;
  }

  .galleries h2 {
    font-size: 3.5rem;
    margin: 0 0 40px 0;
  }

  .gallery-image {
    height: 275px;
  }

  .gallery-content {
    padding: 1.25rem;
  }

  .gallery-title {
    font-size: 1.3rem;
  }

  .btn-view-gallery {
    padding: 7px 21px;
    width: 100%;
  }

  .pagination {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .pagination-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .gallery-card {
    transform: translateY(30px);
    transition-duration: 0.4s;
  }
}

@font-face {
  font-family: "Integral CF";
  src: url("path/to/IntegralCF-Regular.woff2") format("woff2");
}

/* Instagram Button Styles */
.nav-instagram-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white !important;
  padding: 8px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-instagram-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  /* border: 2px solid white; */
  color: white;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-menu-button.book-button {
  background: #007aff;
  /* border: 2px solid #007aff; */
}

.mobile-menu-button.book-button:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.mobile-menu-button.instagram-button {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white !important;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-button.instagram-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.mobile-menu-button.instagram-button:hover {
  opacity: 0.9;
}

.social-link {
  color: white !important;
  position: relative;
  display: inline-block;
  padding: 2px 0;
}

.social-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.social-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .nav-links .nav-instagram-button {
    display: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Add this before the @media query */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

/* Remove conflicting styles */

/* Loading Indicator */
.loading-indicator {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
  color: #666;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Gallery Card Badge */
.gallery-image {
  position: relative; /* Needed for absolute positioning of the badge */
}

.free-badge {
  position: absolute;
  top: 16px; /* Increased spacing */
  right: 16px; /* Increased spacing */
  background-color: #007bff; /* Blue background */
  color: white;
  padding: 4px 16px; /* Slightly increased padding */
  border-radius: 8px;
  font-size: 1.1em; /* Increased font size */
  /* font-weight: bold; */
  z-index: 2; /* Ensure it's above the image */
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); */
}

.mobile-linebreak {
  display: none;
}
@media (max-width: 768px) {
  .mobile-linebreak {
    display: inline;
  }
}

/* Styles for Split Gallery Buttons */
.split-gallery-actions {
  display: flex; /* Lay out buttons side-by-side */
  justify-content: space-between; /* Push buttons to edges */
  gap: 10px; /* Add space between buttons */
  width: 100%; /* Ensure container takes full width */
}

.split-part-btn {
  flex: 1; /* Make each button take equal space */
  text-align: center; /* Center text inside button */
  /* Inherit padding/border-radius etc from .btn-view-gallery */
  /* No specific width needed due to flex: 1 */
  min-width: max-content; /* Ensure buttons don't shrink too small */
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.stats .container {
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  transition: left 0.6s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:nth-child(1).animate {
  transition-delay: 0.1s;
}

.stat-card:nth-child(2).animate {
  transition-delay: 0.2s;
}

.stat-card:nth-child(3).animate {
  transition-delay: 0.3s;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333333;
  font-family: "Albert Sans", sans-serif;
  line-height: 1;
  transition: transform 0.4s ease-out;
}

.stat-number.with-plus {
  transform: translateX(-0.3em);
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Albert Sans", sans-serif;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .stats {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .stat-card {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .stat-label {
    font-size: 1.2rem;
  }
}

/* Plus symbol bounce animation */
.stat-plus {
  display: inline-block;
  opacity: 0;
  animation: fadeInPlus 0.8s ease-out forwards;
  position: absolute;
  margin-left: 0.1em;
}

@keyframes fadeInPlus {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
