:root {
    --bg-color: #2b2b2b;
    --text-color: #ffffff;
    --accent-color: #ff3366;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Wrapper Layout */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-gif {
    width: 100%;
    /* On mobile, it acts as a horizontal banner */
    height: 8vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.layout-gif.top-left {
    /* Mobile: top */
}

.layout-gif.bottom-right {
    /* Mobile: bottom */
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    width: 100%;
}

/* Slider Section (Row 1) */
.slider-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px;
    box-sizing: border-box;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-item {
    display: inline-block;
    height: 40px;
    margin-right: 15px;
    border-radius: 10px;
    background-color: #524f4f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.slider-item:hover {
    transform: scale(1.05);
}

.slider-item img {
    height: 100%;
    border-radius: 10px;
    padding: 4px;
}

/* Contact Link Section (Row 2) */
.contact-section {
    text-align: center;
    margin: 30px 0;
}

.contact-link {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(45deg, #ff3366, #ff9933);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 51, 102, 0.6);
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Grid Section (Row 3) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.grid-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.03);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item.join-us {
    background: linear-gradient(135deg, #111, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
    border: 2px dashed var(--accent-color);
}

.grid-item.join-us:hover {
    background: linear-gradient(135deg, #222, #444);
    color: var(--accent-color);
}

.grid-item.join-us span {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px;
}


/* Desktop Overrides */
@media (min-width: 768px) {
    .main-content {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        min-height: 100vh;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Custom Popup Modal Styling */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    padding: 0;
    position: relative;
}

.modal-body img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.btn-close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#promoOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
#promoBox {
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.promoItem {
    position: relative;
    margin-bottom: 15px;
}

.promoItem img {
    width: 100%;
    height: auto;
    display: block;
}

.closeSingle {
    position: absolute;
    top: 5px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#closeAll {
    width: 40%;
    padding: 10px;
    background: red;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}
