:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-color: #00ffff;
    --text-color: #ffffff;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Add these new styles for navbar toggler */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 255, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--text-color) !important;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    font-weight: 600 !important;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.1);
}

.social-icon {
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.navbar .dropdown-menu.games-dropdown {
    --bs-dropdown-bg: rgba(26, 26, 26, 0.95);
    --bs-dropdown-border-color: rgba(255, 255, 255, 0.1);
    --bs-dropdown-padding-x: 1rem;
    --bs-dropdown-padding-y: 1rem;
    min-width: 320px;
    border: 1px solid rgba(95, 95, 95, 0.288);
    backdrop-filter: blur(10px);
}

/* Add these new styles for dropdown links */
.navbar .dropdown-menu.games-dropdown .dropdown-item {
    color: var(--text-color);
    padding: 0;
    background: transparent;
}

.navbar .dropdown-menu.games-dropdown .dropdown-item:hover,
.navbar .dropdown-menu.games-dropdown .dropdown-item:focus {
    background: transparent;
    color: var(--text-color);
}

/* Games Dropdown */
.dropdown-menu {
    background-color: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    min-width: 320px;
}

.game-preview {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.75rem;
    transition: transform 0.3s ease;
}

.game-preview:hover {
    transform: scale(1.02);
    cursor:pointer;
}

.game-preview img {
    width: 100%;
    border-radius: 8px;
}

/* Sections */
section {
    min-height: 100vh;
    height: 100vh;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Additional styles for navbar */
.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
#hero {
    background-color: #212121;
    padding-top: 180px;
    margin-top: 0;
    position: relative;
    overflow: visible;
}

.hero-header {
    text-align: center;
    margin-top: 1rem;
}

.hero-header h1 {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-color);
}

.hero-header .lead {
    font-size: 1.5rem;
    color: rgba(150, 150, 150, 0.892);
    opacity: 0.9;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 8px;
}

#gameCarousel {
    position: relative;
    overflow: visible;
    cursor: grab;
    user-select: none;
}

#gameCarousel:active {
    cursor: grabbing;
}

.carousel-item {
    padding: 2rem 0;
    touch-action: pan-y pinch-zoom;
}

.carousel-item .row {
    align-items: center;
    margin: 0;
    display: flex;
    width: 100%;
}

.carousel-item .col-md-6 {
    padding: 0 1rem;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-controls-container {
    position: absolute;
    width: 100%;
    top: 60%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    z-index: 10;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Game Info Card */
.game-info-card {
    background: rgba(44, 44, 44, 0.9);
    padding: 2rem;
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-icon {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    border-radius: 8px !important;
    background-color: #9696962d;
}
/* About Section */
#about {
    background-color: var(--primary-dark);
    padding-top: 120px;
}

#about .container {
    padding-top: 2rem;
}

#about h2 {
    color: var(--accent-color);
}

#about h4 {
    color: var(--accent-color);
}

#about p {
    color: white;
}

.feature-card {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95));
    padding: 2rem;
    height: 100%;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(233, 233, 233, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover::before {
    animation: shimmer 1.5s infinite;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: #00ffff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #cccccc;
    margin-bottom: 0;
    line-height: 1.6;
}

.features-section {
    margin-top: 4rem;
}

#games {
    background-color: #212121;
    padding-top: 120px;
}

#games .container {
    padding-top: 2rem;
}

.character-container {
    position: relative;
    height: 100%;
}

.game-character {
    max-width: 350px !important;
    filter: drop-shadow(0 0 10px rgba(209, 209, 209, 0.5));
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
    left: 0;
    top: 0;
}

.game-character.active {
    opacity: 1;
    position: relative;
}

.game-section-text {
    color: #cccccc;
    line-height: 1.8;
    margin-top: 1.5rem;
}

#games h2 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.nav-tabs {
    border-bottom: 1px solid var(--accent-color);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    white-space: nowrap;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-link {
    color: var(--text-color);
    border: none !important;
    padding: 1rem 2rem;
    transition: color 0.3s ease;
    margin: 0 !important;
    background: transparent !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

.nav-tabs .nav-link:hover {
    color: var(--accent-color);
    transform: none !important;
}

.nav-tabs .nav-link.active {
    color: var(--accent-color) !important;
    background-color: transparent !important;
    border: none;
    border-top: 2px solid white !important;
}

.tab-content {
    padding: 1rem 0;
    min-height: 280px; /* Adjust this value based on your longest content */
    position: relative;
}

.tab-pane {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active.show {
    opacity: 1;
    position: relative;
}

.tab-pane h2 {
    margin-bottom: 1.5rem;
}

/* Games Section Cards */
.game-card {
    background: var(--secondary-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card .card-body {
    padding: 1.5rem;
}

.card-body h5 {
    color: white;
}

.card-body p {
    color: white;
}

.card-ark {
    background: linear-gradient(145deg, #103110, #286e0a);
    border: 1px solid rgba(77, 255, 0, 0.1);
}

.card-battlefield {
    background: linear-gradient(145deg, #310e0e, #a31010);
    border: 1px solid rgba(255, 17, 0, 0.1);
}

.card-lineage {
    background: linear-gradient(145deg, #352601, #816003);
    border: 1px solid rgba(255, 208, 0, 0.1);
}

.card-ragnarok {
    background: linear-gradient(145deg, #2b3266, #4f5aa8);
    border: 1px solid rgba(139, 159, 247, 0.2);
    box-shadow: 0 5px 15px rgba(102, 116, 204, 0.15);
}

.lineage2 {
    background: linear-gradient(90deg, #ffd000, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0 0 10px rgba(255, 208, 0, 0.3);
}

.battlefield2 {
    background: linear-gradient(90deg, #ff1100, #ff4d00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0 0 10px rgba(255, 17, 0, 0.3);
}

.arksurvival {
    background: linear-gradient(90deg, #e9e635, #4dff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0 0 10px rgba(233, 230, 53, 0.3);
}

.ragnarok {
    background: linear-gradient(90deg, #8b9ff7, #6674cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0 0 10px rgba(102, 116, 204, 0.4);
}

/* Footer Styles */
.footer.section {
    min-height: auto;
    height: auto;
    padding: 4rem 0 2rem;
    display: block;
    align-items: center;
    margin-top: 0;
    background-color: var(--secondary-dark);
}

.footer {
    background-color: var(--secondary-dark);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.protojah-logo {
    max-width: 32px;
    margin-right: 5px;
}

.designer-credit {
    margin: 0;
    font-size: 0.9rem;
}

.designed-by {
    opacity: 0.7;
    margin-right: 5px;
}

.designer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;

}

.designer-link:hover {
    color: #00ffcc; /* You can adjust this color to match your theme */
}

.designer-link .iconify {
    font-size: 1em;
}

.footer p {
    color: white;
}

.footer h5 {
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Footer Games Dropdown */
.footer-links .dropdown-menu.footer-games-dropdown {
    background-color: var(--secondary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.footer-links .dropdown-menu.footer-games-dropdown .dropdown-item {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    margin-left: -5px;
    transition: all 0.3s ease;
}

.footer-links .dropdown-menu.footer-games-dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links .dropdown {
    position: relative;
}

.footer-links .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-contact li:hover {
    transform: translateX(10px);
}

.footer-contact a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.footer-contact .iconify {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact a:hover .iconify {
    transform: scale(1.2);
}

/* Add animation to footer sections */
.footer [data-aos] {
    transition-duration: 800ms;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .hero-header .lead {
        letter-spacing: 2px;
    }

    .section {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
        margin-bottom: 0;
    }
    
    #hero {
        padding-top: 100px;
    }

    .section + .section {
        margin-top: 0;
    }

    .game-title h2 {
        font-size: 1.2rem;
    }

    #about, #games {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .nav-tabs .nav-link {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .game-info-card {
        margin-bottom: 2rem;
    }
    
    .game-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .footer.section {
        margin-top: 0;
        padding: 3rem 0 1.5rem;
    }
}


/* Laptop specific adjustments */
@media (max-height: 900px) {
    section {
        padding: 80px 0;
        min-height: auto;
    }
    
    #about {
        padding-top: 80px;
    }



    #about h4 {
        font-size: 1rem;
    }

    #about p {
        font-size: 0.8rem;
    }
    
    #games h2 {
        font-size: 1.2rem;
    }

    .tab-content {
        min-height: 250px; /* Adjust this value based on your longest content */
    }

    .game-section-text { 
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .game-card h5 {
        font-size: 0.9rem;
    }

    .game-card p {
        font-size: 0.8rem;
    }
    
    .game-card {
        margin-bottom: 1.5rem;
    }

    .game-character {
        max-width: 300px !important;
    }

    .carousel-item {
        padding: 1rem 0;
    }

    .game-info-card {
        padding: 1.5rem;
    }
}


/* Adjust for very large screens */
@media (min-width: 2560px) {
    section .container {
        max-width: 1800px;
    }
}

/* About Hero Section */
/* About Hero Section */
#about-hero {
    background-color: #212121;
    padding-top: 120px;
    height: 100vh;
    min-height: 100vh;
    margin-top: 0;
    position: relative;
    overflow: visible;
}


#about-hero, #about-story, #vision-mission, #core-values, #join-us h1 {
    color: white;
}

#about-hero, #about-story, #vision-mission, #core-values, #join-us h2 {
    color: white;
}

#about-hero, #about-story, #vision-mission, #core-values, #join-us p {
    color: white;
}

.text-accent {
    color: var(--accent-color);
}

.stats-container {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(233, 233, 233, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.stats-container:hover::before {
    animation: shimmer 1.5s infinite;
}

.stats-games-container {
    padding: 2rem;
    border-radius: 15px;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Timeline Section */
#about-story {
    background-color: var(--primary-dark);
    padding-top: 120px;
    display: flex;
    align-items: center;
}

.timeline {
    position: relative;
    padding: 1rem 0;
    max-height: calc(100vh - 350px); 
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    width: 100%;
    margin-bottom: 2rem;
}


.timeline::-webkit-scrollbar {
    width: 6px;
}

.timeline::-webkit-scrollbar-track {
    background: transparent;
}

.timeline::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    height: calc(100% + 90px); /* Extended 
    height: 100%; /* Set to 100% */
    z-index: 0;
}

.timeline-item {
    margin-bottom: 2rem;
    padding: 0 1rem;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 2rem; /* Keep margin for last item */
}

.timeline-item .content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
}


.timeline-icon {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.timeline-text {
    flex-grow: 1;
}

.timeline-text p {
    margin-bottom: 0.5rem;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
    flex-direction: row-reverse;
}

.year {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin: 0 2rem;
}

.content {
    background: transparent;
    padding: 0.8rem !important;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.content:hover::before {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* Vision & Mission */
#vision-mission {
    background-color: #212121;
}

.vision-card {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(233, 233, 233, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.vision-card:hover::before {
    animation: shimmer 1.5s infinite;
}

.vision-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Core Values */
#core-values {
    background-color: var(--primary-dark);
}

.value-card {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(233, 233, 233, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.value-card:hover::before {
    animation: shimmer 1.5s infinite;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Join Us Section */
#join-us {
    background-color: #212121;
}


.join-features {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.join-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(233, 233, 233, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.join-features:hover::before {
    animation: shimmer 1.5s infinite;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-item .iconify {
    color: var(--accent-color);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.feature-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2rem !important;
        padding-right: 0 !important;
        flex-direction: row !important;
    }

    .year {
        margin: 0 1rem;
    }

    .aboutlogo {
        display: none;
    }
}

@media (max-height: 900px) {

    #about-hero p {
        font-size: 0.8rem;
    }

    #about-hero h1 {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2rem !important;
        padding-right: 0 !important;
        flex-direction: row !important;
    }

    .year {
        margin: 0 1rem;
    }

    #vision-mission {
        padding-top: 120px;
    }

    .card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .mission-card, .vision-card h3 {
        font-size: 1.2rem;
    }

    .mission-card, .vision-card p {
        font-size: 0.8rem;
    }

    .stats-container {
        padding: 1rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }
}

.mini-game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1;
    width: 120px;  /* Set fixed width to match original image size */
    height: 120px; /* Set fixed height to match original image size */
    margin: 0 auto; /* Center the card */
}

.mini-game-card:hover {
    transform: translateY(-5px);
}

.game-thumb {
    width: 120px;  /* Match original image dimensions */
    height: 120px; /* Match original image dimensions */
    object-fit: contain; /* Change to contain to prevent stretching */
    image-rendering: -webkit-optimize-contrast; /* Improve image rendering on webkit browsers */
    image-rendering: crisp-edges; /* Improve image rendering on other browsers */
}

.mini-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: center;
}

.mini-card-overlay h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.mini-game-card.lineage-card {
    border: 1px solid rgba(255, 208, 0, 0.2);
}

.mini-game-card.ark-card {
    border: 1px solid rgba(169, 179, 115, 0.2)
}

.mini-game-card.battlefield-card {
    border: 1px solid rgba(255, 17, 0, 0.2);
}

.mini-game-card.ragnarok-card {
    border: 1px solid rgba(70, 130, 180, 0.2);
}

@media (max-width: 768px) {

    .aboutlogo {
        display: none;
    }
    

    .stats-games-container .col-3 {
        padding: 0.25rem;  /* Reduce padding on mobile */
    }
    
    #about-story {
        padding-top:80px;
    }

    .mini-game-card {
        width: 70px;
        height: 70px; /* Slightly smaller on mobile */
        margin-bottom: 0.5rem;
    }

    .game-thumb {
        width: 70px;
        height: 70px; /* Slightly smaller on mobile */
    }

}

@media (max-width: 576px) {
    .mini-game-card {
        max-width: 80px; /* Even smaller on very small screens */
    }
}

@media (max-height: 900px) {
    #about-story {
        padding-top:100px;
    }

    .mini-game-card {
        width: 100px;
        height: 100px; /* Slightly smaller on mobile */
        margin-bottom: 0.5rem;
    }

    .game-thumb {
        width: 100px;
        height: 100px; /* Slightly smaller on mobile */
    }
    #about-story h2 {
        font-size: 1.2rem;
    }
    #about-story p {
        font-size: 1rem;
    }

    .timeline-item .content {
        gap: 0.5rem;
        padding: 0.8rem !important;
    }

    .year {
        padding: 0.3rem 0.5rem;
        margin: 0 1rem;
    }

    .timeline-text h4 {
        font-size: 1rem;
    }

    .timeline-text p {
        font-size: 0.8rem;
    }
}

/* Add these new media queries for Nest Hub and similar devices */
@media (min-width: 769px) and (max-width: 1024px) {


    .timeline {
        max-height: 500px; /* Fixed height for tablets/nest hub */
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }

    .timeline-item .content {
        padding: 1rem;
    }

    .timeline-icon {
        font-size: 1.5rem;
    }

    .year {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .timeline-text h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .timeline-text p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* Nest Hub Specific */
@media (min-width: 1024px) and (max-height: 800px) {
    #about-story {
        padding-top: 60px;
        height: auto;
        min-height: auto;
    }

    .timeline {
        max-height: 500px;
    }

    .timeline-item {
        margin-bottom: 0.8rem;
    }

    .timeline-item .content {
        padding: 0.8rem;
    }



    .timeline-text h4 {
        font-size: 1rem;
    }

    .timeline-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}


/* Gallery Section */
#gallery {
    background-color: var(--primary-dark);
    min-height: 100vh !important;
    height: auto !important;
    color: white;
}

.gallery-header {
    background: linear-gradient(180deg, var(--primary-dark) 0%, rgba(33, 33, 33, 0.95) 100%);
    padding: 2rem 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.425);
    margin-bottom: 2rem;
}


.filter-container {
    padding: 1rem 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-filter {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95));
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
}

.btn-filter:hover, .btn-filter.active {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 1rem !important;

}


.gallery-item {
    position: relative !important;
    aspect-ratio: 16/9 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95)) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;

}

.gallery-card {
    height: 100% !important;
    
}

.gallery-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .iconify {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay .iconify {
    transform: scale(1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-color);
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Modal Styles */
.gallery-modal {
    background: rgba(0, 0, 0, 0.43) !important;
    backdrop-filter: blur(5px) !important;
}

.gallery-modal .modal-dialog {
    margin: 0.5rem auto;
    max-width: 95vw;
    height: calc(100vh - 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal .modal-content {
    background-color: transparent !important;
    height: auto;
    max-height: 95vh;
    border: none;
}

.modal-content {
    background: transparent !important;
}

.gallery-modal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: transparent;
}

.gallery-modal img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.modal-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.modal-image-container.grabbing {
    cursor: grabbing;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.modal-controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(59, 59, 59, 0.7);
    padding: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.modal-control-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-control-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.gallery-modal .btn-close {
    position: absolute;
    top: -20px !important;
    right: -20px !important;
    background-color: rgba(255, 255, 255, 0.445);
    backdrop-filter: blur(5px);
    padding: 1rem;
    color: white !important;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 1056;
}

.gallery-modal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
    .gallery-header {
        top: 60px;
        padding: 1rem;
    }

    .filter-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .btn-filter {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .modal-controls {
        bottom: 1rem;
        padding: 0.5rem;
    }

        .gallery-modal .btn-close {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .gallery-modal .modal-dialog {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
    }

    .modal-image-container {
        max-height: 80vh;
    }

    .modal-image-container img {
        max-height: 80vh;
    }

    .modal-controls {
        bottom: 1rem;
        padding: 0.75rem;
    }
}

/* News Hero Section */
#news-hero {
    background-color: #212121;
    padding-top: 180px; /* Increased from 120px to accommodate navbar */
    color: white;
    min-height: 100vh;
    height: auto;
}

/* News Cards */
.news-card {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.95), rgba(33, 33, 33, 0.95));
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    color: var(--primary-dark);
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: none; /* Remove text-transform to keep original capitalization */
    margin-bottom: 0.5rem;
}

.news-content h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.news-subtitle {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title {
    height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-excerpt {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 4.8em;
}

/* Filter Buttons - Changed class names */
.news-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-news-filter {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-news-filter:hover,
.btn-news-filter.active {
    background: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

/* Empty State - Changed class name */
.news-empty-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-color);
    display: none;
}

.news-empty-state .empty-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-filter-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .btn-news-filter {
        width: 100%;
    }

    .news-grid {
        padding: 0 1rem;
    }
}

/* Article Card Styles */
.article-card {
    background: rgba(32, 32, 32, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-image-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-image-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image-container:hover img {
    transform: scale(1.02);
}


/* Article Page Styles */
#article-section {
    padding-top: 120px;  /* Reduced from 180px for better spacing */
    background-color: #212121;
    color: var(--text-color);
    min-height: 100vh;
    height:auto;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header .display-4 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    color: var(--accent-color);
    margin-bottom: 1rem;
}


.article-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.article-header .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.article-category {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    text-transform: none; /* Remove text-transform to keep original capitalization */
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--accent-color);
    font-size: 1rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.article-meta .date {
    background: rgba(0, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.article-image {
    margin: 2rem 0 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding: 0 1rem;
    white-space: pre-line;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color-hover);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7) !important;
}

.article-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-outline-accent {
    border: 1px solid var(--accent-color);
    color: white !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.btn-outline-accent:hover {
    background: var(--accent-color) !important;
    color: var(--secondary-dark) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #article-section {
        padding-top: 100px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-card {
        padding: 1.5rem;
    }
    
    .article-header .display-4 {
        font-size: 2rem;
    }
    
    .article-image-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
}