/* ===== 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;
}

::selection {
  background: #D4A017;
  color: #0F1A2E;
}

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

/* ===== Geometric Background Shapes ===== */
.geo-circle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -150px;
}

.circle-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.04) 0%, transparent 70%);
  bottom: 20%;
  left: -100px;
}

.circle-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.05) 0%, transparent 70%);
  top: 50%;
  right: 10%;
}

.geo-triangle {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.triangle-1 {
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(212, 160, 23, 0.04);
  top: 35%;
  left: 5%;
  transform: rotate(15deg);
}

.geo-square {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.square-1 {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(212, 160, 23, 0.08);
  top: 60%;
  right: 8%;
  transform: rotate(45deg);
}

/* ===== Floating Cards Animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* ===== Card Glow Effect ===== */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.card-glow:hover::before {
  opacity: 1;
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
  background: rgba(15, 26, 46, 0.95);
  backdrop-blur-lg;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Menu ===== */
#mobileMenu {
  max-height: 0;
}

#mobileMenu.open {
  max-height: 400px;
}

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

::-webkit-scrollbar-track {
  background: #0F1A2E;
}

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

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

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
}

/* ===== Smooth transitions for all interactive elements ===== */
a, button {
  transition: all 0.2s ease;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
  .geo-circle, .geo-triangle, .geo-square {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

/* ===== Print styles ===== */
@media print {
  .fixed, .geo-circle, .geo-triangle, .geo-square {
    display: none !important;
  }
}
