/* Import fonts with display swap for better performance */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Color variables */
    --primary-color: #8A2BE2;
    --secondary-color: #9370DB;
    --background-dark: #0a0a0a;
    --background-light: #111111;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #8A2BE2;
    --card-bg: rgba(13, 13, 13, 0.95);
    
    /* Animation variables */
    --transition-smooth: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadow variables */
    --shadow-sm: 0 4px 6px rgba(138, 43, 226, 0.1);
    --shadow-lg: 0 10px 30px rgba(138, 43, 226, 0.2);
}

/* Custom Scrollbar Styles */
/* For Webkit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 12px;
    background-color: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 3px solid var(--background-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

::-webkit-scrollbar-track {
    background-color: var(--background-dark);
    border-radius: 6px;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-dark);
}

/* Base styles with will-change for hardware acceleration where needed */
.feature-card,
.config-card,
.btn {
    will-change: transform;
}

.video-background video {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

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

.hero-content,
.hero-stats,
.feature-card,
.config-card {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Reduce paint operations */
.navbar {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Use more efficient transform instead of all */
.feature-card:hover,
.config-card:hover {
    transform: translateY(-10px);
}

/* Optimize background images */
.config-image {
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    height: 200px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.config-image.hypixel {
    background-image: url('IMG/FT.jpg');
}

.config-image.mineplex {
    background-image: url('IMG/RW.jpg');
}

.config-image.custom {
    background-image: url('IMG/HVH.jpg');
}

.config-image.premium {
    background-image: url('IMG/ALL.jpg');
}

.pack-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Use more efficient box-shadow */
.btn:hover {
    box-shadow: var(--shadow-lg);
}

/* Optimize gradients */
.hero-content h1,
.features h2,
.configs h2 {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(0);
}

/* Add content-visibility for better performance */
.features,
.configs,
footer {
    content-visibility: auto;
    contain: content;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

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

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    backdrop-filter: blur(8px);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.2) blur(3px);
    transform: scale(1.1);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.15);
    transition: var(--transition-smooth);
}

.navbar:hover {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.logo span {
    color: var(--text-primary);
    opacity: 0.9;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 3px;
}

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

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

.nav-links a:hover {
    color: var(--primary-color);
}

/* Add gradient animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #8A2BE2, #9370DB, #FF1493, #8A2BE2);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5),
                 0 0 20px rgba(138, 43, 226, 0.3),
                 0 0 30px rgba(138, 43, 226, 0.2),
                 0 0 40px rgba(138, 43, 226, 0.1);
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.4));
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn.secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn.secondary:hover {
    color: var(--text-primary);
}

.btn.secondary:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: var(--background-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.03), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Configs Section */
.configs {
    padding: 6rem 2rem;
    background-color: var(--background-dark);
    position: relative;
}

.configs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.configs-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    padding: 2rem;
    overflow-x: auto;
    margin: 2rem auto;
    max-width: 100%;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.config-card {
    flex: 0 0 300px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.config-card:hover {
    transform: translateY(-10px);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: var(--shadow-lg);
}

.config-image {
    height: 180px;
    border-radius: 15px;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.config-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
}

.config-card:hover .config-image {
    transform: scale(1.03);
}

.config-card h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0;
    color: var(--text-primary);
}

.config-card p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.config-card .price {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.8rem 0;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.config-card .btn {
    width: 100%;
    margin: 1rem 0 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    transform-origin: center;
}

.config-card .btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.footer-section a:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        white-space: normal; /* Allow wrapping on mobile */
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .features-grid,
    .configs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .feature-card,
    .config-card {
        padding: 1.5rem;
    }

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

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section a {
        justify-content: center;
    }

    .footer-section a:hover {
        transform: translateX(0) scale(1.05);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        padding: 0 0.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .feature-card,
    .config-card {
        padding: 1.2rem;
    }

    .config-image {
        height: 160px;
    }
}

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

.hero-content,
.hero-stats,
.feature-card,
.config-card {
    animation: fadeIn 0.8s ease-out forwards;
}

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

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--text-primary);
}
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

