:root {
    --primary-gray: #333333;
    --secondary-gray: #555555;
    --accent-yellow: #FFD700;
    --accent-white: #FFFFFF;
    --accent-green: #4CAF50;
    --line-green: #06C755;
    --block-border: 4px solid #000;
    --pixel-font: 'Silkscreen', cursive;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Loading Screen */
.pixel-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001; /* Above mobile menu */
    transition: opacity 0.8s ease;
}

.loader-content { text-align: center; }

.pixel-progress-container {
    width: 250px;
    height: 30px;
    border: 4px solid #555;
    background: #333;
    margin: 1rem auto 0;
    position: relative;
    padding: 2px;
}

.pixel-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-yellow);
    box-shadow: inset -4px 0 0 rgba(0,0,0,0.2);
    transition: width 0.3s ease;
}

.loading-locked { overflow: hidden; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Cursor */
body {
    cursor: crosshair; /* Fallback */
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor::before, .custom-cursor::after {
    content: '';
    position: absolute;
    background: white;
}
.custom-cursor::before { width: 100%; height: 2px; }
.custom-cursor::after { width: 2px; height: 100%; }

body {
    background-color: var(--primary-gray);
    color: var(--accent-white);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--pixel-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.85); /* Deep charcoal for premium feel */
    border-bottom: var(--block-border);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle lighting effect */
    z-index: 2000;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header .container {
    max-width: 100%;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%; /* Responsive padding */
    height: 90px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--accent-white);
    text-decoration: none;
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border: 2px solid transparent;
    transition: all 0.1s;
}

.nav-links a:hover {
    background: var(--secondary-gray);
    border: 2px solid var(--accent-white);
    transform: translateY(-2px);
    box-shadow: -2px 2px 0px #000;
}

.nav-links a:active {
    transform: translateY(0);
    box-shadow: 0px 0px 0px #000;
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: #000;
    border: 3px solid var(--accent-yellow);
    padding: 8px;
    cursor: pointer;
    z-index: 3000;
    box-shadow: -3px 3px 0px #000;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: var(--accent-yellow);
    transition: 0.3s;
}

@media (max-width: 900px) {
    header nav {
        padding: 1rem;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1500;
        border-left: var(--block-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

.pixel-text {
    font-family: var(--pixel-font);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--accent-yellow);
    text-shadow: 3px 3px 0px #000;
    letter-spacing: 3px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-yellow);
    display: inline-block;
    box-shadow: 4px 4px 0 #000;
}

.logo-text:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.2);
}

/* Minecraft UI Blocks */
.block-card {
    background: var(--secondary-gray);
    border: var(--block-border);
    box-shadow: inset -4px -4px 0px rgba(0,0,0,0.5), inset 4px 4px 0px rgba(255,255,255,0.1);
    padding: 2rem;
    position: relative;
    transition: transform 0.1s ease;
}

.block-card:hover {
    transform: translateY(-5px);
}

.btn-block {
    display: inline-block;
    background: var(--accent-yellow);
    color: #000;
    padding: 1rem 2rem;
    border: var(--block-border);
    font-family: var(--pixel-font);
    text-decoration: none;
    cursor: pointer;
    box-shadow: -4px 4px 0px #000;
    transition: all 0.1s;
}

.btn-block:active {
    box-shadow: 0px 0px 0px #000;
    transform: translate(-4px, 4px);
}

.btn-line {
    background: var(--line-green) !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    padding: 1.5rem 3rem !important;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-line:hover {
    filter: brightness(1.1);
}

.line-icon {
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0; /* Slightly more padding */
    scroll-margin-top: 120px; /* Better offset for fixed header */
}

/* Hero Section & Slider */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 24s linear infinite;
    filter: brightness(1.1); /* Ensure images remain bright */
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Consistent light overlay */
}

.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1.0); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.hero-content {
    background: rgba(0, 0, 0, 0.4); /* Slightly lighter but keep for contrast */
    padding: 3rem;
    border: var(--block-border);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Mobile Header Optimization */
header nav {
    flex-wrap: nowrap;
    justify-content: space-between !important;
}

@media (max-width: 600px) {
    .pixel-text {
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

/* Floating Animation */
@keyframes idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.service-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 1.5rem;
    background-size: 384px 128px;
    image-rendering: pixelated;
    animation: idle 3s ease-in-out infinite;
}

/* Scroll Trigger Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Particle Style */
.particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--secondary-gray);
    pointer-events: none;
    z-index: 9999;
}

/* Animations */
@keyframes buildIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.block-card {
    animation: buildIn 0.5s ease backwards;
}

.block-card:nth-child(2) { animation-delay: 0.1s; }
.block-card:nth-child(3) { animation-delay: 0.2s; }

/* Strength Section */
.strengths-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
}

/* Flow Section */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--secondary-gray);
    padding: 1.5rem;
    border: var(--block-border);
}

.step-number {
    font-family: var(--pixel-font);
    font-size: 2rem;
    color: var(--accent-yellow);
    flex-shrink: 0;
}

.flow-step p, .block-card p {
    color: #ddd; /* Better contrast than default white on gray for long text */
}

/* Form */
.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    background: #000;
    border: var(--block-border);
    color: #fff;
    padding: 1rem;
    font-family: inherit;
}

/* Gallery Section */
.gallery-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-bottom: var(--block-border);
}

@media (max-width: 600px) {
    .gallery-image { height: 250px; }
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: url('grass_block.png') center/cover;
    cursor: pointer;
    z-index: 1000;
    image-rendering: pixelated;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.back-to-top:hover {
    transform: scale(1.2);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Grid helper for icon cropping */
.icon-line { background-image: url('minecraft_icons_set_1773630939056.png'); background-position: 0 0; }
.icon-crack { background-image: url('minecraft_icons_set_1773630939056.png'); background-position: -128px 0; }
.icon-hole { background-image: url('minecraft_icons_set_1773630939056.png'); background-position: -256px 0; }
