/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
}

.loading-image {
    max-width: 900px;
    max-height: 900px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hidden class for fade transitions */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Fade out animation */
.fade-out {
    opacity: 0;
}

/* Initially hide main content */
#main-content {
    transition: opacity 0.8s ease-in-out;
}

/* Popup Modal */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease-in-out;
}

.popup-content {
    position: relative;
    width: 95%;
    max-width: 800px;
    height: 85vh;
    max-height: 700px;
    background-image: url('images/map.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Popup Text Content */
.popup-text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    padding: 60px 30px 30px;
    text-align: center;
    color: white;
}

.popup-heading {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.popup-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.popup-powered {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 25px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: #d4af37;
}

.popup-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.popup-button:hover {
    transform: translateY(-2px);
}

.popup-button-image {
    width: auto;
    height: 80px;
    transition: all 0.3s ease;
}

.popup-button:hover .popup-button-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Responsive Text */
@media (max-width: 768px) {
    .popup-text-content {
        padding: 40px 20px 25px;
    }
    
    .popup-heading {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .popup-description {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .popup-powered {
        font-size: 0.7rem;
        margin-bottom: 20px;
    }
    
    .popup-button-image {
        height: 65px;
    }
}

@media (max-width: 480px) {
    .popup-text-content {
        padding: 30px 15px 20px;
    }
    
    .popup-heading {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .popup-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .popup-powered {
        font-size: 0.6rem;
        margin-bottom: 18px;
    }
    
    .popup-button-image {
        height: 55px;
    }
}

/* Hero Section */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #e9e7d9 0, #e9e7d9 50%, rgba(233, 231, 217, .8) 60%, rgba(233, 231, 217, .6) 70%, rgba(233, 231, 217, .4) 80%, rgba(233, 231, 217, .2) 90%, rgba(233, 231, 217, 0) 100%);
    padding: 0;
    margin: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Navigation Section */
.nav-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #e9e7d9 0, #e9e7d9 50%, rgba(233, 231, 217, .8) 60%, rgba(233, 231, 217, .6) 70%, rgba(233, 231, 217, .4) 80%, rgba(233, 231, 217, .2) 90%, rgba(233, 231, 217, 0) 100%);
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.nav-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #e9e7d9;
}

.mobile-logo {
    height: 60px;
    width: auto;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-icon {
    width: 32px;
    height: 32px;
}

/* Mobile Hero Image */
.mobile-hero {
    display: none;
}

/* Navigation Blur Overlay */
.nav-blur-overlay {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1), 
        rgba(255, 255, 255, 0.7), 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0));
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    filter: blur(3px);
    opacity: 0.9;
    z-index: 5;
    pointer-events: none;
    margin-top: -10px;
    margin-bottom: -20px;
}

/* Hero Video Section */
.hero-video-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
    z-index: 2;
}

/* Mobile Video Elements - Hidden on Desktop */
.mobile-video-top,
.mobile-video-bottom {
    display: none;
}

.video-container {
    width: 100%;
    position: relative;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

/* Hero Text Overlay */
.hero-text-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-text-image {
    width: 95%;
    height: auto;
    max-width: 1200px;
    min-width: 800px;
    display: block;
}

/* OPP Section */
.opp {
    height: 400px;
    background-color: #2e2c2a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    overflow: hidden;
}

/* OPP Header */
.opp-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.about-btn {
    max-height: 80px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.about-btn:hover {
    opacity: 0.8;
}

/* OPP Slider */
.opp-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    padding: 0 50px;
}

.slider-container {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border-radius: 8px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    transform: translateX(0);
}

.slider-card {
    min-width: 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.slider-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.slider-card img:hover {
    transform: scale(1.05);
}

/* Slider Arrows */
.slider-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* OPP Pagination */
.opp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
}

.pagination-dot {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(45deg);
    border-radius: 2px;
    margin: 0 2px;
}

.pagination-dot.active {
    background: #d4af37;
    transform: rotate(45deg) scale(1.2);
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .opp {
        height: 350px;
        padding: 15px 0;
    }
    
    .opp-slider {
        padding: 0 30px;
    }
    
    .slider-card {
        min-width: 50%;
    }
    
    .slider-card img {
        height: 140px;
    }
    
    .about-btn {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .opp {
        height: 300px;
    }
    
    .slider-card {
        min-width: 100%;
    }
    
    .slider-card img {
        height: 120px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Footer Section */
.footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%);
}

/* Social Icon Colors */
.social-icon.discord {
    background-color: #5865f2;
}

.social-icon.discord img {
    filter: brightness(0) saturate(100%) invert(1);
}

.social-icon.twitter {
    background-color: #000;
}

.social-icon.twitter img {
    filter: brightness(0) saturate(100%) invert(1);
}

.social-icon.line {
    background-color: #00c300;
}

.social-icon.line img {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Hover Effects */
.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Text */
.footer-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.footer-text p {
    margin: 5px 0;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0;
    }
    
    .social-icons {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon img {
        width: 20px;
        height: 20px;
    }
    
    .footer-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon img {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Responsive Rules */
@media (max-width: 768px) {
    /* Hide desktop nav, show mobile nav */
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    /* Hide blur overlay on mobile */
    .nav-blur-overlay {
        display: none;
    }
    
    /* Hero images - show mobile version */
    .desktop-hero {
        display: none;
    }
    
    .mobile-hero {
        display: block;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding: 0;
    }
    
    .hero-image {
        width: 100%;
        max-width: none;
    }
    
    /* Hero video section mobile adjustments */
    .hero-video-section {
        padding: 0;
        background: linear-gradient(180deg, #e9e7d9 0, #e9e7d9 50%, rgba(233, 231, 217, .8) 60%, rgba(233, 231, 217, .6) 70%, rgba(233, 231, 217, .4) 80%, rgba(233, 231, 217, .2) 90%, rgba(233, 231, 217, 0) 100%);
    }
    
    /* Show mobile video elements */
    .mobile-video-top,
    .mobile-video-bottom {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .mobile-top-image,
    .mobile-bottom-image {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Video container mobile styling */
    .video-container {
        width: calc(100% - 40px);
        max-width: 500px;
        height: 280px;
        margin: 20px auto;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        position: relative;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    /* Hide desktop text overlay on mobile */
    .desktop-only {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .mobile-logo {
        height: 50px;
    }
    
    .hamburger-icon {
        width: 28px;
        height: 28px;
    }
    
    .hero-image {
        width: 100%;
        max-width: none;
    }
    
    /* Smaller video container on small mobile */
    .video-container {
        width: calc(100% - 30px);
        max-width: 400px;
        height: 225px;
        margin: 15px auto;
    }
}
