@import "tailwindcss";

@font-face {
    font-family: 'Minecraft';
    src: url('../font/MinecraftRegular-Bmg3.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    background: none;
    min-height: 100vh;
}

body {
    background: #11152d;
    background-size: 200% 200%;
    animation: bgShift 15s ease infinite;
    font-family: 'Roboto', 'Verdana', sans-serif;
    color: #e0e7ff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    scroll-behavior: smooth;
}

@keyframes bgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0b0f2b, #1a2249);
    border: none;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #14b8a6, #3b82f6);
    border-radius: 4px;
    border: 1px solid rgba(10, 17, 40, 0.8);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2dd4bf, #60a5fa);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.minecraft-font {
    font-family: 'Minecraft', sans-serif;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(to right, #14b8a6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateZ(0);
    position: relative;
}

.minecraft-font:hover {
    animation: glitch 0.3s linear infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: 0 0 8px rgba(20, 184, 166, 0.5), 2px 0 #3b82f6;
    }

    40% {
        transform: translate(2px, -2px);
        text-shadow: 0 0 8px rgba(20, 184, 166, 0.5), -2px 0 #14b8a6;
    }

    60% {
        transform: translate(-2px, 0);
        text-shadow: 0 0 8px rgba(20, 184, 166, 0.5), 2px 0 #3b82f6;
    }

    80% {
        transform: translate(2px, 0);
        text-shadow: 0 0 8px rgba(20, 184, 166, 0.5), -2px 0 #14b8a6;
    }

    100% {
        transform: translate(0);
        text-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
    }
}

.section-bg {
    background: rgba(10, 17, 40, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.4s ease, background 0.4s ease, -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
    animation: floatSection 4s ease-in-out infinite;
    z-index: 2;
}

.section-bg h1,
.section-bg h2,
.section-bg h3,
.section-bg h4 {
    transform: translateZ(0);
}

.section-bg p,
.section-bg a:not(.btn-minecraft) {
    font-family: 'Roboto', 'Verdana', sans-serif;
    color: #e0e7ff;
    transform: translateZ(0);
}

.section-bg:hover {
    background: rgba(10, 17, 40, 0.4);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(20, 184, 166, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.12);
}

@keyframes floatSection {

    0%,
    100% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.08);
    }

    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 18px rgba(255, 255, 255, 0.1);
    }
}

.btn-minecraft {
    background: linear-gradient(45deg, #14b8a6, #3b82f6);
    background-size: 300% 300%;
    border: none;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    padding: 14px 30px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: gradientShift 5s ease infinite;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.5), 0 0 25px rgba(59, 130, 246, 0.3);
}

.btn-minecraft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-minecraft:hover::before {
    left: 100%;
}

.btn-minecraft:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.8), 0 0 30px rgba(59, 130, 246, 0.5), 0 0 40px rgba(20, 184, 166, 0.3);
    animation: neonPulse 1.5s ease-in-out infinite;
}

.btn-minecraft::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.5), transparent);
    opacity: 0;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    transform: translate(-50%, -50%);
}

.btn-minecraft:hover::after {
    width: 200px;
    height: 200px;
    opacity: 1;
}

@keyframes neonPulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-bg {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(10, 17, 40, 0.75);
    z-index: 2;
}

.hero-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    min-height: 600px;
    transform: translate(-50%, -50%) scale(1.2);
    object-fit: cover;
    z-index: 1;
    border: none;
    pointer-events: none;
    backface-visibility: hidden;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 4rem;
    animation: scaleIn 1.2s ease-out;
}

.hero-content h2 {
    transform: translateZ(0);
}

.hero-content p {
    font-family: 'Roboto', 'Verdana', sans-serif;
    color: #e0e7ff;
    transform: translateZ(0);
}

.header-content {
    animation: scaleIn 1s ease-out;
}

.header-content h1 {
    transform: translateZ(0);
}

.header-content p {
    font-family: 'Roboto', 'Verdana', sans-serif;
    color: #e0e7ff;
    transform: translateZ(0);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-card {
    background: rgba(15, 23, 50, 0.85);
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3,
.feature-card h4 {
    transform: translateZ(0);
}

.feature-card p {
    font-family: 'Roboto', 'Verdana', sans-serif;
    color: #e0e7ff;
    transform: translateZ(0);
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #14b8a6, #3b82f6);
    border-radius: 50%;
    opacity: 0;
    animation: float linear infinite, fadeInOut ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.9);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.particle.large {
    width: 12px;
    height: 12px;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100vh);
    }
}

.particle.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

.header-bg {
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.95), rgba(5, 15, 35, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

footer {
    background: rgba(10, 17, 40, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 2;
}

footer a {
    color: #2dd4bf;
    transition: color 0.3s, text-shadow 0.3s;
}

footer a:hover {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
}

.nav-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #14b8a6, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn2 {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #14b8a6, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nav-btn2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.nav-btn2:hover::before {
    left: 100%;
}

.nav-btn2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20001;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-container {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.98), rgba(5, 15, 35, 0.98));
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 20000;
    padding: 4rem 2rem;
    pointer-events: auto;
}

.mobile-nav-container.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-container ul li {
    display: flex;
    justify-content: center;
}

.mobile-nav-container ul li a,
.mobile-nav-container ul li button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 200px;
    padding: 1rem;
    margin: 0;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    background: linear-gradient(to right, #14b8a6, #3b82f6);
    transition: transform 0.3s ease, background 0.3s ease;
    text-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
    transform: translateZ(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-nav-container ul li a:hover,
.mobile-nav-container ul li button:hover {
    transform: translateX(10px);
    background: linear-gradient(to right, #3b82f6, #14b8a6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Safari-specific fix for particle rendering */
@media not all and (min-resolution:.001dpcm) {
    .particle {
        z-index: -2;
        backface-visibility: hidden;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        min-height: 500px;
    }

    .hero-bg iframe {
        min-height: 500px;
    }

    .btn-minecraft {
        padding: 12px 26px;
        font-size: 0.9rem;
    }

    .minecraft-font.text-5xl {
        font-size: 2.5rem;
    }

    .minecraft-font.text-4xl {
        font-size: 2rem;
    }

    .minecraft-font.text-3xl {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero-bg {
        min-height: 400px;
    }

    .hero-bg iframe {
        min-height: 400px;
    }

    .minecraft-font.text-5xl {
        font-size: 2rem;
    }

    .minecraft-font.text-4xl {
        font-size: 1.75rem;
    }

    .minecraft-font.text-3xl {
        font-size: 1.5rem;
    }

    .mobile-nav-container ul li a,
    .mobile-nav-container ul li button {
        font-size: 1rem;
        padding: 0.75rem;
        width: 180px;
    }

    /* In main-site.css */
    #particles-js {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
    }

    #particles-js canvas.particles-js-canvas-el {
        width: 100vw !important;
        height: 100vh !important;
        position: absolute;
        top: 0;
        left: 0;
    }
}