/* ========================================
   EB3.work — Custom Styles
   ======================================== */

/* Reset & Base */
*, *::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;
}

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

.geo-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 192, 120, 0.08) 0%, transparent 70%);
  top: -100px;
  left: -200px;
}

.geo-circle-2 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 192, 120, 0.06) 0%, transparent 70%);
  bottom: 10%;
  right: -100px;
}

.geo-rect-1 {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(15, 192, 120, 0.12);
  border-radius: 24px;
  top: 25%;
  right: 5%;
  transform: rotate(45deg);
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(15, 192, 120, 0.06);
  top: 40%;
  left: 3%;
  transform: rotate(-15deg);
}

.geo-dots {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(15, 192, 120, 0.2) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  bottom: 20%;
  right: 15%;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0FC078, #3DD692);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

#navbar.scrolled {
  background: rgba(5, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ========================================
   Menu Button Animation
   ======================================== */
.menu-line {
  display: block;
}

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

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* ========================================
   Scroll Animations (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

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

::-webkit-scrollbar-track {
  background: #050A1A;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 192, 120, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 192, 120, 0.5);
}

/* ========================================
   Select Dropdown Styling
   ======================================== */
select option {
  background: #0A1628;
  color: white;
}

/* ========================================
   Focus Visible
   ======================================== */
*:focus-visible {
  outline: 2px solid #0FC078;
  outline-offset: 2px;
}

/* ========================================
   Utility Animations
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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