/* Base & Utilities */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFCFA;
}
::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34D399;
}

/* Navigation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  position: relative;
  padding-left: 0;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover {
  border-left-color: #059669;
  padding-left: 0.75rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #059669;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #065F46;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: 1.5px solid #A7F3D0;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #ECFDF5;
  border-color: #34D399;
  transform: translateY(-2px);
}

/* Input Fields */
.input-field {
  background: #FDFCFA;
  border: 1.5px solid #D1FAE5;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #064E3B;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}
.input-field::placeholder {
  color: #9CA3AF;
}
.input-field:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: #ffffff;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(167, 243, 208, 0.3);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(6, 78, 59, 0.1);
  border-color: rgba(167, 243, 208, 0.6);
}

/* Floating Cards */
.floating-card {
  animation: float 3s ease-in-out infinite;
}
.card-1 {
  animation-delay: 0s;
}
.card-2 {
  animation-delay: 1.5s;
}

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

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Gallery */
.gallery-item {
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.5s ease;
}

/* Section Transitions */
section {
  position: relative;
}

/* Mobile Menu Animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}

/* Print */
@media print {
  .nav-scrolled, .floating-card, .reveal {
    display: none !important;
  }
}
