/* Global Styles */
:root {
    --primary-color: #4A6B3D;
    --secondary-color: #faf1d7cc;
    --accent-color: #4A6B3D;
    --text-color: #333;
    --light-text: #f5f5f5;
    --transition-speed: 0.3s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) var(--transition-easing);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 0.5rem 2rem;
    background-color: rgba(74, 107, 61, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.9;
    mix-blend-mode: screen;
}

.logo h1 {
    color: var(--light-text);
    font-size: 1.8rem;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) var(--transition-easing);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all var(--transition-speed) var(--transition-easing);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(74, 107, 61, 0.6) 0%, rgba(74, 107, 61, 0.5) 50%, rgba(74, 107, 61, 0.6) 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('Bunny B&B/Image/Bunny B&B Logo.jpg') center/contain no-repeat;
    opacity: 1;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 107, 61, 0.4) 0%, rgba(74, 107, 61, 0.3) 50%, rgba(74, 107, 61, 0.4) 100%);
    z-index: -1;
}


.hero-content {
    color: var(--light-text);
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-content p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    transition: all var(--transition-speed) var(--transition-easing);
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    border: 2px solid var(--light-text);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.4s forwards;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

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

/* Services Section */
.services {
    padding: 5rem 2rem;
    background-color: var(--secondary-color);
    position: relative;
    z-index: 1;
    transition: padding-bottom 0.8s ease;
}

.services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2%;
    width: 350px;
    height: 500px;
    transform: translateY(-50%);
    background: url('Bunny B&B/Image/DSC04037.JPG') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
    border-radius: 10px;
}

.services::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 2%;
    width: 350px;
    height: 500px;
    transform: translateY(-50%);
    background: url('Bunny B&B/Image/DSC04052.JPG') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
    border-radius: 10px;
}

.services.has-active-dropdown {
    padding-bottom: 35rem;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
    border: 1px solid var(--primary-color);
    position: relative;
    cursor: pointer;
    overflow: visible;
    opacity: 0;
    transform: translateY(50px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-speed) var(--transition-easing);
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.card:hover::before {
    opacity: 0.05;
}

.card.animate {
    animation: slideInUp 0.6s ease-out forwards;
}

.card.animate .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card .dropdown-content {
    display: none;
    background: linear-gradient(135deg, var(--secondary-color), rgba(250, 241, 215, 0.95));
    padding: 2rem;
    margin-top: 1rem;
    border-radius: 15px;
    text-align: left;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    font-size: 16px;
    border: 1px solid rgba(74, 107, 61, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.card .dropdown-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* CSS hover disabled - using JavaScript instead */

.card .dropdown-content p {
    color: var(--text-color);
    margin: 0 0 1.2rem 0;
    line-height: 1.7;
    font-weight: 600;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 15px;
}

.card .dropdown-content p:last-child {
    margin-bottom: 0;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f9fa 100%);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1%;
    width: 400px;
    height: 600px;
    transform: translateY(-50%);
    background: url('Bunny B&B/Image/DSC04029.JPG') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
    border-radius: 10px;
}

.gallery::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1%;
    width: 400px;
    height: 600px;
    transform: translateY(-50%);
    background: url('Bunny B&B/Image/DSC04035.JPG') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
    border-radius: 10px;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
    background: white;
    border: 3px solid transparent;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.gallery-item:hover::before {
    opacity: 0.1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.2);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: white;
    position: relative;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2%;
    width: 380px;
    height: 550px;
    transform: translateY(-50%);
    background: url('Bunny B&B/Image/DSC04067.JPG') center/cover no-repeat;
    opacity: 0.10;
    z-index: 0;
    border-radius: 10px;
}

.about::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 2%;
    width: 380px;
    height: 550px;
    transform: translateY(-50%);
    background: url('Bunny B&B/Image/DSC04085.JPG') center/cover no-repeat;
    opacity: 0.10;
    z-index: 0;
    border-radius: 10px;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: var(--secondary-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-speed) var(--transition-easing);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:hover {
    background-color: #2C4459;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:active::before {
    width: 300px;
    height: 300px;
}

.submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-button.loading {
    background-color: #6c757d;
    cursor: not-allowed;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--light-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-language-selector {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Hide language selector in header on mobile */
    .nav-links .language-selector {
        display: none !important;
    }
    
    /* Show language selector in footer on mobile */
    .footer-language-selector {
        display: block;
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .footer-language-selector label {
        display: inline-block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer-language-selector select {
        background-color: var(--primary-color);
        color: var(--light-text);
        border: 1px solid var(--light-text);
        border-radius: 4px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        cursor: pointer;
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
        min-width: 80px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    /* Fix dropdown content z-index on mobile */
    .card {
        overflow: visible;
        z-index: 1;
    }
    
    .card:hover,
    .card.active {
        z-index: 1000;
    }
    
    .card .dropdown-content {
        z-index: 10001 !important;
        position: fixed !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        max-width: calc(100% - 2rem) !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .card .dropdown-content.show {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .services.has-active-dropdown {
        padding-bottom: 40rem;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    left: 0;
    top: 100%;
}

.dropdown-content p {
    color: var(--light-text);
    margin: 0;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

.language-selector select {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
    border-radius: 4px;
    padding: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.language-selector select option {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Terms Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    transition: all var(--transition-speed) var(--transition-easing);
}

.close:hover {
    color: #3a5a2f;
    transform: scale(1.1);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
    font-size: 1.8rem;
}

.terms-content {
    line-height: 1.8;
    text-align: justify;
}

.terms-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 1rem;
    padding: 0;
    background: none;
    border: none;
    transition: none;
    transform: none;
    box-shadow: none;
}

.terms-content p:hover {
    transform: none;
    box-shadow: none;
}

.download-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-color);
    text-align: center;
}

.download-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all var(--transition-speed) var(--transition-easing);
    font-weight: 500;
    font-size: 1.1rem;
}

.download-button:hover {
    background: #3a5a2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 61, 0.3);
}

/* Terms Link Styles */
.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed) var(--transition-easing);
    display: inline-block;
    margin-top: 0.5rem;
}

.terms-link:hover {
    color: #3a5a2f;
    border-bottom-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 1rem;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
    
    .terms-content {
        text-align: left;
    }
    
    .download-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .gallery h2 {
        font-size: 2rem;
    }
    
    /* Hide decorative images on mobile */
    .services::before,
    .services::after,
    .about::before,
    .about::after,
    .gallery::before,
    .gallery::after {
        display: none;
    }
    
    /* Adjust hero background for mobile */
    .hero::before {
        opacity: 0.2;
    }
    
    /* Ensure modal is above everything on mobile */
    .modal {
        z-index: 20000 !important;
    }
    
    .modal-content {
        z-index: 20001 !important;
    }
} 