/* Loading Animation */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 246, 227, 0.9); /* Light orange background with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-container.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ff8c00; /* Orange border */
    border-radius: 50%;
    border-top-color: #2e4a27; /* Dark green top border */
    animation: spin 1s linear infinite;
}

.loading-text {
    position: absolute;
    margin-top: 80px;
    color: #2e4a27;
    font-weight: bold;
    font-size: 1.1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdf6e3; /* Light orange background */
    color: #2e4a27; /* Dark green text */
    /* Fix for iOS Safari viewport height issues */
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Ensure carousel container handles viewport properly */
html {
    height: -webkit-fill-available;
}

main {
    position: relative;
    z-index: 2;
    background-color: #fdf6e3;
    margin-top: 0;
}

/* Introduction sections styling */
#intro, #intro-mirror {
    padding: 80px 0;
    position: relative;
    background-color: white;
}

.intro-wrap, .intro-wrap--mirror {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 0 40px;
}

.intro-image, .intro-image--mirror {
    flex: 1;
    max-width: 600px;
}

.intro-image img, .intro-image--mirror img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-content {
    flex: 1;
}

.intro-inner {
    display: flex;
    gap: 8px;
    position: relative;
}

.vertical-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #8f4f3b;
    font-weight: 700;
    padding-right: 8px;
    opacity: 0.6;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: fit-content;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: #2e4a27;
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.intro-content .cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8f4f3b;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.intro-content .cta:hover {
    background-color: #2e4a27;
    transform: translateY(-2px);
}

/* Mirrored section specific styles */
.intro-mirror {
    background-color: #f8f8f8;
}

@media (max-width: 1024px) {
    .intro-wrap, .intro-wrap--mirror {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .intro-image, .intro-image--mirror {
        margin: 0 auto;
    }
    
    .intro-inner {
        flex-direction: column;
    }
    
    .vertical-label {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0;
        margin-bottom: 10px;
    }
    
    #intro, #intro-mirror {
        padding: 60px 0;
    }
}

/* Introduction sections styling */
#intro, #intro-mirror {
    padding: 80px 40px;
    position: relative;
    background-color: white;
}

.intro-wrap, .intro-wrap--mirror {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-image, .intro-image--mirror {
    flex: 1;
    max-width: 600px;
}

.intro-image img, .intro-image--mirror img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-content {
    flex: 1;
    padding: 20px;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: #2e4a27;
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.intro-content .cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff8c00;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.intro-content .cta:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

/* Mirrored section specific styles */
.intro-mirror {
    background-color: #f8f8f8;
}

@media (max-width: 1024px) {
    .intro-wrap, .intro-wrap--mirror {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-image, .intro-image--mirror {
        margin: 0 auto;
    }
    
    #intro, #intro-mirror {
        padding: 60px 20px;
    }
}

/* Main Header Styles - Relative position at top of page content */
.main-header {
    position: relative;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: #2e4a27;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    background-color: rgba(46, 74, 39, 0.1);
    color: #1a2e1a;
}

/* Secondary Header Styles - Dynamic Island Style */
.secondary-header {
    position: fixed;
    top: 50px;
    left: 30px; /* Left side positioning for desktop */
    transform: translateY(-120px);
    z-index: 1000;
    width: auto;
    max-width: 400px;
    min-width: 200px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
}

.secondary-header.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.secondary-header:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.9);
}

.secondary-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.logo-small:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo-small img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.logo-small span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Hamburger Menu Styles - Dynamic Island */
.hamburger-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex; /* Visible on both desktop and mobile */
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hamburger-menu:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu - Dynamic Island Style */
.mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 280px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.mobile-nav.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 20px;
    margin: 2px 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.mobile-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: scale(1.02);
    padding-left: 2.5rem;
}

header:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Main Header Logo Styles */
.main-header .logo {
    display: flex;
    align-items: center;
}

.main-header .logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.main-header .logo:hover img {
    transform: scale(1.05);
}

/* Legacy header styles for other pages */
header .logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* Push logo to left */
}

header .logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

header .logo:hover img {
    transform: scale(1.05);
}

header .logo h1 {
    display: none;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0 auto; /* Center the navigation */
    padding-left: 80px; /* Offset for logo */
}

header nav a {
    text-decoration: none;
    color: #2e4a27; /* Dark green color */
    font-weight: bold;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #8f4f3b; /* Brown accent color */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header nav a:hover {
    color: #8f4f3b;
}

header nav a:hover::after {
    width: 100%;
}

header nav a.button {
    padding: 0.7rem 1.5rem;
    border: 2px solid #2e4a27;
    border-radius: 25px;
    color: #2e4a27;
    text-align: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

header nav a.button:hover {
    background-color: #2e4a27;
    color: white;
    transform: translateY(-2px);
}

header nav a.button.primary {
    background-color: #8f4f3b;
    color: white;
    border-color: #8f4f3b;
}

header nav a.button.primary:hover {
    background-color: #734033;
    border-color: #734033;
}

header nav a.button, header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header responsive fixes for large phones (iPhone 14 Pro Max) */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    gap: 12px;
}

.logo img {
    width: 54px;
    height: 54px;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Collapse nav into hamburger on small screens */
.nav-toggle {
    display: none;
}

@media (max-width: 780px) {
    nav {
        display: none;
    }

    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        color: #2e4a27;
        font-size: 24px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .nav-toggle:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    header {
        padding: 8px 16px;
        background-color: rgba(255, 255, 255, 0.2);
    }

    header .logo img {
        height: 60px;
    }
}

/* Show nav when .nav-open on body */
body.nav-open nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 40;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

/* Dual Header Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .main-header {
        padding: 8px 16px;
        height: 60px;
    }
    
    .main-header .logo img {
        height: 50px;
    }
    
    .main-header nav {
        display: none;
    }
    
    .secondary-header {
        padding: 10px 16px;
        height: 60px;
    }
    
    /* Dynamic Island mobile adjustments - Center on mobile */
    .secondary-header {
        top: 50px;
        left: 50%;
        transform: translateX(-50%) translateY(-120px);
        max-width: 300px;
        min-width: 160px;
    }
    
    .secondary-header.visible {
        transform: translateX(-50%) translateY(0);
    }
    
    .secondary-header:hover {
        transform: translateX(-50%) translateY(0) scale(1.02);
    }
    
    .secondary-header .logo-small img {
        width: 24px;
        height: 24px;
    }
    
    .secondary-header .logo-small span {
        font-size: 0.75rem;
    }
    
    .hamburger-menu {
        padding: 8px;
    }
    
    .hamburger-menu span {
        width: 18px;
    }
    
    .mobile-nav {
        width: 250px;
        padding: 12px 0;
    }
    
    .mobile-nav a {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin: 1px 6px;
    }
    
    /* No body padding needed since main header is static */
    
    /* Secondary header mobile positioning */
    .secondary-header {
        top: 0; /* Position at viewport top on mobile */
    }
}

@media screen and (max-width: 480px) {
    .main-header {
        padding: 6px 12px;
        height: 55px;
    }
    
    .main-header .logo img {
        height: 45px;
    }
    
    /* Dynamic Island small mobile adjustments - Keep centered */
    .secondary-header {
        top: 50px;
        left: 50%;
        transform: translateX(-50%) translateY(-120px);
        max-width: 280px;
        min-width: 140px;
        padding: 8px 12px;
    }
    
    .secondary-header.visible {
        transform: translateX(-50%) translateY(0);
    }
    
    .secondary-header:hover {
        transform: translateX(-50%) translateY(0) scale(1.02);
    }
    
    .secondary-header .logo-small img {
        width: 20px;
        height: 20px;
    }
    
    .secondary-header .logo-small span {
        font-size: 0.7rem;
    }
    
    .hamburger-menu {
        padding: 6px;
    }
    
    .hamburger-menu span {
        width: 16px;
        height: 1.5px;
    }
    
    .mobile-nav {
        width: 220px;
        padding: 10px 0;
    }
    
    .mobile-nav a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .mobile-nav {
        padding: 12px;
        gap: 10px;
    }
    
    .mobile-nav a {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.nav-open nav a {
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(46, 74, 39, 0.1);
    width: 100%;
    text-align: center;
}

body.nav-open nav a:last-child {
    border-bottom: none;
}

body.nav-open nav a.button {
    margin: 8px auto;
    max-width: 200px;
}

/* Ensure header elements fit on very tall narrow devices */
@media (max-device-width: 430px) {
    header {
        padding: 8px 12px;
    }

    header .logo img {
        height: 50px;
    }

    .nav-toggle {
        font-size: 22px;
        width: 36px;
        height: 36px;
    }

    body.nav-open nav {
        top: 66px;
        padding: 16px;
    }

    body.nav-open nav a {
        font-size: 15px;
        padding: 10px 0;
    }
}

/* Hero Section Styles */
.hero-section {
    text-align: center;
    padding: 120px 20px 100px;
    background: linear-gradient(135deg, #f4e4d1, #ffe8cc);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%238f4f3b" opacity="0.1"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-section h2 {
    font-size: 3.2rem;
    color: #2e4a27;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(46, 74, 39, 0.3);
    font-weight: bold;
    letter-spacing: normal;
    font-family: Arial, sans-serif;
    font-style: normal;
    text-transform: none;
    background: linear-gradient(135deg, #2e4a27, #4a7c59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.3rem;
    color: #4a4a4a;
    margin: 0 auto 3rem;
    max-width: 800px;
    line-height: 1.6;
    font-style: normal;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-buttons .button {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.hero-buttons .button.primary {
    background-color: #8f4f3b;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(143, 79, 59, 0.3);
}

.hero-buttons .button.primary:hover {
    background-color: #734033;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(143, 79, 59, 0.4);
}

.hero-buttons .button:not(.primary) {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #8f4f3b;
    color: #8f4f3b;
}

.hero-buttons .button:not(.primary):hover {
    background-color: #8f4f3b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(143, 79, 59, 0.2);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-section h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .hero-section p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .pricing-category h3 {
        font-size: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
}

.hero-buttons a {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #2e4a27; /* Dark green border */
    background-color: #ff8c00; /* Orange background */
    color: white; /* White text */
}

.hero-buttons a.primary {
    background-color: #2e4a27; /* Dark green background */
    color: white; /* White text */
}

/* Announcements Section Styles */
#announcements {
    padding: 2rem;
    background-color: #fff4e6; /* Very light orange */
}

#announcements h2 {
    text-align: center;
    color: #2e4a27; /* Dark green text */
    font-style: normal;
    font-weight: bold;
    letter-spacing: normal;
    font-size: 2.8rem;
}

.announcement-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.card {
    background-color: white;
    border: 1px solid #2e4a27; /* Dark green border */
    border-radius: 8px;
    padding: 1.5rem;
    width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-style: normal;
}

.card .tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: white;
    margin-bottom: 0.5rem;
    background-color: #ff8c00; /* Orange tags */
}

.card .tag.important {
    background-color: #ff4500; /* Darker orange for important tags */
}

.card .tag.news {
    background-color: #2e4a27; /* Dark green for news tags */
}

.card .tag.info {
    background-color: #ffa500; /* Medium orange for info tags */
}

.card h3 {
    margin: 0.8rem 0;
    color: #2e4a27; /* Dark green text */
    font-style: normal;
    font-weight: bold;
    letter-spacing: normal;
    font-size: 1.3rem;
}

.card p {
    font-size: 1.1rem;
    color: #666;
    font-style: normal;
    font-weight: bold;
    line-height: 1.6;
}

.card .date {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

/* Why Choose Section Styles */
#why-choose {
    text-align: center;
    padding: 2rem;
    background-color: #fff4e6; /* Light orange background */
}

#why-choose h2 {
    font-size: 2rem;
    color: #2e4a27; /* Dark green text */
}

#why-choose p {
    font-size: 1.2rem;
    color: #333;
    margin: 1rem 0;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
    width: 200px;
}

.feature img {
    width: 50px;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    color: #2e4a27;
}

.feature p {
    font-size: 0.9rem;
    color: #666;
}

/* Ready to Play Section Styles */
#ready-to-play {
    text-align: center;
    padding: 2rem;
    background-color: #ffebcc; /* Light orange background */
}

#ready-to-play h2 {
    font-size: 2rem;
    color: #2e4a27;
}

#ready-to-play p {
    font-size: 1.2rem;
    color: #333;
    margin: 1rem 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-buttons a {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #2e4a27;
    background-color: #ff8c00;
    color: white;
}

.cta-buttons a.primary {
    background-color: #2e4a27;
    color: white;
}

/* Footer Styles */
footer {
    background-color: #2e4a27;
    color: white;
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content div {
    flex: 1;
    min-width: 200px;
}

/* Footer separators: add vertical dividers between columns like the provided design */
.footer-content {
    align-items: flex-start;
    position: relative;
}
.footer-content > div {
    padding: 0 22px;
}
.footer-content > div + div {
    border-left: 1px solid rgba(255,255,255,0.12);
}

/* Center branding can be emphasized (no border on the center column if present) */
.footer-content .branding {
    display:flex;flex-direction:column;align-items:center;gap:8px;padding-left:0;padding-right:0
}

@media (max-width:900px){
    /* stack columns and remove vertical borders for small screens */
    .footer-content { flex-direction: column; }
    .footer-content > div + div { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }
    .footer-content .branding { padding: 8px 0; }
}

/* contact small icons */
.contact-icons{margin-top:10px;display:flex;gap:10px}
.contact-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,0.04);color:#6b4b3a;text-decoration:none;border:1px solid rgba(0,0,0,0.04);overflow:hidden}
.contact-icon:hover{background:#f2e9df}

/* Ensure any <img> inside icon buttons scale to fit */
.contact-icon img, .icon img { max-width:100%; height:auto; display:block; width:60%; }

/* Target specific known icon files to be safe: facebook and zalo */
img[src*="facebook_"]{max-width:28px;height:auto;width:auto}
img[src*="zalo"]{max-width:28px;height:auto;width:auto}

/* Also prevent footer images from overflowing their container (branding uses its own rules above) */
.footer-content img{max-width:100%;height:auto}

/* Footer map and location image styles */
.footer-map, .footer-location-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.footer-map iframe {
    display: block;
    width: 100%;
}

.footer-location-image img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.footer-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-content p, .footer-content ul {
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.footer-content ul {
    list-style: none;
}

.footer-content ul li {
    margin-bottom: 0.5rem;
}

.footer-content ul li a {
    color: white;
    text-decoration: none;
}

.footer-content ul li a:hover {
    text-decoration: underline;
}

footer p {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* Import Dashboard Styles */
@import url('dashboard.css');

/* Login Page Styles */
.login-container {
    background-color: #ffebcc; /* Light orange background */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-container h2 {
    color: #2e4a27; /* Dark green text */
}
.login-container p {
    color: #2e4a27; /* Dark green text */
}
.login-container button {
    background-color: #ff8c00; /* Orange button */
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.login-container button:hover {
    background-color: #e67e00; /* Darker orange button hover */
}
.login-container a {
    color: #2e4a27; /* Dark green link */
    text-decoration: none;
    font-size: 14px;
}
.login-container a:hover {
    text-decoration: underline;
}
.logo a {
    text-decoration: none;
    color: inherit;
}
.logo a:hover {
    text-decoration: none; /* Remove underline on hover */
}

/* Intro section styles (moved from inline) */
#intro{padding:40px 300px}
.intro-wrap{display:flex;gap:28px;align-items:center;justify-content:center}

.intro-image{
    flex:0 0 36%;
    margin-right:-10px; /* pull image closer to content */
    transform: translateX(28px); /* small nudge to the right */
    z-index:3;
}

.intro-image img{width:100%;border-radius:12px;box-shadow:0 12px 28px rgba(2,6,23,.45);max-width:420px}
.intro-content{flex:1;padding:8px 4px}
.intro-content .vertical-label{writing-mode:vertical-rl;text-orientation:mixed;transform:rotate(180deg);color:#bfb9a8;font-weight:700;padding-right:12px;border-right:3px solid rgba(255,255,255,.05)}
.intro-content h2{margin:0 0 8px;font-family: 'Georgia', serif;font-size:32px;color:#d6a679}
.intro-content p{color:black;line-height:1.6;font-size:16px}
.intro-content .cta{margin-top:14px;display:inline-block;background:#8b5e45;color:#fff;padding:10px 16px;border-radius:12px;text-decoration:none}

/* intro inner layout moved from inline */
.intro-inner{display:flex;gap:14px;align-items:flex-start}

/* Mirrored intro section: image on the right */
.intro-mirror{padding:40px 300px; background-color: #fffaf0}
.intro-wrap--mirror{display:flex;gap:28px;align-items:center;justify-content:center}
.intro-image--mirror{flex:0 0 36%;margin-left:-10px;transform:translateX(-28px);z-index:3}
.intro-image--mirror img{width:100%;border-radius:12px;box-shadow:0 12px 28px rgba(2,6,23,.45);max-width:420px}
.intro-wrap--mirror .intro-content{flex:1;padding:8px 4px}

@media (max-width:900px){
    .intro-mirror{padding:24px}
    .intro-wrap--mirror{flex-direction:column}
    .intro-image--mirror{margin-left:0;transform:none}
}

/* Intro entrance animation and responsive tweaks */
@keyframes introFadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
#intro{animation:introFadeUp .9s ease-out both}

@media (prefers-reduced-motion: reduce){
    #intro, .gallery img, .feature, .card{animation:none !important;transition:none !important}
}

/* small screen adjustments */
@media (max-width:640px){
    /* reduce horizontal padding so images aren't pushed off on narrow tall devices */
    #intro{padding:24px 20px}
    .intro-mirror{padding:24px}
    .intro-content h2{font-size:20px}
    .intro-wrap{gap:12px}
    .intro-image img{border-radius:10px;max-width:360px}
    .intro-content p{font-size:15px}
    .cta{padding:9px 12px;border-radius:10px}
}

/* Responsive tweaks */
@media (max-width:900px){
    .intro-wrap{flex-direction:column}
    .intro-image{margin-right:0;transform:none}
    .intro-content .vertical-label{display:none}
    .intro-content h2{font-size:24px}
}

/* Very narrow / tall device fixes (like iPhone 14 Pro Max portrait) */
@media (max-width:430px){
    #intro{padding:18px 14px}
    .intro-wrap{flex-direction:column-reverse;align-items:flex-start}
    /* ensure image is visible and scales down */
    .intro-image{flex:0 0 auto;margin:0;transform:none;width:100%}
    .intro-image img{max-width:100%;height:auto}
    .intro-content{width:100%;padding:8px 0}
}

/* Top carousel styles */
.top-carousel{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: calc(80vh - 60px);
    min-height: 400px;
    margin-top: 0px;
    background: transparent;
    /* Handle iOS Safari dynamic viewport */
    height: calc(80vh - 60px);
    height: calc(80vh - 60px);
}
.carousel-window{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    /* Prevent text selection during swipe */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Hardware acceleration for smooth animations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.carousel-track{
    display: flex;
    transition: transform .6s cubic-bezier(.2,.9,.2,1);
    height: 100%;
    will-change: transform;
    /* Hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.carousel-item{
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    /* Prevent image dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}
.carousel-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Prevent image dragging and selection */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}
.carousel-nav{
    position: absolute;
    background: rgba(255,255,255,.2);
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: white;
    z-index: 10;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Improve touch target */
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }
.carousel-nav:hover, .carousel-nav:active {
    background: rgba(255,255,255,.4);
    transform: scale(1.05);
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicators .indicator:hover {
    background: rgba(255,255,255,0.8);
}

/* Mobile optimizations */
@media (max-width: 1024px) {
    .top-carousel {
        height: calc(60vh - 50px);
        min-height: 280px;
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .top-carousel {
        height: calc(50vh - 40px);
        min-height: 250px;
        margin-top: 50px;
    }
    
    .carousel-nav {
        padding: 12px;
        font-size: 20px;
        min-width: 44px;
        min-height: 44px;
    }
    .carousel-nav.prev { left: 15px; }
    .carousel-nav.next { right: 15px; }
}

/* iPhone 14 Pro Max and similar large phones */
@media (max-width: 430px) and (orientation: portrait) {
    .top-carousel {
        height: calc(50vh - 40px);
        min-height: 250px;
        margin-top: 40px;
    }
    
    .carousel-nav {
        padding: 8px;
        font-size: 18px;
        min-width: 40px;
        min-height: 40px;
    }
    .carousel-nav.prev { left: 10px; }
    .carousel-nav.next { right: 10px; }
}

/* Extra small phones */
@media (max-width: 375px) {
    .top-carousel {
        height: 40vh;
        min-height: 220px;
        max-height: 300px;
    }
    
    .carousel-nav {
        padding: 6px;
        font-size: 16px;
        min-width: 36px;
        min-height: 36px;
    }
    .carousel-nav.prev { left: 8px; }
    .carousel-nav.next { right: 8px; }
}

/* Landscape orientation for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .top-carousel {
        height: 80vh;
        min-height: 200px;
        max-height: 400px;
    }
}

/* Specific fixes for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .top-carousel {
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    @media (max-width: 768px) {
        .top-carousel {
            height: 50vh;
            height: calc(50 * var(--vh, 1vh));
        }
    }
    
    @media (max-width: 430px) {
        .top-carousel {
            height: 45vh;
            height: calc(45 * var(--vh, 1vh));
        }
    }
}

/* Image banner (replaces previous ticker) */
.image-banner{width:100%;display:block;background:transparent;overflow:hidden}
.image-banner .banner-track{display:flex;gap:0;align-items:center;min-width:200%;}
.image-banner .banner-track img{width:50%;height:56px;object-fit:cover;display:block}

/* Text banner: white text on a dark-green strip to match the site's palette */
.text-banner{
    width: 100%;
    display: block;
    overflow: hidden;
    background-color: #8f4f3b;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}
.text-banner-track{
    display: flex;
    align-items: center;
    min-width: 200%;
    gap: 3rem;
    padding: 0 1rem;
    animation: textBannerScroll 30s linear infinite;
    box-sizing: border-box;
    height: 100%;
}
.text-banner-item{
    white-space: nowrap;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    padding: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* subtle ghost/outline effect for repeated background text (mimics faint repeated logo in image) */
.text-banner-item::before{content:attr(data-ghost);position:absolute;left:-9999px}
.text-banner-track{position:relative}
.text-banner-item{position:relative}
.text-banner-item::after{content:attr(data-ghost);position:absolute;left:0;top:0;color:rgba(255,255,255,0.06);transform:translateY(-2px);font-weight:900;letter-spacing:2px}

.paddle-icon{display:inline-block;margin-left:10px;font-size:20px;vertical-align:middle}

@keyframes textBannerScroll{
    0%{transform:translateX(0)}
    100%{transform:translateX(-50%)}
}

.text-banner-track{animation:textBannerScroll 18s linear infinite}

/* Slim heights per breakpoint to match the visual requirements */
.text-banner{height:56px}
@media (max-width:1200px){ 
    .text-banner{height:44px} 
    .text-banner-item{font-size:18px} 
}
@media (max-width:900px){ 
    .text-banner{height:38px} 
    .text-banner-item{font-size:16px} 
}
@media (max-width:768px){ 
    .text-banner{
        height:36px;
        overflow-x: hidden;
    } 
    .text-banner-item{
        font-size:14px;
        padding: 10px 0;
    }
    .text-banner-track{
        gap: 2rem;
        padding: 0 0.5rem;
    }
}
@media (max-width:480px){ 
    .text-banner{
        height:32px;
        overflow-x: hidden;
        position: relative;
    } 
    .text-banner-item{
        font-size:13px;
        padding: 8px 0;
        letter-spacing: 0.5px;
    }
    .text-banner-track{
        gap: 1.5rem;
        padding: 0 0.25rem;
        animation: textBannerScroll 15s linear infinite;
    }
    .paddle-icon{
        font-size: 14px;
        margin-left: 6px;
    }
}

@media (prefers-reduced-motion: reduce){
    .text-banner-track{animation:none}
}

@media (prefers-reduced-motion: reduce){
    .image-banner .banner-track{animation:none}
}

/* Scrolling ticker/banner */
.ticker-wrap{overflow:hidden;padding:12px 0;background:linear-gradient(90deg,#071428, #0b2a3b);}
.ticker{display:flex;gap:40px;align-items:center;white-space:nowrap;animation:scrollLeft 18s linear infinite}
.ticker-item{font-weight:800;letter-spacing:1px;color:#023020;padding:10px 26px;border-radius:6px;background:linear-gradient(90deg,#ffe8cc,#ffd1a8);box-shadow:0 8px 22px rgba(0,0,0,.12);font-size:20px}

/* duplicate container to create seamless loop */
.ticker::after{content:'';display:block;width:40px}
.ticker-wrap .ticker{--repeat:2}

@keyframes scrollLeft{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.ticker-wrap:hover .ticker{animation-play-state:paused}

@media (max-width:760px){
    .ticker-item{font-size:16px;padding:8px 14px}
}

/* Pickleball Page Styles */
.pickleball-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.pickleball-hero .hero-image {
    position: absolute;
    inset: 0;
}

.pickleball-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pickleball-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.5rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.court-details {
    padding: 4rem 2rem;
    background-color: #fdf6e3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #2e4a27;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.court-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2e4a27;
    margin-bottom: 1rem;
}

.court-gallery {
    margin: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.facility-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.facility-item h3 {
    color: #2e4a27;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.price-card h3 {
    color: #2e4a27;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-style: normal;
    font-weight: bold;
    letter-spacing: normal;
}

.price-card .price {
    font-size: 2rem;
    color: #ff8c00;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-style: normal;
    letter-spacing: normal;
}

.price-card .time {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: normal;
    font-weight: bold;
    line-height: 1.6;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.price-card ul li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.price-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e4a27;
}

/* Index Page Pricing Styles */
#pricing {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

#pricing h2 {
    text-align: center;
    color: #2e4a27;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
}

#pricing > p {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-style: normal;
    font-weight: bold;
    line-height: 1.6;
}

.pricing-category {
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-category h3 {
    text-align: center;
    color: #2e4a27;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    font-style: normal;
    letter-spacing: normal;
    padding: 1rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 12px;
    border-left: 4px solid #ff8c00;
}

.price-card h4 {
    color: #2e4a27;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-style: normal;
    letter-spacing: normal;
}

.price-card .price-alt {
    font-size: 1.2rem;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.btn-price {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    background: linear-gradient(135deg, #e67e00, #cc7000);
}

.cta-section {
    text-align: center;
    padding: 4rem 0;
    background-color: #ffebcc;
    margin: 2rem -2rem -4rem;
    padding: 4rem 2rem;
}

.cta-section h2 {
    color: #2e4a27;
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .pickleball-hero {
        height: 50vh;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 1.2rem;
    }

    .court-details {
        padding: 2rem 1rem;
    }

    .gallery-image {
        height: 200px;
    }

    .price-card {
        padding: 1.5rem;
    }
}

/* Animation utilities */
:root{
    --anim-ease: cubic-bezier(.2,.9,.2,1);
    --anim-reset: cubic-bezier(.6,.2,.4,.1);
}

.animate{
    opacity:0;transform:translateY(12px);
    transition:opacity .5s var(--anim-ease),transform .55s var(--anim-ease);
    will-change:opacity,transform
}
.animate.inview{opacity:1;transform:none}
/* quick fade-out when leaving viewport */
.animate:not(.inview){
    transition:opacity .3s var(--anim-reset),transform .35s var(--anim-reset);
}

/* Stagger helpers via data-delay attribute (ms) handled in JS by setting inline style ) */
.anim-pop{
    opacity:0;transform:scale(.98);
    transition:opacity .45s var(--anim-ease),transform .45s var(--anim-ease);
    will-change:opacity,transform
}
.anim-pop.inview{opacity:1;transform:none}
.anim-pop:not(.inview){
    transition:opacity .3s var(--anim-reset),transform .3s var(--anim-reset);
}

/* Buttons entrance variant */
.anim-cta{
    opacity:0;transform:translateY(8px) scale(.98);
    transition:opacity .45s var(--anim-ease),transform .45s var(--anim-ease);
    will-change:opacity,transform
}
.anim-cta.inview{opacity:1;transform:none}
.anim-cta:not(.inview){
    transition:opacity .3s var(--anim-reset),transform .3s var(--anim-reset);
}

/* Cards and features slight slide from below */
.anim-card{
    opacity:0;transform:translateY(18px);
    transition:opacity .6s var(--anim-ease),transform .6s var(--anim-ease);
    will-change:opacity,transform
}
.anim-card.inview{opacity:1;transform:none}
.anim-card:not(.inview){
    transition:opacity .35s var(--anim-reset),transform .35s var(--anim-reset);
}

@media (prefers-reduced-motion: reduce){
    .animate, .anim-pop, .anim-cta, .anim-card { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Falling balls (decorative) */
.falling-ball{
    position:absolute;left:0;top:-40px;width:22px;height:22px;border-radius:50%;
    /* inline SVG of a pickleball (white-yellow with perforations). Using data URI avoids extra file.
       The SVG scales with the element's width/height. */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><defs><radialGradient id='g' cx='30%' cy='25%'><stop offset='0' stop-color='%23ebfbe8'/><stop offset='0.45' stop-color='%23c7f3c7'/><stop offset='1' stop-color='%239fe08a'/></radialGradient></defs><circle cx='32' cy='32' r='30' fill='url(%23g)' stroke='%2371a86a' stroke-width='1.5'/><g fill='%23546d43' opacity='0.95'><circle cx='20' cy='16' r='2.4'/><circle cx='44' cy='16' r='2.4'/><circle cx='16' cy='32' r='2.4'/><circle cx='32' cy='48' r='2.4'/><circle cx='48' cy='32' r='2.4'/></g><path d='M10 22c6-6 18-6 24 0' fill='none' stroke='%23546d43' stroke-width='1.2' stroke-linecap='round' opacity='0.28'/><path d='M10 42c6 6 18 6 24 0' fill='none' stroke='%23546d43' stroke-width='1.2' stroke-linecap='round' opacity='0.28'/></svg>");
    background-size: cover; background-position: center; box-shadow:0 6px 12px rgba(0,0,0,0.16);pointer-events:none;opacity:0;transform:translateY(-10px) rotate(0deg);will-change:transform,opacity}

@keyframes fallDown{
    0%{opacity:0; transform: translateY(-10px) rotate(0deg)}
    10%{opacity:1}
    100%{opacity:1; transform: translateY(120vh) rotate(360deg)}
}

/* small horizontal drift variants using CSS custom property */
.falling-ball[data-drift="left"]{ transform-origin: center; }
.falling-ball[data-drift="right"]{ transform-origin: center; }

@media (prefers-reduced-motion: reduce){
    .falling-ball{display:none !important}
}

/* Image Gallery Styles */
#gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#gallery h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: bold;
}

#gallery p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Gallery Filter Buttons */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #3498db;
}

#modalImage {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
}

.modal-nav {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.modal-info {
    margin-top: 20px;
    color: white;
}

.modal-info h3 {
    margin: 10px 0 5px 0;
    font-size: 1.5rem;
}

.modal-info p {
    margin: 0;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    #gallery h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 10px;
    }
    
    .modal-nav {
        font-size: 24px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}