/* assets/css/styles.css - Professional & Smooth */
:root{
  --primary: #0f8a5f;
  --primary-dark: #0a5f42;
  --accent: #ff8a00;
  --text-dark: #0b1a14;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-neutral: #f3f4f6;
  --border-color: #e5e7eb;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL TEXT STYLES === */
p {
  text-align: justify;
}

/* === BUTTONS === */
.btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(to right, #0f8a5f, #0a5f42);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(15, 138, 95, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-primary:hover {
  box-shadow: 0 10px 15px rgba(15, 138, 95, 0.3);
  transform: scale(1.05);
}

.btn-primary:focus-visible {
  outline: 2px solid #0f8a5f;
  outline-offset: 2px;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
  color: #111827;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

.btn-outline {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #0f8a5f;
  color: #0f8a5f;
  background-color: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background-color: #f0f9f7;
}

/* === SERVICE CARDS === */
.service-card {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #0f8a5f, #ff8a00);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:focus-visible {
  outline: 2px solid #0f8a5f;
  outline-offset: 2px;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  margin: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === MICRO INTERACTIONS === */
.micro-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.micro-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.micro-hover:active {
  transform: scale(0.95);
}

/* === SMOOTH TRANSITIONS === */
a, button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === FOCUS STATES === */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* === SECTION SPACING === */
section {
  scroll-margin-top: 6rem;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === UTILITY CLASSES === */
.text-gradient {
  background: linear-gradient(135deg, #0f8a5f, #ff8a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-smooth {
  box-shadow: 0 4px 12px rgba(11, 26, 20, 0.08);
}

.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === MOBILE MENU === */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 9999 !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
  will-change: transform;
}

#mobile-menu.translate-x-0 {
  transform: translateX(0) !important;
  visibility: visible !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.translate-x-full {
  transform: translateX(100%) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
}

/* Mobile menu button styling */
#mobile-menu-btn {
  cursor: pointer;
  z-index: 10000;
  position: relative;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

#mobile-menu-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

#mobile-menu-btn:active {
  transform: scale(0.95);
}

/* Mobile menu close button */
#mobile-menu-close {
  cursor: pointer;
  z-index: 10001;
  position: relative;
  background: none;
  border: none;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* === ANIMATION KEYFRAMES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(15, 138, 95, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(15, 138, 95, 0);
  }
}

/* === ANIMATION CLASSES === */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* === STAGGERED ANIMATIONS === */
.animate-fade-in-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-in-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-in-up.delay-4 { animation-delay: 0.4s; }

.animate-slide-in-left.delay-1 { animation-delay: 0.1s; }
.animate-slide-in-right.delay-1 { animation-delay: 0.1s; }

/* === CARD ENTRANCE ANIMATIONS === */
.card-entrance {
  opacity: 0;
}

.card-entrance.visible {
  animation: fadeInScale 0.6s ease-out forwards;
}

/* === RESPONSIVE FULL-WIDTH LAYOUT === */
/* Full width sections with centered content */
section {
  scroll-margin-top: 6rem;
}

main section {
  width: 100%;
}

/* Content centering with responsive max-widths */
@media (max-width: 640px) {
  main section > div > div {
    padding: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  main section > div > div {
    padding: 1.5rem;
  }
}

@media (min-width: 1025px) {
  main section > div > div {
    padding: 2rem;
  }
}

/* Footer styling */
footer {
  margin-top: 3rem;
}

footer a {
  transition: color 0.3s ease;
}

/* Hero section gradient */
.hero {
  background-attachment: fixed;
  position: relative;
}
