:root {
    --primary: #3dbb3d;
    --primary-dark: #2a8a2a;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --accent: #ffcc00;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pixel-text {
    font-family: 'VT323', monospace;
    letter-spacing: 2px;
}

.text-shadow {
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo span span {
    color: var(--primary);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.language-selector button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.language-selector button.active {
    color: var(--primary);
}

.language-selector .separator {
    color: var(--glass-border);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    background: #000;
    /* Deep dark void theme */
}

/* CSS-Only Minecraft Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        /* Stars / Dust */
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 1px, transparent 1.1px),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 1px, transparent 1.1px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 1px, transparent 1.1px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 1px, transparent 1.1px),

        /* Moon */
        radial-gradient(circle at 90% 10%, #ddd 0%, #ddd 5%, transparent 5.1%),
        radial-gradient(circle at 88% 8%, #333 0%, #333 4%, transparent 4.1%),

        /* Grass/Dirt Layer */
        linear-gradient(to bottom, transparent 70%, #2e7d32 70%, #2e7d32 75%, #4e342e 75%);
}

/* Particles & Background Animation */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    /* Explicitly above the background and overlay (z-index: 1) */
}

.particle {
    position: absolute;
    background: rgba(88, 214, 141, 0.4);
    /* Yarı şeffaf MineCraft yeşili */
    border: 2px solid rgba(46, 204, 113, 0.6);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2), 0 0 15px rgba(46, 204, 113, 0.3);
    border-radius: 0;
    /* Köşeli, blok yapısı */
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Moving Pixel Clouds */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -200px;
    width: 150px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        40px 0 0 rgba(255, 255, 255, 0.1),
        20px 20px 0 rgba(255, 255, 255, 0.1),
        60px 20px 0 rgba(255, 255, 255, 0.1);
    filter: blur(1px);
    animation: moveCloud 45s linear infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 25%;
    left: 0;
    width: 100%;
    height: 5%;
    background-image:
        repeating-linear-gradient(90deg, #1e3d1e 0px, #1e3d1e 40px, #2e7d32 40px, #2e7d32 80px);
    opacity: 0.2;
}

@keyframes moveCloud {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100vw + 400px));
    }
}

/* 3D Pixel Block - CSS Only */
.about-visual .pixel-box {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(45deg);
}

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 4px solid rgba(0, 0, 0, 0.1);
}

.face-top {
    transform: rotateX(90deg) translateZ(75px);
    background: #5aa35a;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.face-front {
    transform: translateZ(75px);
    background: #795548;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.face-right {
    transform: rotateY(90deg) translateZ(75px);
    background: #6d4c41;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.face-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0, rgba(0, 0, 0, 0.1) 10px, transparent 10px, transparent 20px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 10px, transparent 10px, transparent 20px);
    opacity: 0.5;
}

.face-front::after,
.face-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, #8d6e63 0%, #8d6e63 10%, transparent 10.1%),
        radial-gradient(circle at 50% 40%, #5d4037 0%, #5d4037 15%, transparent 15.1%),
        radial-gradient(circle at 80% 80%, #a1887f 0%, #a1887f 8%, transparent 8.1%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #000 100%);
    z-index: 1;
    /* Below particles and content */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
    /* Top layer */
}

#hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
}

#hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* IP Box Styling */
.ip-container {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.ip-box {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(61, 187, 61, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ip-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(61, 187, 61, 0.4);
}

.ip-box span {
    margin-right: 15px;
}

.ip-box button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#copy-feedback {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
    transition: opacity 0.3s;
}

.hidden {
    opacity: 0;
}

/* Features Section */
#features {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* About Section */
#about-mc {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), #1a2a1a);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Cube Background Elements */
.floating-shapes .cube {
    position: absolute;
    background: var(--primary);
    opacity: 0.1;
    z-index: -1;
}

.cube-1 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 10%;
    background: #5aa35a;
    border: 2px solid #3d8b3d;
    animation: rotate 20s linear infinite;
}

.cube-2 {
    width: 30px;
    height: 30px;
    bottom: 30%;
    right: 15%;
    background: #795548;
    border: 2px solid #5d4037;
    animation: rotate 15s linear infinite reverse;
}

.cube-3 {
    width: 25px;
    height: 25px;
    top: 15%;
    right: 25%;
    background: #ffcc00;
    border: 2px solid #e1b300;
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* CTA Section */
#cta {
    padding: 100px 0;
    text-align: center;
    background: var(--primary);
}

.cta-container h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.big-ip {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 40px;
    border-radius: 150px;
    margin-top: 30px;
    color: white;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.big-ip:hover {
    transform: scale(1.05);
}

#cta-copy-feedback {
    margin-top: 15px;
    font-weight: 600;
    color: white;
    transition: opacity 0.3s;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        font-size: 1.4rem;
    }
}