/* Reset and Base Styles */
html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    overflow: hidden;
    background-color: transparent;
    scroll-snap-align: start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.webgl-diffusion-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Particles container styles */
.particles-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Content styles */
.content {
    position: absolute;
    z-index: 20;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, transparent 38.89%, transparent 100%);
    padding: 2rem;
}

/* Logo styles */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative; /* Relative positioning allows for movement */
    will-change: transform; /* Optimize for animations */
    transition: transform 0.3s ease-out; /* Smooth transition as fallback */
    z-index: 10; /* Make sure it stays above other elements */
}

.logo-container img {
    max-height: 180px;
    width: auto;
    max-width: 140vw;
    height: auto;
    margin-bottom: 1rem;
}

/* Iridescent Logo Effect */
.logo-iridescent {
    filter: invert(1) brightness(1.1) contrast(1.1);
    /* mix-blend-mode: screen; */
    opacity: 0.85;
    transition: filter 0.5s ease;
    animation: iridescent-shimmer 8s infinite alternate;
    transform-style: preserve-3d;
    will-change: transform;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transform-origin: center center;
    backface-visibility: hidden;
}

@keyframes iridescent-shimmer {
    0% {
        filter: invert(1) brightness(1.1) hue-rotate(0deg) saturate(1.2);
        opacity: 0.7;
    }
    25% {
        filter: invert(1) brightness(1.2) hue-rotate(60deg) saturate(1.4);
        opacity: 0.8;
    }
    50% {
        filter: invert(1) brightness(1.15) hue-rotate(120deg) saturate(1.3);
        opacity: 0.9;
    }
    75% {
        filter: invert(1) brightness(1.25) hue-rotate(240deg) saturate(1.5);
        opacity: 0.8;
    }
    100% {
        filter: invert(1) brightness(1.1) hue-rotate(300deg) saturate(1.2);
        opacity: 0.7;
    }
}

.btn-gradient {
  position: relative;
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 400px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0);
color: #fff;
  overflow: hidden;
  z-index: 0;
}


/* Top layer: inset translucent fill with backdrop blur */
.btn-gradient::after {
  content: "";
  position: absolute;
  top: 2px;   /* Border thickness */
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: calc(8px - 2px); /* adjust so inner fill remains rounded */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


/* Content Sections */
section {
    position: relative;
    z-index: 3;
    background: #fff;
    min-height: 100vh;
    scroll-snap-align: start;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .logo-container img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .logo-container img {
        max-height: 60px;
    }
}

@media (min-aspect-ratio: 4/3) {
    .logo-container img {
        max-height: 100px;
        width: auto;
    }
}

@media (max-aspect-ratio: 3/5) {
    .logo-container {
        margin-top: -20vh;
    }
}