/* ========== CUSTOM STYLES ========== */

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

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 247, 237, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu .mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Mobile menu hamburger animation */
.menu-line {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
  width: 24px;
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== GEO SHAPES ========== */
.geo-shape {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(253, 237, 207, 0.6);
  bottom: 20%;
  left: 5%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  top: 30%;
  left: 10%;
  animation: float 10s ease-in-out infinite;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(255, 255, 255, 0.15);
  top: 15%;
  right: 10%;
  transform: rotate(15deg);
  animation: spin-slow 20s linear infinite;
}

.shape-triangle-2 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(255, 255, 255, 0.1);
  bottom: 25%;
  right: 20%;
  transform: rotate(-20deg);
  animation: spin-slow 15s linear infinite reverse;
}

.shape-square-1 {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  top: 40%;
  right: 5%;
  transform: rotate(30deg);
  animation: float 7s ease-in-out infinite;
}

.shape-square-2 {
  width: 60px;
  height: 60px;
  background: rgba(253, 237, 207, 0.3);
  border: 2px solid rgba(253, 237, 207, 0.5);
  bottom: 15%;
  left: 15%;
  transform: rotate(45deg);
  animation: float 9s ease-in-out infinite reverse;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

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

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .geo-shape {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C4663A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
  background: #C4663A;
  color: white;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF7ED;
}
::-webkit-scrollbar-thumb {
  background: #C4663A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8522e;
}
