/* ========================================
   MOBILE FIRST - BASE STYLES
======================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F9F4EF;
    color: #5C4033;
    overflow-x: hidden;
}

/* ========================================
   HEADER & NAVIGATION - MOBILE
======================================== */

header {
    background-color: #5C4033;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(92, 64, 51, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F9F4EF;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo svg {
    width: 40px;
    height: 40px;
}

/* Cores do logo no header */
.logo svg path {
    fill: #F9F4EF !important;
    stroke: #F9F4EF !important;
}

.logo svg text {
    fill: #5C4033 !important;
}

.logo svg rect {
    fill: #F9F4EF !important;
}

.logo svg ellipse {
    fill: #F9F4EF !important;
}

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

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

.nav-links li a {
    color: #F9F4EF;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
    font-size: 0.9rem;
}

.nav-links li a:hover {
    background-color: #8B6F47;
}

/* Language Selector - Mobile */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-selector button {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    background-color: #8B6F47;
    color: #F9F4EF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.language-selector button.active {
    background-color: #F9F4EF;
    color: #5C4033;
}

.flag-icon {
    width: 18px;
    height: 12px;
}

/* ========================================
   LOADING SCREEN
======================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #5C4033;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
}

.loading-bit {
    width: 15px;
    height: 15px;
    background-color: #F9F4EF;
    display: inline-block;
    margin: 0 5px;
    animation: loading 1.4s infinite ease-in-out both;
}

.loading-bit:nth-child(1) { animation-delay: -0.32s; }
.loading-bit:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-text {
    color: #F9F4EF;
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: bold;
}

/* ========================================
   HERO SECTION - MOBILE
======================================== */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

.pixel {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #5C4033;
    opacity: 0.1;
    animation: float 20s infinite;
}

.pixel-1 { top: 10%; left: 10%; animation-delay: 0s; }
.pixel-2 { top: 20%; right: 15%; animation-delay: 2s; }
.pixel-3 { bottom: 30%; left: 20%; animation-delay: 4s; }
.pixel-4 { top: 50%; right: 10%; animation-delay: 6s; }
.pixel-5 { bottom: 10%; right: 30%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #5C4033;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #8B6F47;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #5C4033;
    color: #F9F4EF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.3);
}

.cta-button:hover {
    background-color: #8B6F47;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 64, 51, 0.4);
}

/* ========================================
   SECTIONS - MOBILE
======================================== */

section {
    padding: 3rem 1rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #5C4033;
}

/* ========================================
   SERVICES - MOBILE
======================================== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #5C4033;
}

.service-card p {
    color: #8B6F47;
    line-height: 1.6;
}

/* ========================================
   ABOUT - MOBILE
======================================== */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5C4033;
}

.about-visual {
    flex: 1;
}

.about-visual svg {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* ========================================
   CONTACT - MOBILE
======================================== */

#contact {
    background-color: #fff;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #5C4033;
}

.open-form-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #5C4033;
    color: #F9F4EF;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto 2rem;
}

.open-form-button:hover {
    background-color: #8B6F47;
    transform: translateY(-2px);
}

.button-icon {
    width: 24px;
    height: 24px;
}

/* Contact Form Modal */
.contact-form-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.contact-form-wrapper.active {
    display: block;
}

.contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 64, 51, 0.8);
}

.contact-form-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #F9F4EF;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-form-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5C4033;
    cursor: pointer;
    line-height: 1;
}

.form-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #5C4033;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #8B6F47;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5C4033;
}

.form-group label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: #8B6F47;
    pointer-events: none;
    transition: all 0.3s;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background-color: #F9F4EF;
    padding: 0 0.25rem;
    color: #5C4033;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: #5C4033;
    color: #F9F4EF;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background-color: #8B6F47;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.contact-divider {
    margin: 2rem 0;
    color: #8B6F47;
    font-size: 0.9rem;
}

.contact-email {
    display: inline-block;
    font-size: 2rem;
    color: #5C4033;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.contact-email:hover {
    color: #8B6F47;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    color: #fff;
}

.social-button svg {
    width: 20px;
    height: 20px;
}

.social-button.discord {
    background-color: #5865F2;
}

.social-button.discord:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-button.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}
.social-button.facebook {
    background-color: #1877F2;
}

.social-button.facebook:hover {
    background-color: #1864D9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}
.social-button.linkedin {
    background-color: #0A66C2;
}

.social-button.linkedin:hover {
    background-color: #004182;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}
/* ========================================
   FOOTER
======================================== */

footer {
    background-color: #5C4033;
    color: #F9F4EF;
    text-align: center;
    padding: 2rem 1rem;
}

/* ========================================
   TABLET & DESKTOP RESPONSIVE
======================================== */

/* Tablets (768px e acima) */
@media (min-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-content {
        flex-direction: row;
        align-items: center;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-content {
        flex-direction: row;
        align-items: center;
    }

    .social-links {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .contact-form-modal {
        padding: 3rem;
    }
}

/* Desktop (1024px e acima) */
@media (min-width: 1024px) {
    header {
        padding: 1rem 2rem;
    }

    section {
        padding: 4rem 2rem;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 1.2rem;
    }
}

/* Large Desktop (1440px e acima) */
@media (min-width: 1440px) {
    .services-grid,
    .about-content,
    .contact-container {
        max-width: 1400px;
    }
}