/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 15, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E86A5A;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

.shape-circle-1 {
  width: 500px;
  height: 500px;
  border: 2px solid rgba(232, 106, 90, 0.12);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  background: rgba(232, 106, 90, 0.06);
  border-radius: 50%;
  bottom: 15%;
  left: 5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(232, 106, 90, 0.15);
  top: 25%;
  right: 8%;
  transform: rotate(45deg);
  animation: float-slow 12s ease-in-out infinite;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(232, 106, 90, 0.07);
  top: 40%;
  left: 3%;
  animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-ring-1 {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(232, 106, 90, 0.2);
  border-radius: 50%;
  bottom: 25%;
  right: 15%;
  animation: float-slow 10s ease-in-out infinite;
}

.shape-dot-grid {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 15%;
  background-image: radial-gradient(circle, rgba(232, 106, 90, 0.25) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.6;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  z-index: 10;
}

.card-float-1 {
  animation: float-card-1 6s ease-in-out infinite;
}

.card-float-2 {
  animation: float-card-2 5s ease-in-out infinite;
}

.card-float-3 {
  animation: float-card-3 7s ease-in-out infinite;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  display: flex;
  justify-content: center;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes float-card-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-card-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-card-3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(5px); }
}

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .geo-shape,
  .floating-card {
    animation: none;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .floating-card {
    display: none;
  }

  .shape-square-1,
  .shape-triangle-1,
  .shape-ring-1,
  .shape-dot-grid {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .floating-card.card-float-3 {
    display: none;
  }
}

/* ===== FORM FOCUS STYLES ===== */
input:focus,
textarea:focus {
  outline: none;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(232, 106, 90, 0.3);
  color: #fff;
}
