:root {
  --accent: #8b5cf6;
  --glass-bg: #ffffff08;
  --glass-border: #ffffff1a;
  --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --primary: #0ea5e9;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
}
body {
  background-color: #f8f9fa;
  color: #333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
img {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px; /* Placeholder size */
}
.background-section {
  contain: layout;
  contain-intrinsic-size: 100vh;
  width: 100%;
  height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-repeat: no-repeat;
  background-image: url("../img/back-mob.webp");
}
.background-section::before {
  will-change: transform;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
}
.particles-container {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}
.background-section .nyaz {
  -webkit-backdrop-filter: blur(5px); /* Retained for visual effect */
  backdrop-filter: blur(5px); /* Retained for visual effect */
  background-color: #0003;
  border: 1px solid #ffffff1a;
  border-radius: 5px;
  box-shadow: 0 5px 15px #0003;
  color: #fff;
  max-width: 700px;
  padding: 2rem;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
  will-change: transform; /* Ensuring compositing-friendly animations */
  z-index: 3;
}
.background-section .nyaz:hover {
  transform: translateY(-5px); /* Optimized hover animation */
  will-change: transform; /* Ensures compositing-friendly animation */
}
h2.reveal-text {
  animation: reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  position: relative;
  will-change: opacity, transform;
}
.cta-button {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  padding: 12px 30px;
  position: relative;
  transition: transform 0.3s ease;
  min-width: 140px;
  min-height: 45px;
  will-change: transform; /* Optimizing for transform animations */
}
.cta-button::after {
  background: linear-gradient(to right, #084678, #000);
  bottom: 0;
  content: "";
  height: 0;
  left: 0;
  position: absolute;
  transition: height 0.3s ease;
  width: 100%;
  z-index: -1;
}
.cta-button:hover {
  transform: scale(1.05); /* Composited scale transform */
}
.cta-button:hover::after {
  height: 100%;
  will-change: height; /* Ensures composited change */
}
.cta-container {
  animation: fadeIn 0.8s ease 0.8s forwards;
  opacity: 0;
}
@keyframes reveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
} /* Responsive Optimizations */
@media (min-width: 768px) {
  .background-section {
    background-image: url("../img/back.webp");
  }
  h2.reveal-text {
    font-size: 3rem;
  }
}
@media (max-width: 767px) {
  .background-section .nyaz {
    max-width: 100%;
    padding: 1.5rem;
  }
  h2.reveal-text {
    font-size: 2rem;
  }
  .nyaz p {
    font-size: 15px;
  }
  .cta-button {
    font-size: 0.9rem;
    padding: 10px 25px;
  }
}
@media (max-width: 350px) {
  .background-section .nyaz {
    max-width: 100%;
    padding: 1.5rem;
  }
  h2.reveal-text {
    font-size: 25px;
  }
  .nyaz p {
    font-size: 10px;
  }
  .cta-button {
    font-size: 0.9rem;
    padding: 10px 25px;
  }
}
.background-images {
  -webkit-mask-image: radial-gradient(
    circle at center,
    transparent 30%,
    black 70%
  );
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  inset: 0;
  mask-image: radial-gradient(circle at center, transparent 30%, black 70%);
  opacity: 0.15;
  padding: 1rem;
  position: absolute;
  z-index: 2;
}
.bg-image {
  animation: imageFloat 8s ease-in-out infinite, fadeIn 1s ease-out forwards;
  animation-delay: calc(var(--delay, 0) * 0.2s);
  border-radius: 16px;
  filter: grayscale(50%) brightness(0.7);
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.95);
  width: 100%;
  will-change: transform, opacity; /* Ensuring composited animations */
}
.content {
  background: linear-gradient(to top, #000000e6, #000000b3);
  bottom: -100%;
  color: #fff;
  left: 0;
  padding: 2rem;
  position: absolute;
  right: 0;
  transition: bottom 0.5s ease;
}
.content-container {
  -webkit-backdrop-filter: blur(12px);
  animation: containerFloat 6s ease-in-out infinite;
  backdrop-filter: blur(12px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px #0003 0 0 0 1px #ffffff0d;
  margin: 0 auto;
  max-width: min(90%, 1200px);
  padding: 3rem;
  position: relative;
  transform: translateZ(0);
  z-index: 3;
}
.description {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease 0.1s, opacity 0.5s ease 0.1s;
}
.grid-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1400px;
  padding: 20px;
}
.grid-item {
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}
.grid-item img {
  height: 100%;
  transition: transform 0.5s ease;
  width: 100%;
}
.grid-item:hover {
  transform: translateY(-10px);
}
.grid-item:hover .content {
  bottom: 0;
}
.grid-item:hover .title,
.grid-item:hover .description {
  opacity: 1;
  transform: translateX(0);
}
.grid-item:hover img {
  transform: scale(1.1);
}
.headline {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  text-align: center;
  transform: translateY(20px);
}
.headline span {
  animation: glowText 3s ease-in-out infinite;
  color: var(--primary);
  display: inline-block;
  position: relative;
  will-change: transform, opacity; /* Only composited properties */
}
@keyframes glowText {
  0%,
  100% {
    transform: scale(1) translateY(0); /* No scale, normal position */
    opacity: 1; /* Full opacity */
  }
  50% {
    transform: scale(1.1) translateY(-2px); /* Slight scale-up and upward movement for the glow effect */
    opacity: 0.8; /* Slightly reduced opacity */
  }
}
.headline span::after {
  animation: lineDrawIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
  background: var(--primary);
  border-radius: 2px;
  bottom: -5px;
  content: "";
  height: 3px;
  left: -10%;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  width: 120%;
}
.premium-section {
  background: var(--gradient-bg);
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(3rem, 10vh, 8rem) 1rem;
  position: relative;
}
.premium-section::before {
  animation: pulseGlow 8s ease-in-out infinite alternate;
  background: radial-gradient(circle at 20% 30%, #0ea5e926, transparent 25%),
    radial-gradient(circle at 80% 70%, #8b5cf626, transparent 25%);
  content: "";
  inset: 0;
  opacity: 0.7;
  position: absolute;
  z-index: 1;
}
.subheadline {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 0 auto 3rem;
  max-width: 65ch;
  opacity: 0;
  text-align: center;
  transform: translateY(20px);
}
.title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes imageFloat {
  0%,
  100% {
    transform: translateY(0) scale(0.95);
  }
  50% {
    transform: translateY(-15px) scale(1);
  }
}
.info-section {
  align-items: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 20px;
  box-shadow: 0 15px 50px #0000004d;
  color: #fff;
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  max-width: 1200px;
  overflow: hidden;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}
.info-section::before {
  animation: pulse 8s infinite;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  content: "";
  height: 150%;
  left: -20%;
  position: absolute;
  top: -20%;
  transform: rotate(45deg);
  width: 150%;
  z-index: -1;
  will-change: transform, opacity;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.image-content {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  position: relative;
  transform: translateX(50px);
}
.image-content img {
  border-radius: 16px;
  box-shadow: 0 10px 40px #0000004d;
  height: auto;
  max-width: 100%;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.infolast {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.infolast h2 {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #00d4ff, #00f6ff);
  background-clip: text;
  color: transparent;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.infolast p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.infolast-content {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  transform: translateX(-50px);
}
@media (max-width: 768px) {
  .headline {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    text-align: center;
  }
  .headline span {
    color: var(--primary);
    font-size: 1.6rem;
  }
  .subheadline {
    font-size: 0.8rem;
    margin: 0 auto 1.8rem;
    max-width: 45ch;
    text-align: center;
  }
  .description {
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
  } /* Grid Layout */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.8rem;
  }
  .grid-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  .grid-item img {
    width: 100%;
    border-radius: 8px;
    transform: scale(1);
  } /* Info Section */
  .infolast {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
  }
  .infolast-content {
    max-width: 100%;
    opacity: 1;
    text-align: center;
    transform: none;
  }
  .infolast h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  .infolast p {
    font-size: 0.9rem;
    line-height: 1.6;
  } /* Hide Elements */
  .background-images {
    display: none;
  }
}
