/*houdini*/
@property --blink-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

/* #fallback @keyframes blink-animation {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}*/

@keyframes blink-animation {
  0%,
  100% {
    opacity: var(--blink-opacity, 1);
  }
  50% {
    opacity: 0;
  }
}
/*houdini*/

/*base*/
:root {
  --color-blue: #4182e4;
  --color-purple: #d44ed1;
  --color-teal: #3dd5c8;
  --stripe-color: #f0f0f0;
  --bg: var(--stripe-color);
  --maincolor: var(--bg);
  --hero-blur: 8px;
  --rainbow-opacity: 1;
  --stripes: repeating-linear-gradient(
    100deg,
    var(--stripe-color) 0%,
    var(--stripe-color) 7%,
    transparent 10%,
    transparent 12%,
    var(--stripe-color) 16%
  );
  --rainbow: repeating-linear-gradient(
    100deg,
    rgba(65, 130, 228, var(--rainbow-opacity)) 10%,
    rgba(212, 78, 209, var(--rainbow-opacity)) 15%,
    rgba(65, 130, 228, var(--rainbow-opacity)) 20%,
    rgba(61, 213, 200, var(--rainbow-opacity)) 25%,
    rgba(65, 130, 228, var(--rainbow-opacity)) 30%
  );
  --hero-brightness: 1.2;
  --hero-contrast: 1.5;
  --hero-saturation: 1.6;
}

/* Dark mode compatibility */
.dark-mode {
  --stripe-color: #000;
  --hero-blur: 10px;
  --rainbow-opacity: 1;
  --hero-brightness: 1;
  --hero-contrast: 1;
  --hero-saturation: 1;
}

/*custom*/
@keyframes smoothBg {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

/* Fix the wrapper to remove any spacing issues */
.wrapper {
  width: 100%;
  height: auto;
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
}

/* Ensure the hero section starts right at the top after navbar */
#home {
  margin-top: 0;
  padding-top: 0;
}

/* Fix hero positioning */
.hero {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  place-content: center;
  place-items: center;
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;

  filter: blur(var(--hero-blur)) brightness(var(--hero-brightness)) contrast(var(--hero-contrast)) saturate(var(--hero-saturation));
  will-change: transform;
  transform: translateZ(0);

  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
  margin: 0;
  padding: 0;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: smoothBg 60s linear infinite;
  background-attachment: fixed;
  mix-blend-mode: hard-light;
  opacity: 0.9;
  will-change: background-position;
  transform: translateZ(0);
}

/* Hero shapes from original design */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 237, 190, 0.3) 0%, rgba(168, 237, 190, 0) 70%);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0) 70%);
  bottom: -50px;
  left: 10%;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0) 70%);
  top: 30%;
  right: 20%;
}

.dot-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(46, 204, 113, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}

:has(:checked) .hero,
:has(:checked) .hero::after {
  filter: blur(10px) opacity(50%) saturate(200%);
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  place-content: center;
  place-items: center;
  flex-flow: column;
  gap: 4.5%;
  text-align: center;
  z-index: 5;
  padding: 0 1rem;
  padding-top: 70px; /* Account for navbar height */
}

/* Add a subtle text shadow to improve readability in light mode */
.content h1, 
.content p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark-mode .content h1,
.dark-mode .content p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.h1--scalingSize {
  font-size: calc(1rem - -5vw);
  position: relative;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.h1--scalingSize span {
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.h1--scalingSize span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(46, 204, 113, 0.2);
  z-index: -1;
}

.content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--text-color);
}

/* Fixed button styling */
.content .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  z-index: 10;
}

.content .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius, 8px);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.content .btn.primary {
  background: var(--primary-gradient, linear-gradient(135deg, #27AE60, #2ECC71));
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.content .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.content .btn.secondary {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--primary-color, #2ECC71);
  border: 1px solid transparent;
}

.content .btn.secondary:hover {
  background-color: rgba(46, 204, 113, 0.2);
  transform: translateY(-3px);
}

/* Feature section from original design */
.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(46, 204, 113, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #2ECC71);
}

.feature span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-light, #777777);
}

/* Switch styling */
#switch {
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
}

[for="switch"] {
  cursor: pointer;
  transition: 0.15s linear;
  will-change: transform, font-weight;
  padding: 0.5rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(5px);
}

[for="switch"]:where(:hover, :active, :focus-within) {
  transition: 0.3s ease;
  animation: animSwitch 0.2s alternate;
}

[for="switch"]:where(:hover, :active, :focus-within) .icon {
  animation-play-state: paused;
}

@keyframes animSwitch {
  50% {
    transform: scale(1.2);
    font-weight: 900;
  }
}

.icon {
  width: 1em;
  height: 1em;
  aspect-ratio: 1/1;
  padding: 0.25em 0.35rem;
  border-radius: 50%;
  border: 1px dashed;
  --blink-opacity: 1;
  animation: blink-animation 2s ease-in-out infinite running;
}

/* Dark mode compatibility */
.dark-mode .content {
  filter: invert(0.1);
}

.dark-mode .btn.primary {
  background: linear-gradient(135deg, #1a7e44, #25a25a);
}

.dark-mode .btn.secondary {
  background-color: rgba(46, 204, 113, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .h1--scalingSize {
    font-size: calc(1rem - -3vw);
  }
  
  .content p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .content .cta-buttons {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }
}

/* Fix for browsers that don't support :has selector */
@supports not (selector(:has(input))) {
  input#switch:checked ~ .hero,
  input#switch:checked ~ .hero::after {
    filter: blur(10px) opacity(50%) saturate(200%);
  }
  
  .dark-mode .hero,
  .dark-mode .hero::after {
    --stripe-color: #000;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }
  
  [for="switch"]:where(:hover, :active, :focus-within) {
    animation: none;
  }
  
  .icon {
    animation: none;
  }
}

/* Better mobile experience */
@media (max-width: 480px) {
  .hero {
    filter: blur(5px); /* Less blur for better mobile performance */
  }
  
  .h1--scalingSize {
    font-size: calc(1rem - -4vw);
  }
  
  .hero-features {
    margin-bottom: 1.5rem;
    gap: 1rem;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .content p {
    margin-bottom: 1.5rem;
  }
} 