/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #E85D4A;
  color: white;
}

/* Geometric Shapes */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.geo-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #E85D4A;
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #FF8F78;
  bottom: 10%;
  right: 5%;
  animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #D14A38;
  top: 40%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.geo-rect-1 {
  width: 120px;
  height: 120px;
  background: #E85D4A;
  border-radius: 24px;
  top: 20%;
  right: 15%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.geo-rect-2 {
  width: 80px;
  height: 80px;
  background: #FFB4A8;
  border-radius: 16px;
  bottom: 25%;
  left: 20%;
  transform: rotate(20deg);
  animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #E85D4A;
  top: 60%;
  right: 25%;
  animation: float 7s ease-in-out infinite;
  opacity: 0.06;
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Mobile Menu */
.menu-line {
  display: block;
}

#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
  width: 1.25rem;
  margin-right: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Smooth anchor offset */
section[id] {
  scroll-margin-top: 80px;
}

/* Form select styling */
select option {
  background: #2D2D2D;
  color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
  background: #3D3D3D;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #E85D4A;
}
