/* ===== Base Styles ===== */
:root {
  --primary-color: #95C11E;
  --secondary-color: #000;
  --text-color: #fff;
  --accent-color: #96c11e3c;
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Gilroy', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  color: var(--text-color);
}

html, body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--text-color);
  color: var(--primary-color);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ===== Cursor Effects ===== */
#cursor {
  height: 20px;
  width: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: fixed;
  z-index: 99;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

#cursor-blur {
  height: 350px;
  width: 350px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  filter: blur(50px);
  z-index: 9;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ===== Header/Navigation ===== */
#nav {
  height: 145px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 150px;
  gap: 50px;
  position: fixed;
  justify-content: flex-start;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

#nav.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  height: 100px;
}

#nav img {
  height: 35px;
  transition: transform 0.3s ease;
}

#nav img:hover {
  transform: scale(1.1);
}

#nav ul {
  display: flex;
  list-style: none;
  gap: 50px;
}

#nav a {
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

#nav a:hover {
  color: var(--primary-color);
}

#nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

#nav a:hover::after {
  width: 100%;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Video Background ===== */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Main Content ===== */
#main {
  position: relative;
  background-color: rgba(0, 0, 0, 0.6);
}

/* ===== Hero Section ===== */
#page1 {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  z-index: 10;
  padding: 0 20px;
}

#page1 h1 {
  font-size: clamp(3rem, 10vw, 8.75rem);
  font-weight: 900;
  position: relative;
  line-height: 1;
  margin-bottom: 1rem;
}

#page1 h1::before {
  content: "CricketHub";
  position: absolute;
  color: transparent;
  top: -6px;
  left: -6px;
  -webkit-text-stroke: 2px var(--primary-color);
  z-index: -1;
}

#page1 h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 10px 0 20px;
}

#page1 p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
  max-width: 800px;
  line-height: 1.6;
  margin: 0 auto;
}

#page1 #arrow {
  height: 90px;
  width: 90px;
  background-color: transparent;
  position: absolute;
  display: flex;
  align-items: center;
  left: 5%;
  bottom: 10%;
  justify-content: center;
  border-radius: 50%;
  border: 5px solid var(--text-color);
  transition: all 0.5s ease;
  cursor: pointer;
}

#page1 #arrow i {
  font-size: 50px;
  font-weight: 800;
  transition: transform 0.3s ease;
}

#page1 #arrow:hover {
  transform: scale(0.9);
  background-color: var(--primary-color);
}

#page1 #arrow:hover i {
  transform: translateY(5px);
}

/* ===== Scroller Section ===== */
#scroller {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  z-index: 10;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

#scroller::-webkit-scrollbar {
  display: none;
}

#scroller1 {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
}

#scroller h4 {
  display: inline-block;
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 900;
  font-family: var(--font-secondary);
  margin-right: 10px;
  transition: all 0.5s linear;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary-color);
  padding: 0 10px;
}

#scroller h4:hover {
  color: var(--primary-color);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ===== About Us Section ===== */
#about-us {
  min-height: 60vh;
  width: 100%;
  display: flex;
  padding: 0 50px;
  align-items: center;
  justify-content: space-around;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 4rem 0;
}

#about-us img {
  height: 220px;
  width: 220px;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#about-us img:hover {
  transform: scale(1.05);
}

#about-us2 {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

#about-us2 h3 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
}

#about-us2 p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.learn-more {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.learn-more:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ===== Cards Section ===== */
#cards-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  padding: 2rem;
}

.card {
  height: 400px;
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: all 0.8s ease;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: rotate3d(-1, 0.5, 0.2, 20deg);
  box-shadow: 0 15px 40px rgba(149, 193, 30, 0.4);
}

.overlay {
  height: 100%;
  width: 100%;
  background-color: rgba(149, 193, 30, 0.9);
  padding: 30px;
  padding-top: 90px;
  opacity: 0;
  transition: all 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card:hover .overlay {
  opacity: 1;
}

.overlay h4 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 800;
}

.overlay p {
  color: var(--secondary-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.overlay a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
}

.overlay a:hover {
  transform: translateX(10px);
}

/* ===== Newsletter Section ===== */
#green-div {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to left bottom, yellow, green);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

#green-div img {
  position: absolute;
  height: 100%;
  object-fit: cover;
  width: 20%;
  z-index: 1;
}

#green-div img:first-child {
  left: 0;
}

#green-div img:last-child {
  right: 0;
}

#green-div div {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

#green-div h3 {
  color: var(--secondary-color);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 900;
}

#green-div p {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

#newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

#newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
}

#newsletter-form button {
  padding: 12px 25px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

#newsletter-form button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ===== Testimonial Section ===== */
#page3 {
  min-height: 100vh;
  width: 100%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4rem 2rem;
}

#page3 blockquote {
  max-width: 800px;
  text-align: center;
}

#page3 p {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 1rem;
}

#page3 cite {
  font-style: normal;
  color: var(--primary-color);
  font-size: 1.5rem;
}

#page3 img {
  height: 60px;
  position: absolute;
  opacity: 0.7;
}

#page3 #colon1 {
  left: 10%;
  top: 20%;
}

#page3 #colon2 {
  right: 10%;
  bottom: 20%;
}

/* ===== Call to Action Section ===== */
#page4 {
  min-height: 50vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

#page4>h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  position: absolute;
  top: 5%;
  font-weight: 900;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--text-color);
  text-align: center;
  width: 100%;
}

.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 5rem;
}

.elem {
  height: 300px;
  width: 100%;
  max-width: 350px;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.elem:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(149, 193, 30, 0.4);
}

.elem h2 {
  height: 100%;
  width: 100%;
  background: linear-gradient(to left bottom, yellow, green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--secondary-color);
  font-weight: 800;
  position: absolute;
  z-index: 10;
  transition: all 0.5s ease;
}

.elem img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  transform: scale(1.1);
}

.elem:hover h2 {
  color: var(--text-color);
  background: transparent;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.elem:hover img {
  transform: scale(1);
}

.cta-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  border-radius: 30px;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 11;
}

.elem:hover .cta-button {
  opacity: 1;
  bottom: 30px;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* ===== Footer ===== */
#footer {
  min-height: 40vh;
  width: 100%;
  background: linear-gradient(to left bottom, var(--primary-color), green, yellow);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

#footer>img {
  position: absolute;
  left: 0;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 2;
}

#f1, #f2, #f3, #f4 {
  width: 100%;
  max-width: 250px;
}

#f1 img {
  height: 100px;
  margin-bottom: 1rem;
}

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

.social-links a {
  color: var(--secondary-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--text-color);
  transform: translateY(-5px);
}

#f2 h3, #f3 h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: 900;
  margin-bottom: 1rem;
}

#f2 ul, #f3 ul, #f4 address {
  list-style: none;
}

#f2 a, #f3 a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

#f2 a:hover, #f3 a:hover {
  color: var(--text-color);
  transform: translateX(5px);
}

#f4 h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: 900;
  margin-bottom: 1rem;
}

#f4 address {
  font-style: normal;
  color: var(--secondary-color);
  line-height: 1.6;
}

#f4 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-top: 0.5rem;
}

#f4 a:hover {
  color: var(--text-color);
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.copyright p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.legal-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.legal-links a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
  #nav {
    padding: 0 50px;
  }
  
  #about-us {
    flex-direction: column;
    text-align: center;
  }
  
  #about-us img {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  #nav {
    padding: 0 20px;
    height: 100px;
    justify-content: space-between;
  }
  
  #nav ul {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
  }
  
  #nav ul.active {
    display: flex;
  }
  
  #menu-toggle {
    display: block;
  }
  
  #page1 #arrow {
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
  }
  
  #green-div {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  #green-div img {
    position: relative;
    width: 100px;
    height: auto;
  }
  
  #green-div h4 {
    width: 100%;
  }
  
  .cta-container {
    flex-direction: column;
  }
  
  .elem {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  #page1 h1 {
    font-size: 4rem;
  }
  
  #scroller h4 {
    font-size: 2.5rem;
  }
  
  #about-us img {
    width: 150px;
    height: 150px;
  }
  
  .card {
    width: 100%;
    max-width: 300px;
  }
  
  #newsletter-form {
    flex-direction: column;
  }
  
  #newsletter-form button {
    width: 100%;
  }
}