@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Oxanium:wght@400;600;700&display=swap');

:root {
  --primary: #0c30ce;
  --secondary: #008cff;
  --accent: #008cff;
  --dark: #0A0A23;
  --light: #FFFFFF;
}

/* --- Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark);
  color: var(--light);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.homepage {
  background-color: var(--dark);
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-family: 'Oxanium', cursive;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-family: 'Oxanium', cursive;
  font-weight: 700;
}

h3,
h4 {
  font-family: 'Oxanium', cursive;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero Section & Backgrounds --- */
.ph-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.ph-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ph-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out, transform 15s linear;
  transform: scale(1.15);
  background-size: cover;
  background-position: center;
  will-change: opacity, transform;
}

.ph-bg-slide.ph-active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
}

.ph-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*filter: brightness(0.7);*/
}

.ph-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 50%, rgba(10, 10, 35, 0.95) 0%, rgba(10, 10, 35, 0.4) 50%, rgba(10, 10, 35, 0.98) 100%),
    linear-gradient(0deg, #0A0A23 0%, transparent 40%);
  z-index: 3;
  pointer-events: none;
}

.ph-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
  background-size: 100% 4px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.3;
}

/* Overriding specific background none as per your snippet */
.ph-hero-section::before {
  background: none !important;
}

/* --- Content Wrapper & Text --- */
.ph-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.ph-main-text-area {
  max-width: 900px;
  perspective: 1000px;
}

.ph-slide-marker {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #ffaa00;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 25px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: 'Oxanium', cursive;
  opacity: 0;
}

.ph-slide-marker::before {
  content: "";
  width: 40px;
  height: 2px;
  background: #ffaa00;
}

.ph-main-text-area h1 {
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 15px;
  background: linear-gradient(to bottom, #fff 40%, #008cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 140, 255, 0.5);
  letter-spacing: -1px;
  opacity: 0;
}

.ph-subtitle-text {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #008cff;
  margin-bottom: 30px;
  display: block;
  font-family: 'Oxanium', cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
}

.ph-main-text-area p {
  color: #ddd;
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 50px;
  max-width: 650px;
  border-left: 3px solid var(--primary);
  padding-left: 30px;
  opacity: 0;
}

/* --- Action Buttons --- */
.ph-action-btn {
  position: relative;
  padding: 12px 32px;
  width: fit-content;
  background: linear-gradient(45deg, #0c30ce, #008cff);
  color: #fff;
  border: none;
  font-family: 'Oxanium', cursive;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 140, 255, 0.3);
  opacity: 0;
  text-decoration: none;
}

.ph-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 110, 255, 0.4);
  color: #fff;
}

.btn {
  border-radius: 50px;
  padding: 15px 30px;
  border: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
  font-family: 'Oxanium', cursive;
}

.btn-login {
  background: transparent;
  color: var(--light);
  border-color: var(--secondary);
}

.view-all-container {
  text-align: center;
  margin-top: 50px;
}

/* --- Interface Area & Thumbnails --- */
.ph-interface-area {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.ph-thumbs-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.ph-thumb-card {
  height: 160px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid rgba(0, 140, 255, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ph-thumb-card img,
.ph-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.8s ease, opacity 0.8s ease;
  filter: saturate(0.5);
}

.ph-thumb-info {
  position: absolute;
  inset: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(10, 10, 35, 0.95) 0%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 4;
}

.ph-thumb-info span {
  font-size: 0.7rem;
  font-weight: 800;
  color: #008cff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.ph-thumb-info h4 {
  font-size: 0.95rem;
  font-family: 'Oxanium', cursive;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.ph-thumb-card:hover,
.ph-thumb-card.ph-active-thumb {
  border-color: #008cff;
  box-shadow: 0 10px 30px rgba(0, 140, 255, 0.3);
}

.ph-thumb-card.ph-active-thumb img,
.ph-thumb-card:hover img {
  opacity: 0.9;
  filter: saturate(1);
  transform: scale(1.1);
}

/* Specific styling for video thumbnails from snippet */
.ph-active-thumb {
  border-color: #ff0055;
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 0, 85, 0.3);
}

/* Play Icon Overlay */
.ph-thumb-card::before {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  z-index: 5;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ph-thumb-card:hover::before,
.ph-thumb-card.ph-active-thumb::before {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Carousel Controls --- */
.ph-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 35px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  border-radius: 50px;
  border: 1px solid rgba(0, 140, 255, 0.2);
}

.ph-nav-arrows {
  display: flex;
  gap: 15px;
}

.ph-arrow-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ph-arrow-btn:hover {
  background: #008cff;
  border-color: #008cff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.3);
}

.ph-progress-container {
  flex-grow: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 40px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.ph-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0c30ce, #008cff);
  box-shadow: 0 0 15px #008cff;
  transition: width 0.1s linear;
}

.ph-slide-counter {
  font-family: 'Oxanium', cursive;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

#current-slide-num {
  font-size: 2rem;
  font-weight: 800;
  color: #008cff;
  line-height: 1;
}

.ph-total-num {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Animations --- */
.ph-stagger-animation {
  animation: phCinematicIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes phCinematicIn {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(-50px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0);
  }
}

/* --- Stats Section --- */
.stats-section {
  padding: 50px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(12, 48, 206, 0.1) 0%, transparent 70%);
}

.section-title-stat {
  color: #fff;
  text-align: center;
  margin: 50px 0;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title {
  color: #fff;
  text-align: center;
  margin: 50px 0 80px;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title-stat::after,
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 25%;
  width: 50%;
  height: 4px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.stats-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.stat-card-home {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 140, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-icon-home {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--secondary), var(--light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* --- Tournaments --- */
.tournaments {
  padding: 40px 0
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 30px;
}

.tournament-card {
  background: linear-gradient(145deg, #13132E, #0D0D21);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 229, 255, 0.2);
  position: relative;
}

.card-header {
  padding: 25px;
  background: linear-gradient(90deg, var(--primary), #504EA0);
  text-align: center;
  color: #ccc;
}

.prize {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
  font-family: 'Oxanium', cursive;
}

/* --- How It Works --- */
.how-it-works {
  padding: 20px 0 50px;
  background: linear-gradient(to bottom, #0A0A23, #0F0F2D);
  position: relative;
  overflow: hidden;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
  justify-items: center;
}

.step {
  text-align: center;
  width: 100%;
  max-width: 300px;
  position: relative;
  padding: 20px;
  transition: transform 0.3s ease;
}

.step-number {
  position: absolute;
  top: 10px;
  left: 60%;
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--light);
  border: 2px solid var(--secondary);
  z-index: 5;
  font-size: 0.9rem;
}

.step-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #13132E, #0D0D21);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.2rem;
  color: var(--secondary);
  border: 2px solid rgba(0, 140, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--secondary);
  font-family: 'Oxanium', cursive;
}

.step p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
  background: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover fixed;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 35, 0.9);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

.testimonial-card {
  background: linear-gradient(145deg, #13132E, #0D0D21);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  position: relative;
}

/* --- CTA Section --- */
.cta {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(45deg, #13132E, #0D0D21);
  position: relative;
}

.cta h2 {
  font-size: 3rem;
  background: linear-gradient(45deg, var(--secondary), var(--light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1200px) {
  .ph-thumbs-track {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
  }

  .ph-thumb-card {
    width: 100%;
    max-width: 400px;
    height: 220px;
    flex: none;
  }
}

@media (max-width: 1100px) {
  .ph-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding-top: 40px;
  }

  .ph-main-text-area {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ph-main-text-area p {
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-left: 0;
    padding-top: 20px;
    margin: 0 auto 30px;
  }

  .ph-hero-section {
    height: auto;
    padding: 120px 0;
  }

  .ph-slide-marker {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .ph-thumb-card {
    max-width: 90% !important;
    height: 180px;
  }

  .ph-carousel-controls {
    width: 90%;
    margin: 20px auto;
  }

  .ph-progress-container {
    display: none;
  }

  .ph-main-text-area h1 {
    font-size: 2.5rem;
  }

  .ph-action-btn {
    width: 90%;
  }

  .section-title {
    font-size: 2rem;
  }
}