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

body {
    width: 1440px;
    height: 1024px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    background-image: url('assets/WEB/MAIN WEB BUNNER + WEB BACKGROUND PHOTOS/web beckground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Light mode: when body has .light-mode, swap background image */
body.light-mode {
    background-image: url('assets/WEB/MAIN WEB BUNNER + WEB BACKGROUND PHOTOS/web beckground light mode.png');
}

/* Fixed Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    height: auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-bg {
    width: 100%;
    height: auto;
    display: block;
}

.nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.nav-left,
.nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    transform: translateY(-40px);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 175px;
    height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.nav-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Navigation Button Hover Effect */
.nav-btn:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Navigation Button Click Effect */
.nav-btn:active {
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Theme Toggle Button */
.theme-toggle {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.theme-toggle-button {
    position: relative;
    width: 60px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
}

.theme-toggle-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: left 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-toggle-icon {
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 2px;
}

.theme-toggle-icon svg {
    width: 12px;
    height: 12px;
    fill: #000000;
    stroke: #000000;
    stroke-width: 0.5;
}

body.light-mode .theme-toggle-thumb {
    left: calc(100% - 3px - 20px);
}

body.light-mode .theme-toggle-button {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Page Content */
.page-content {
    margin-top: 200px;
    padding: 40px 20px;
    width: 100%;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Mobile: Use svh for better viewport handling */
@media (max-width: 768px) {
    .page-content {
        min-height: calc(100svh - 200px);
    }
}

/* Home Page Styles */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.home-image {
    max-width: 90%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.home-image:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Page Title Shared Styles */
.page-title {
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-title:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* About Page Styles */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.about-image {
    max-width: 90%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Links Page Styles */
.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.section-logo {
    max-width: 90%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.section-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.link-row {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Light Mode: Link containers get darker background for better readability */
body.light-mode .link-row {
    background: rgba(0, 0, 0, 0.18);
}

.link-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.link-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 18px;
    color: #ffffff;
}

.link-label {
    font-weight: bold;
    color: #ffffff;
}

.external-link {
    color: #4fc3f7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.external-link:hover {
    color: #81d4fa;
    text-decoration: underline;
}

.email-text {
    color: #ffffff;
}

/* Our Packages Page Styles */
.packages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
}

.banner {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 20px 0 10px 0;
}

/* Image Row Layouts */
.image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.row-3 {
    max-width: 900px;
}

.row-4 {
    max-width: 1200px;
}

.row-5 {
    max-width: 1400px;
    gap: 25px;
}

.package-image {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Package Image Hover Effect */
.package-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
    z-index: 10;
}

/* Row-specific sizing */
.row-3 .package-link {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.row-4 .package-link {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
}

.row-5 .package-link {
    flex: 0 0 calc(20% - 20px);
    max-width: calc(20% - 20px);
}

.row-3 .package-image,
.row-4 .package-image,
.row-5 .package-image {
    width: 100%;
    height: auto;
}

/* Responsive adjustments for exact sizing */
@media (max-width: 1440px) {
    body {
        width: 100%;
    }
    
    .navbar {
        width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional styling for better visual appearance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
}

/* Package Link Wrapper */
.package-link {
    display: inline-block;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 280px;
}

.package-link .package-image {
    cursor: pointer;
    width: 100%;
    height: auto;
}

/* Package Details Page Styles */
.package-details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
}

/* Package Banner Section */
.package-banner-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.package-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Package Balls Section */
.package-balls-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.ball-image {
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ball-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Balls Layout - 1 image (large centered) */
.balls-layout-1 {
    justify-content: center;
}

.balls-layout-1 .ball-image {
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* Balls Layout - 2 images (side by side) */
.balls-layout-2 {
    justify-content: center;
}

.balls-layout-2 .ball-image {
    width: calc(50% - 10px);
    max-width: 500px;
    height: auto;
}

/* Balls Layout - 4 images (1 row) */
.balls-layout-4 {
    justify-content: center;
}

.balls-layout-4 .ball-image {
    width: calc(25% - 15px);
    max-width: 280px;
    height: auto;
}

/* Balls Layout - 9 images (2 rows: 5 + 4) */
.balls-layout-9 {
    justify-content: center;
}

.balls-layout-9 .ball-image {
    width: calc(20% - 16px);
    max-width: 220px;
    height: auto;
}

/* Balls Layout - 10 images (2 rows: 5 + 5) */
.balls-layout-10 {
    justify-content: center;
}

.balls-layout-10 .ball-image {
    width: calc(20% - 16px);
    max-width: 220px;
    height: auto;
}

/* Balls Layout - 11 images (VIP packages) */
.balls-layout-11 {
    justify-content: center;
}

.balls-layout-11 .ball-image {
    width: calc(20% - 16px);
    max-width: 200px;
    height: auto;
}

/* Balls Layout - 25 images (FREE packages - 5 rows of 5) */
.balls-layout-25 {
    justify-content: center;
}

.balls-layout-25 .ball-image {
    width: calc(20% - 16px);
    max-width: 200px;
    height: auto;
}

/* Balls Layout - Flexible (for other counts) */
.balls-layout-flex {
    justify-content: center;
}

.balls-layout-flex .ball-image {
    width: calc(20% - 16px);
    max-width: 220px;
    height: auto;
}

/* Package Description Section */
.package-description-section {
    width: 100%;
    max-width: 1200px;
}

.package-description-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.package-description-box p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
    margin: 0;
}

/* Light Mode: Package description text becomes black */
body.light-mode .package-description-box p,
body.light-mode .package-description-box,
body.light-mode .package-description-box * {
    color: #000000;
}

/* Package Link Section */
.package-link-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

.package-link-box {
    background: rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(76, 175, 80, 0.4);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.package-link-box h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
}

.purchase-link {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(76, 175, 80, 0.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(76, 175, 80, 1);
}

.purchase-link:hover {
    background: rgba(76, 175, 80, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* Responsive Design for Package Details */
@media (max-width: 1200px) {
    .balls-layout-4 .ball-image,
    .balls-layout-9 .ball-image,
    .balls-layout-10 .ball-image,
    .balls-layout-11 .ball-image,
    .balls-layout-flex .ball-image {
        width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .package-description-box {
        padding: 25px;
    }

    .package-description-box p {
        font-size: 14px;
    }

    .balls-layout-2 .ball-image {
        width: 100%;
    }

    .balls-layout-4 .ball-image,
    .balls-layout-9 .ball-image,
    .balls-layout-10 .ball-image,
    .balls-layout-11 .ball-image,
    .balls-layout-flex .ball-image {
        width: calc(50% - 10px);
    }

    .purchase-link {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .balls-layout-4 .ball-image,
    .balls-layout-9 .ball-image,
    .balls-layout-10 .ball-image,
    .balls-layout-11 .ball-image,
    .balls-layout-flex .ball-image {
        width: 100%;
    }
}

/* Image Popup System */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    display: none;
    opacity: 0;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    animation: popupFadeIn 0.3s ease;
}

/* Mobile: Use svh for popup images */
@media (max-width: 768px) {
    .popup-content img {
        max-height: 90svh;
    }
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    z-index: 10000;
}

.popup-close-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.8);
}

.popup-close-btn:active {
    transform: scale(0.95);
}

/* Make ball images appear clickable */
.ball-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.ball-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive popup adjustments */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        max-height: 95%;
    }

    .popup-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .popup-content img {
        max-height: 80svh;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES (max-width: 768px)
   Desktop layout remains 100% unchanged above
   ============================================ */
@media (max-width: 768px) {
    /* Body adjustments for mobile */
    body {
        width: 100%;
        height: auto;
        min-height: 100svh;
        transform: none !important; /* Prevent JS from scaling body */
    }

    /* Navigation Bar - Mobile */
    .navbar {
        width: 100%;
        position: relative;
        transform: none;
        left: 0;
    }

    /* Fix fixed position elements on mobile */
    .popup-overlay {
        position: fixed;
        /* Keep fixed for popup overlay - needed for modal functionality */
    }

    .navbar-bg {
        width: 100%;
        height: auto;
    }

    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide nav buttons by default on mobile */
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100svh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 80px 20px 20px;
        gap: 15px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    /* Show nav buttons when menu is open */
    .nav-buttons.mobile-menu-open {
        transform: translateX(0);
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        transform: none;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        max-width: 100%;
        height: 60px;
    }

    .theme-toggle {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Page Content - Mobile */
    .page-content {
        margin-top: 0;
        padding: 20px 10px;
        min-height: auto;
    }

    /* Home Page - Mobile */
    .home-container {
        padding: 10px;
        gap: 20px;
    }

    .home-image {
        max-width: 95%;
    }

    /* About Page - Mobile */
    .about-container {
        padding: 10px;
        gap: 20px;
    }

    .about-image {
        max-width: 95%;
    }

    /* Links Page - Mobile */
    .links-container {
        padding: 10px;
        gap: 20px;
    }

    .section-logo {
        max-width: 95%;
        margin-bottom: 15px;
    }

    .link-row {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .link-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .link-text {
        font-size: 14px;
        justify-content: center;
        text-align: center;
    }

    /* Our Packages Page - Mobile */
    .packages-container {
        padding: 10px;
        gap: 20px;
    }

    .banner {
        max-width: 100%;
        margin: 10px 0;
    }

    .image-row {
        flex-direction: column;
        gap: 15px;
    }

    .row-3 .package-link,
    .row-4 .package-link,
    .row-5 .package-link {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .package-image {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    /* Package Details Page - Mobile */
    .package-details-container {
        padding: 10px;
        gap: 20px;
    }

    .package-banner-section {
        margin-bottom: 15px;
    }

    .package-banner {
        width: 100%;
    }

    .package-balls-section {
        gap: 10px;
        margin: 20px 0;
    }

    /* Balls Layout - Mobile: Stack to 1-2 per row */
    .balls-layout-1 .ball-image {
        max-width: 100%;
    }

    .balls-layout-2 .ball-image {
        width: calc(50% - 5px);
        max-width: 100%;
    }

    .balls-layout-4 .ball-image,
    .balls-layout-9 .ball-image,
    .balls-layout-10 .ball-image,
    .balls-layout-11 .ball-image,
    .balls-layout-25 .ball-image,
    .balls-layout-flex .ball-image {
        width: calc(50% - 5px);
        max-width: 100%;
    }

    .package-description-section {
        width: 100%;
    }

    .package-description-box {
        padding: 20px;
    }

    .package-description-box p {
        font-size: 14px;
        line-height: 1.6;
    }

    .package-link-box {
        padding: 20px;
    }

    .package-link-box h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .purchase-link {
        padding: 12px 25px;
        font-size: 16px;
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Extra small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .nav-btn {
        height: 50px;
        max-width: 150px;
    }

    .theme-toggle-button {
        width: 50px;
        height: 24px;
    }

    .theme-toggle-thumb {
        width: 18px;
        height: 18px;
    }

    .theme-toggle-icon {
        width: 16px;
        height: 16px;
    }

    .theme-toggle-icon svg {
        width: 10px;
        height: 10px;
    }

    .home-image,
    .about-image,
    .section-logo {
        max-width: 98%;
    }

    .link-logo {
        width: 60px;
        height: 60px;
    }

    .link-text {
        font-size: 12px;
    }

    .banner {
        margin: 5px 0;
    }

    .package-description-box {
        padding: 15px;
    }

    .package-description-box p {
        font-size: 13px;
    }

    .package-link-box {
        padding: 15px;
    }

    .package-link-box h3 {
        font-size: 18px;
    }

    .purchase-link {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Stack all ball images to 1 per row on very small screens */
    .balls-layout-2 .ball-image,
    .balls-layout-4 .ball-image,
    .balls-layout-9 .ball-image,
    .balls-layout-10 .ball-image,
    .balls-layout-11 .ball-image,
    .balls-layout-25 .ball-image,
    .balls-layout-flex .ball-image {
        width: 100%;
        max-width: 100%;
    }
}

