/* ========================================
   Studio 305 - Custom Styles
   ======================================== */

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

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

::-webkit-scrollbar-track {
  background: #fdf9ed;
}

::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Selection color */
::selection {
  background: #166534;
  color: #fefdf8;
}

/* ========================================
   Navbar
   ======================================== */
.navbar-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

.navbar-scrolled .menu-line {
  background: #14532d !important;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu-open {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

.menu-line:last-child {
  transition: all 0.3s ease;
}

.menu-btn-active .menu-line:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn-active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-btn-active .menu-line:last-child {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* ========================================
   Form Inputs
   ======================================== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

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

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

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   Focus Visible for Accessibility
   ======================================== */
*:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  nav,
  #contact,
  button,
  form {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
