/* Root Variables */
:root {
    --primary-color: #ac0f11;
    --secondary-color: #1a1a1a;
    --accent-color: #ff4d4d;
    --text-color: #ffffff;
    --background-color: #0a0a0a;
    --card-bg: rgba(26, 26, 26, 0.8);
    --nav-bg: rgba(10, 10, 10, 0.95);
    --transition: all 0.3s ease;
    --glow: 0 0 10px var(--primary-color);
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader .inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader .two {
    border-top-color: var(--accent-color);
    animation-delay: 0.2s;
}

.loader .three {
    border-top-color: var(--text-color);
    animation-delay: 0.4s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.glitch-container {
    position: relative;
    margin-bottom: 1rem;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary-color),
                -0.025em -0.05em 0 var(--accent-color),
                0.025em 0.05em 0 #0ff;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Platform Icons Section */
.platform-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

.platform-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
}

.icon-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.icon-container img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
}

.icon-container i {
    font-size: 40px;
    margin-bottom: 5px;
}

.hover-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

.platform-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.platform-icon:hover .hover-text {
    opacity: 1;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 26, 26, 0.05));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-line {
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.header-line::before,
.header-line::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--accent-color);
    transition: var(--transition);
}

.header-line::before { left: -25%; }
.header-line::after { right: -25%; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.feature-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 26, 26, 0.2);
}

.card-back {
    transform: rotateY(180deg);
    background: var(--primary-color);
}

.card-front i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Gallery Section */
.gallery {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 26, 26, 0.05), rgba(255, 26, 26, 0.05));
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 300px;
    height: 100%;
    margin: 0 1rem;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 26, 26, 0.1);
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 26, 26, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Mobile responsive styles for gallery */
@media (max-width: 768px) {
    .gallery {
        padding: 4rem 1rem;
    }

    .gallery-container {
        padding: 1rem;
    }

    .carousel {
        height: 250px;
    }

    .gallery-item {
        flex: 0 0 250px;
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 3rem 0.5rem;
    }

    .carousel {
        height: 200px;
    }

    .gallery-item {
        flex: 0 0 200px;
        margin: 0 0.25rem;
    }
}

/* Lightbox styles for mobile */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

/* Stats Section */
.stats {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, rgba(255, 26, 26, 0.05), transparent);
}

.stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 26, 26, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-info iframe {
    border: none;
    background: transparent;
    margin-top: 5px;
    transform: scale(1.2);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.stat-info iframe::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.stat-info iframe {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Footer */
footer {
    background: var(--nav-bg);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    padding-top: 10px;
}

.social-icon i {
    color: var(--text-color);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
}

.gallery-nav-btn.prev {
    left: 0;
}

.gallery-nav-btn.next {
    right: 0;
}

.gallery-nav-btn i {
    font-size: 1.2rem;
}

/* Hide navigation buttons when not needed */
.gallery-nav-btn.hidden {
    display: none;
}

/* Store Section */
.store-section {
    padding: 8rem 2rem 6rem;
    min-height: 100vh;
}

.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.store-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 26, 26, 0.2);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.category-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.store-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
}

.store-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Responsive adjustments for store */
@media (max-width: 768px) {
    .store-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

/* Packages Section */
.packages-section,
.credits-section {
    padding: 8rem 2rem 6rem;
    min-height: 100vh;
}

.packages-container,
.credits-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    overflow: hidden;
}

.package-navigation {
    padding: 0;
    margin: 0;
    width: 100%;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.package-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* BOUGHT Sticker */
.bought-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b00;
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    transform: rotate(0deg);
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .bought-sticker {
        font-size: 0.8rem;
        padding: 4px 12px;
        top: 8px;
        right: 8px;
    }
}

/* Purchased button styles */
.package-card.purchased .buy-btn {
    background: #555;
    cursor: not-allowed;
    position: relative;
}

.package-card.purchased .buy-btn:hover::before {
    content: "This Script has been Purchased!";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-bottom: 8px;
    pointer-events: none;
    z-index: 100;
}

.package-card.purchased .buy-btn:hover::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent;
    pointer-events: none;
}

.package-card:hover {
    transform: translateY(-10px);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(172, 15, 17, 0.3);
}

/* Remove any special featured styles */
.package-card.featured {
    border: 1px solid transparent;
    box-shadow: none;
}

.package-card.featured:hover {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(172, 15, 17, 0.3);
}

.package-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 26, 26, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.package-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    background: var(--card-bg);
}

.package-card:hover .package-image {
    transform: scale(1.02);
}

.package-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.package-price,
.credits-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.credits-amount {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.package-features {
    margin-bottom: 2rem;
}

.package-features ul {
    list-style: none;
    padding: 0;
}

.package-features li {
    margin: 0.8rem 0;
    color: #ccc;
}

.package-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.package-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.subscribe-btn {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(172, 15, 17, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(172, 15, 17, 0.5);
    background: var(--accent-color);
}

.info-btn,
.buy-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.info-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

.info-btn:hover {
    background: var(--primary-color);
}

.buy-btn {
    background: var(--primary-color);
    color: var(--text-color);
}

.buy-btn:hover {
    background: var(--accent-color);
}

/* Update responsive adjustments */
@media (max-width: 768px) {
    .package-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Store Content */
.store-content {
    padding-top: 6rem;
}

/* Store Warning Box */
.store-warning {
    background: rgba(172, 15, 18, 0.131);
    border: 2px solid rgba(172, 15, 18, 0.238);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 0 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
}

.store-warning i {
    color: rgba(172, 15, 17, 0.5);
    font-size: 2rem;
    flex-shrink: 0;
}

.store-warning p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .store-warning {
        margin: 0 1rem 2rem;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .store-warning p {
        font-size: 1rem;
    }
}

/* Adjust spacing between sections */
.credits-section {
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Store Title */
.store-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.store-title .title-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.store-title h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .store-title .title-logo {
        width: 60px;
        height: 60px;
    }

    .store-title h1 {
        font-size: 2rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1rem;
}

.modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    width: 90%;
    max-width: 600px; /* Increased for better video viewing */
    position: relative;
    color: var(--text-color);
    box-shadow: 0 0 30px rgba(172, 15, 17, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

#modalTitle {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-right: 30px;
}

#modalContent {
    line-height: 1.6;
    font-size: 1rem;
    color: #ccc;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Add custom scrollbar for the modal content */
#modalContent::-webkit-scrollbar {
    width: 8px;
}

#modalContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#modalContent::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Update package buttons to be side by side */
.package-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.info-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.info-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(172, 15, 17, 0.3);
}

.buy-btn {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(172, 15, 17, 0.3);
}

.buy-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 15, 17, 0.5);
}

/* Wishlist Section */
.wishlist-content {
    padding-top: 6rem;
}

.wishlist-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.wishlist-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 26, 26, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

.wishlist-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(172, 15, 17, 0.3);
}

.wishlist-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 26, 26, 0.2);
}

.wishlist-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.wishlist-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color);
}

.wishlist-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wishlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .wishlist-image img {
    transform: scale(1.1);
}

.wishlist-details {
    padding: 1.5rem;
}

.wishlist-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.wishlist-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

.wishlist-description {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.wishlist-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.donate-btn {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(172, 15, 17, 0.3);
}

.donate-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 15, 17, 0.5);
}

@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
}

/* Rules Page Styles */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.rules-section {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.rules-header {
    padding: 1.2rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 26, 26, 0.1);
}

.rules-header:hover {
    background: rgba(172, 15, 17, 0.1);
    border: 1px solid rgba(255, 26, 26, 0.3);
}

.rules-header h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    font-size: 1.6rem;
}

.rules-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.rules-section.active {
    z-index: 2;
}

.rules-section.active .rules-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.rules-section.active .rules-header i {
    transform: rotate(180deg);
}

.rules-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: var(--card-bg);
    border: 1px solid rgba(255, 26, 26, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    opacity: 0;
}

.rules-section.active .rules-content {
    max-height: calc(80vh - 200px); /* Viewport height minus space for header and some padding */
    opacity: 1;
    margin-bottom: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
    position: relative;
    z-index: 2;
}

.rules-section.active .rules-content::-webkit-scrollbar {
    width: 8px;
}

.rules-section.active .rules-content::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 0 0 10px 0;
}

.rules-section.active .rules-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.rules-section.active .rules-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.rules-section.active ~ .rules-section {
    transform: none;
}

.rules-list {
    list-style: none;
    padding: 2rem;
    margin: 0;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.rules-section.active .rules-list li {
    opacity: 1;
    transform: translateY(0);
}

.rules-list li:nth-child(1) { transition-delay: 0.1s; }
.rules-list li:nth-child(2) { transition-delay: 0.2s; }
.rules-list li:nth-child(3) { transition-delay: 0.3s; }

.rules-list li:last-child {
    margin-bottom: 0;
}

.rules-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.rule-text h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.rule-text p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Getting Started Page Styles */
.guide-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 26, 26, 0.2);
}

.guide-section h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.guide-step i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.step-text h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.step-text p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.guide-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.commands-list {
    display: grid;
    gap: 1rem;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

.command-item code {
    background: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    min-width: 120px;
}

.command-item span {
    color: #ccc;
}

/* Responsive adjustments for rules and getting started pages */
@media (max-width: 768px) {
    .guide-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .guide-step i {
        margin: 0 auto;
    }

    .command-item {
        flex-direction: column;
        text-align: center;
    }

    .command-item code {
        margin-bottom: 0.5rem;
    }

    .rules-section.active .rules-content {
        max-height: calc(70vh - 150px); /* Slightly smaller on mobile */
    }

    .rules-section.active .rules-content::-webkit-scrollbar {
        width: 6px;
    }
}

.mastodon-feed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mastodon-timeline {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .mastodon-timeline {
        height: 500px;
    }
}

/* General mobile responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo img {
        max-width: 150px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Headers and Titles */
    .store-title h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* Feature Cards */
    .feature-card {
        height: 250px;
    }

    .card-front i {
        font-size: 2.5rem;
    }

    /* Stats Section */
    .stats {
        padding: 4rem 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-info p {
        font-size: 1.5rem;
    }

    /* Store Section */
    .store-section {
        padding: 4rem 1rem;
    }

    .store-categories {
        padding: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    /* Package Cards */
    .package-card {
        padding: 1.5rem;
    }

    .package-header h3 {
        font-size: 1.2rem;
    }

    .package-price {
        font-size: 1.8rem;
    }

    /* Rules Section */
    .rules-container {
        padding: 1rem;
    }

    .rules-header {
        padding: 1rem;
    }

    .rules-header h2 {
        font-size: 1.2rem;
    }

    .rules-list {
        padding: 1rem;
    }

    /* Footer */
    footer {
        padding: 3rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Navigation */
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .server-status {
        flex-direction: column;
        align-items: center;
    }

    /* Headers */
    .store-title h1 {
        font-size: 1.8rem;
    }

    /* Feature Cards */
    .feature-card {
        height: 220px;
    }

    /* Package Cards */
    .package-features ul {
        padding-left: 1rem;
    }

    .package-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Rules Section */
    .rules-header h2 {
        font-size: 1.1rem;
    }

    .rule-text h3 {
        font-size: 1.1rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }
}

/* Ensure smooth scrolling on mobile */
@media (hover: none) {
    .gallery-item:hover {
        transform: none;
    }

    .package-card:hover {
        transform: none;
    }

    .social-icon:hover {
        transform: none;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    .nav-links a,
    .package-buttons button,
    .social-icon {
        padding: 0.8rem;
        min-height: 44px;
        min-width: 44px;
    }

    .lightbox-close {
        padding: 1rem;
        min-height: 44px;
        min-width: 44px;
    }
}

.rules-disclaimer {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .rules-section.active .rules-content {
        max-height: calc(70vh - 150px); /* Slightly smaller on mobile */
    }
}

/* 404 Error Page */
.error-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px - 200px); /* Adjust for navbar and footer */
    text-align: center;
    padding: 2rem;
}

.error-container {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-in;
}

.error-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.error-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    margin: 0;
    background: rgba(172, 15, 18, 0.722);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(172, 15, 18, 0.393);
    line-height: 1;
}

.error-message {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    color: var(--text-color);
    line-height: 1.6;
}

.error-actions {
    margin-top: 2rem;
}

.error-button {
    display: inline-block;
    background: rgba(172, 15, 18, 0.76);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(172, 15, 18, 0.805);
}

.error-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(172, 15, 18, 0.324);
    background: rgba(172, 15, 18, 0.722);
}

.error-button i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .error-content {
        padding: 1.5rem;
    }
    
    .error-container {
        padding: 2rem 1.5rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Wishlist Page Sections */
.packages-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(172, 15, 18, 0.908);
    text-shadow: 0 0 10px rgba(172, 15, 17, 0.5);
}

.packages-section {
    margin-bottom: 4rem;
}

.empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.empty-message i {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-message p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .packages-section h2 {
        font-size: 1.6rem;
    }
    
    .empty-message {
        padding: 2rem;
    }
    
    .empty-message i {
        font-size: 2.5rem;
    }
    
    .empty-message p {
        font-size: 1rem;
    }
} 