/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
#getInTouch {
    scroll-margin-top: 90px;
}


/* Back to Top Button */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Form Styling */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Button Hover Effects */
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
}

/* Card Hover Effects */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}


/* Fix for Image Slider */
.slider-img {
    transition: opacity 1s ease-in-out;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Make sure the container has proper dimensions */
.relative.h-\[350px\] {
    min-height: 350px;
}


/* ================= MOBILE NAV SMOOTH ANIMATION ================= */

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* OPEN STATE */
.mobile-menu.open {
  max-height: 400px; /* enough for menu items */
  opacity: 1;
  transform: translateY(0);
}

/* ================= HAMBURGER ICON ================= */

.hamburger {
  position: relative;
  width: 22px;
  height: 2px;
  background: white;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* X STATE */
.mobile-menu-open .hamburger {
  background: transparent;
}

.mobile-menu-open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}
