:root {
    --primary-color: #1e56a0;
    --secondary-color: #163172;
    --accent-color: #f6b93b;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll during animations */
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Animation Classes */
.animated {
    animation-duration: var(--transition-medium);
    animation-fill-mode: both;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles with Animation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.logo-img {
    max-height: 45px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    transition: all var(--transition-medium) ease;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast) ease;
    position: relative;
    padding-bottom: 3px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all var(--transition-fast) ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 92vh;
    width: 100%;
    overflow: hidden;
    margin-top: -1px;
    margin-bottom: 2rem;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.3s;
}

.slide-content p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.6s;
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.9s;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

.slider-arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: var(--accent-color);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all var(--transition-fast) ease;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    width: 100%;
}

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

/* Section Styles */
section {
    padding: 3rem 0;
}

/* Hero section should not have default section padding */
section.hero {
    padding: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    transition: transform 0.5s ease;
}

.section-title.animated h2::after {
    transform: translateX(-50%) scaleX(1);
}

/* Features Section Enhanced */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all var(--transition-medium) ease;
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

/* Rooms Section */
.rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.room-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-info {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.room-features {
    list-style: none;
    margin: 1rem 0;
}

.room-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.room-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.room-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* Services Section Enhanced */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all var(--transition-medium) ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(30, 86, 160, 0.1), rgba(246, 185, 59, 0.1));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium) ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform var(--transition-medium) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15);
}

/* Location Section */
.map-container {
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.transport-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.transport-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.transport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.transport-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.transport-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.transport-card ul {
    list-style: none;
}

.transport-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.transport-card ul li::before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    background-color: #f0f0f0;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lazy loading image styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img[loading="lazy"].loaded,
img:not([data-src]) {
    opacity: 1;
}

.gallery-item img[data-src] {
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.5s ease;
    background-color: #f0f0f0;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
    z-index: 1;
}

.gallery-item.loaded::before {
    display: none;
}

.gallery-item.loaded img {
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

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

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question span {
    transition: transform 0.4s ease;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, opacity 0.3s ease, transform 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-info, .contact-hours {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-info:hover, .contact-hours:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-info h3, .contact-hours h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-info h3::after, .contact-hours h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.contact-info ul, .contact-hours ul {
    list-style: none;
}

.contact-info ul li, .contact-hours ul li {
    display: flex;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    word-break: break-word;
    align-items: flex-start;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.2rem;
    background-color: rgba(30, 86, 160, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info ul li:hover i {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.contact-info ul li strong {
    color: var(--secondary-color);
    margin-right: 0.3rem;
}

.contact-hours ul li {
    position: relative;
    padding-left: 1.5rem;
}

.contact-hours ul li::before {
    content: '\f017'; /* Clock icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}

.contact-cta {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-fast);
}

.contact-cta:hover {
    transform: translateY(-5px);
}

.contact-cta h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-cta p {
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-cta .btn {
    margin: 0;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-cta .btn i {
    font-size: 1.1rem;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.footer-logo-img {
    max-width: 320px;
    filter: brightness(0) invert(1);
    transition: all 0.5s ease;
    animation: fadeRotateIn 1.2s ease-out;
}

.footer-logo:hover .footer-logo-img {
    animation: pulse-glow 2s infinite;
    transform: rotateY(10deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(246, 185, 59, 0.8));
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    margin-right: 1rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

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

.contact-info ul li div {
    flex: 1;
    min-width: 0; /* Ensures proper text wrapping */
}

.contact-info ul li span {
    display: inline-block;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: none;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Page Hero Section */
.page-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    max-height: 400px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-hero .hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.page-hero .hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-hero .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    animation: fadeInUp 0.8s forwards;
}

.page-hero .hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}

/* Scroll Up Button */
.scroll-top-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-button.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-top-button i {
    font-size: 1.5rem;
}

/* Footer Logo Animation */
@keyframes pulse-glow {
    0% {
        filter: brightness(0) invert(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(246, 185, 59, 0.7));
        transform: scale(1.08);
    }
    100% {
        filter: brightness(0) invert(1);
        transform: scale(1);
    }
}

/* Footer Logo Entrance Animation */
@keyframes fadeRotateIn {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Enhanced Scroll Reveal Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0);
    }
}

.reveal-scale {
    opacity: 0;
}

.reveal-scale.revealed {
    animation: fadeInScale 0.8s forwards;
}

.reveal-bottom {
    opacity: 0;
}

.reveal-bottom.revealed {
    animation: slideInBottom 0.8s forwards;
}

.reveal-left {
    opacity: 0;
}

.reveal-left.revealed {
    animation: slideInLeft 0.8s forwards;
}

.reveal-right {
    opacity: 0;
}

.reveal-right.revealed {
    animation: slideInRight 0.8s forwards;
}

.reveal-rotate {
    opacity: 0;
    perspective: 1000px;
}

.reveal-rotate.revealed {
    animation: rotateIn 0.8s forwards;
}

/* Sequential animation for child elements */
.reveal-sequence > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-sequence.revealed > *:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.reveal-sequence.revealed > *:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.reveal-sequence.revealed > *:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.reveal-sequence.revealed > *:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.reveal-sequence.revealed > *:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.reveal-sequence.revealed > *:nth-child(n+6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    top: 6px;
    right: 20px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 5px;
    display: flex;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 48em) {
    /* On mobile, the switcher is positioned within the header layout instead of fixed */
    .language-switcher {
        position: static;
        top: auto;
        right: auto;
        margin: 0;
    }
}

.language-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
    /* Safari-specific fixes */
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-btn.active {
    background-color: var(--primary-color);
}

/* Hide mobile language switcher on desktop */
.mobile-language-switcher {
    display: none;
}

/* ===================================
   GALLERY MODAL STYLES
   =================================== */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
    box-sizing: border-box;
}

.modal-image-container {
    position: relative;
    max-width: 85%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(30, 86, 160, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-prev {
    left: 15px;
}

.modal-next {
    right: 15px;
}

.modal-prev:hover,
.modal-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        padding: 40px 15px 60px;
    }
    
    .modal-image-container {
        max-width: 95%;
        max-height: 70vh;
        border-radius: 8px;
    }
    
    .modal-image {
        max-height: 70vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-prev,
    .modal-next {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-counter {
        bottom: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 10px 50px;
    }
    
    .modal-image-container {
        max-width: 98%;
        max-height: 65vh;
    }
    
    .modal-image {
        max-height: 65vh;
    }
}

/* Accessibility Improvements */
.modal-close:focus,
.modal-prev:focus,
.modal-next:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation for modal opening */
.gallery-modal:not(.active) .modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gallery-modal.active .modal-content {
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* Add hover effect to gallery images */
.gallery-item img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
} 