@tailwind base;
@tailwind components;
@tailwind utilities;

/* Global Styles */
html {
    transition: all 300ms ease;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    overflow-x: hidden;
}

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

@keyframes float-slow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-subtle {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

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

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-pulse-subtle {
    animation: pulse-subtle 3s ease-in-out infinite;
}

/* Hero Section Styles */
.hero-image {
    transition: all 0.5s ease-in-out;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 4px solid white;
}

/* Navigation Styles */
.hamburger {
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
}

/* Hamburger Menu Button */
.hamburger {
  position: relative;
  width: 30px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #856A00;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-top {
  width: 100%;
}

.hamburger-middle {
  width: 80%;
  transition: all 0.3s ease 0.1s;
}

.hamburger-bottom {
  width: 60%;
  transition: all 0.3s ease 0.2s;
}

/* Hamburger to X Animation */
.hamburger.open .hamburger-top {
  transform: translateY(10.5px) rotate(45deg);
  background-color: #856A00;
  width: 100%;
}

.hamburger.open .hamburger-middle {
  opacity: 0;
  transform: translateX(10px);
  width: 0;
}

.hamburger.open .hamburger-bottom {
  transform: translateY(-10.5px) rotate(-45deg);
  background-color: #856A00;
  width: 100%;
}

/* Hover effects */
.hamburger:not(.open):hover .hamburger-line {
  background-color: #a88a3c;
}


#menu-btn {
    transition: all 300ms ease-in-out;
    padding: 10px;
    margin-right: -10px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 0s linear 300ms;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms ease-in-out, visibility 0s linear 0s;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.mobile-menu-content {
    width: 100%;
    max-width: 90%;
    padding: 2rem;
    text-align: center;
    position: relative;
}

/* Ensure header stays above content but below menu */
header {
    z-index: 100;
    position: fixed;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#menu a {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
    max-width: 280px;
    margin: 0.5rem 0;
}

#menu a:hover {
    color: #856A00;
}

#menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #856A00;
    transition: width 0.3s ease;
}

#menu a:hover::after {
    width: 100%;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    position: absolute;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    background: #856A00;
    transform: rotate(0);
    transition: all 0.3s ease;
}

.hamburger-top {
    top: 0;
}

.hamburger-middle {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-bottom {
    bottom: 0;
}

.open .hamburger-top {
    transform: rotate(45deg) translate(6px, 6px);
    background: #856A00;
}

.open .hamburger-middle {
    opacity: 0;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #856A00;
}

/* Navigation Links */
.nav_link {
    position: relative;
    display: inline-block;
    color: #000;
    text-decoration: none;
    transition: color 300ms ease, transform 300ms ease;
    padding: 0.5rem 0;
}

.nav_link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #856A00;
    transition: width 300ms ease;
}

.nav_link:hover {
    color: #856A00;
    transform: scale(1.05);
}

.nav_link:hover::after {
    width: 100%;
}

/* Book Section Styles */
.book-section {
    transition: all 0.5s ease-in-out;
}

.book-section:not(.hidden) {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons Styles */
button, .button, a.button {
    transition: all 0.3s ease-in-out;
}

button:hover, .button:hover, a.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

button:active, .button:active, a.button:active {
    transform: translateY(-1px);
}

/* Positioning for next and prev buttons */
.buttons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.buttons button {
    pointer-events: auto;
    cursor: pointer;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.buttons button:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Testimonial Card Styles */
.testimonial-card {
    transition: all 0.3s ease-in-out;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form Styles */
input, textarea {
    transition: all 0.3s ease-in-out;
}

input:focus, textarea:focus {
    border-color: #856A00;
    box-shadow: 0 0 0 3px rgba(133, 106, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dependableGod {
        width: 60%;
    }
    
    .book-section {
        gap: 2rem;
    }

    .text-content {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) {
    .bio {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}
