/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* Reduce gap below section-subtitle in download section */
.download .section-subtitle {
    margin-bottom: 1.5rem !important;
}

:root {
    --primary-color: #E5B835;
    --primary-dark: #C9A52A;
    --secondary-color: #2C2C2C;
    --accent-color: #FECC44;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    --bg-card: #2C2C2C;
    --text-light: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-dark: #1A1A1A;
    --gradient-1: linear-gradient(135deg, #FECC44 0%, #E5B835 100%);
    --gradient-2: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    --gradient-3: linear-gradient(135deg, #FECC44 0%, #FFA500 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-light);
    background: var(--bg-darker);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(254, 204, 68, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-light);
}

.btn-download-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-download-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.10) 0%, rgba(44, 44, 44, 0.11) 50%, rgba(13, 13, 13, 0.10) 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(254, 204, 68, 0.035) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(254, 204, 68, 0.02) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
    background: rgba(13, 13, 13, 0.45);
    padding: 3rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(1px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-title .highlight {
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(229, 184, 53, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #E8E8E8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(254, 204, 68, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(254, 204, 68, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-gray);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.official-notice {
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.official-notice svg {
    color: var(--accent-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #E8E8E8;
    font-size: 0.9rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #E8E8E8;
    border-bottom: 2px solid #E8E8E8;
    transform: rotate(45deg);
    margin: 0.5rem auto 0;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-dark);
    width: 100%;
    overflow: hidden;
}

.features .section-subtitle {
    max-width: 900px;
    font-size: 1.15rem;
    margin-bottom: 4rem;
}

.features .how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.features .how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features .how-it-works-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(254, 204, 68, 0.2);
}

.features .how-it-works-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Reduce gap below section-subtitle in download section */
.download .section-subtitle {
    margin-bottom: 1.5rem;
}

/* Reduce gap below section-subtitle in recognition section */
.recognition .section-subtitle {
    margin-bottom: 2rem;
}

/* How It Works Section (removed standalone, now part of features) */

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(254, 204, 68, 0.4);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--bg-darker);
    width: 100%;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(254, 204, 68, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Server Section */
.server {
    padding: 6rem 0;
    background: var(--bg-dark);
    width: 100%;
    overflow: hidden;
}

.server-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.server-info {
    text-align: left;
}

.server-info .section-title {
    text-align: left;
}

.server-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.coming-soon {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(229, 184, 53, 0.3);
}

.server-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.server-feature svg {
    color: var(--primary-color);
}

.server-ip-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
}

.minecraft-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.minecraft-logo svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.server-ip-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.server-ip {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(254, 204, 68, 0.15);
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    border: 2px solid rgba(254, 204, 68, 0.3);
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.copy-feedback {
    display: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.copy-feedback.show {
    display: block;
}

.server-preview-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.server-preview-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Download Section */
.download {
    padding: 6rem 0;
    background: var(--bg-darker);
    width: 100%;
    overflow: hidden;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(254, 204, 68, 0.3);
}

.platform-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-card p {
    color: var(--text-gray);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.download-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.download-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.download-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Recognition Section */
.recognition {
    padding: 6rem 0;
    background: var(--bg-dark);
    width: 100%;
    overflow: hidden;
}

.recognition-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.recognition-list li {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 3rem;
}

.recognition-list li:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(254, 204, 68, 0.2);
}

.recognition-list a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.recognition-list a:hover {
    color: var(--primary-color);
}

.support-message {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: rgba(229, 184, 53, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(229, 184, 53, 0.3);
}

.support-message p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin: 0;
}

.support-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.support-message a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.buymeacoffee-link,
.discord-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.buymeacoffee-link:hover,
.discord-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.buymeacoffee-logo,
.discord-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 60px;
    max-width: 250px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-gray);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-official {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-official svg {
    color: var(--accent-color);
}

.footer-official a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-official a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        align-items: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .server-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .server-ip {
        font-size: 1.3rem;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .server-ip-card {
        padding: 2rem;
    }

    .server-ip {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
}
