/* Custom styles for Island Speech & Learning Center */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Geometric floating shapes */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.geo-circle--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(185, 29, 58, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.geo-circle--2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 107, 150, 0.1) 0%, transparent 70%);
  bottom: 20%;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}
.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 70px 40px;
  border-color: transparent transparent rgba(185, 29, 58, 0.06) transparent;
  top: 30%;
  left: 5%;
  transform: rotate(-15deg);
  animation: spin 20s linear infinite;
}
.geo-square {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 150, 0.08);
  border-radius: 12px;
  top: 40%;
  right: 8%;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
}
.geo-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
}
.geo-dot--1 {
  background: rgba(185, 29, 58, 0.2);
  top: 25%;
  left: 15%;
  animation: float 4s ease-in-out infinite;
}
.geo-dot--2 {
  background: rgba(255, 107, 150, 0.3);
  bottom: 30%;
  right: 15%;
  animation: float 5s ease-in-out infinite reverse;
}
.geo-dot--3 {
  background: rgba(185, 29, 58, 0.15);
  top: 60%;
  left: 3%;
  width: 8px;
  height: 8px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

@keyframes spin {
  from { transform: rotate(-15deg); }
  to { transform: rotate(345deg); }
}

/* Navbar scroll effect */
#nav.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(185, 29, 58, 0.08);
}

/* Mobile menu animations */
#mobileMenu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobileMenu.open .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover glow */
.group:hover .bg-burgundy-50,
.group:hover .bg-burgundy-100,
.group:hover .bg-burgundy-200,
.group:hover .bg-blush-100,
.group:hover .bg-blush-200,
.group:hover .bg-blush-300 {
  transform: scale(1.2);
}

/* Custom selection color */
::selection {
  background: rgba(185, 29, 58, 0.2);
  color: #7a1227;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefdfb;
}
::-webkit-scrollbar-thumb {
  background: #f9c3cc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f491a5;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #b91d3a;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .geo-circle--1 { width: 200px; height: 200px; }
  .geo-circle--2 { width: 150px; height: 150px; }
  .geo-square { width: 40px; height: 40px; }
}
