*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
}

/* Geometric shapes */
.geo-shape {
  position: absolute;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
  top: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(232, 93, 74, 0.2);
  animation-delay: 0s;
}

.shape-circle-2 {
  bottom: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(232, 93, 74, 0.08);
  animation-delay: -3s;
}

.shape-square-1 {
  top: 30%;
  left: 10%;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(232, 93, 74, 0.15);
  transform: rotate(45deg);
  animation-delay: -2s;
}

.shape-triangle-1 {
  bottom: 30%;
  right: 12%;
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid rgba(232, 93, 74, 0.08);
  animation-delay: -5s;
}

.shape-ring-1 {
  top: 60%;
  right: 5%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 127, 107, 0.15);
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

.shape-square-1 {
  animation: floatSquare 10s ease-in-out infinite;
}

.shape-ring-1 {
  animation: floatRing 12s ease-in-out infinite;
}

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

@keyframes floatRing {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111827;
}
::-webkit-scrollbar-thumb {
  background: rgba(232, 93, 74, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 93, 74, 0.5);
}

/* Selection */
::selection {
  background: rgba(232, 93, 74, 0.3);
  color: #fff;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu transition */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobileMenu:not(.hidden) {
  max-height: 400px;
  opacity: 1;
}
