@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --lego-red: #F26B6B;
    --lego-blue: #0055BF;
    --lego-light-blue: #00A3E0;
    --lego-yellow: #F6D105;
    --lego-green: #237841;
    --lego-light: #F4F4F4;
    --text-dark: #2D2D2D;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #C8A2C8 0%, #D8BFD8 50%, var(--lego-light-blue) 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    padding: 2rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lego-blue) !important;
}
.navbar-brand span {
    color: var(--lego-red);
}
.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--lego-blue) !important;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--lego-blue);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title span.highlight-red { color: var(--lego-red); }
.hero-title span.highlight-yellow { color: #D6B200; } /* slightly darker yellow for text readability */
.hero-title span.highlight-green { color: var(--lego-green); }

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Bubbles */
.bubble-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.bubble-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.2) 80%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2), inset 10px 0 40px rgba(255, 255, 255, 0.15), inset -10px 0 40px rgba(0, 163, 224, 0.1);
    pointer-events: none;
    z-index: 2;
    border: 3px solid rgba(255,255,255,0.3);
}

.bubble-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bubble-container:hover .bubble-img {
    transform: scale(1.05);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Decorative puzzle pieces */
.puzzle-deco {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    opacity: 0.8;
    z-index: -1;
    animation: spin 15s linear infinite;
}
.deco-1 { background-color: var(--lego-blue); top: 10%; left: -20px; }
.deco-2 { background-color: #C8A2C8; bottom: 20%; right: -20px; }
.deco-3 { background-color: var(--lego-blue); top: 50%; right: 5%; animation-duration: 20s;}
.deco-4 { background-color: #D8BFD8; bottom: 10%; left: 10%; animation-duration: 25s; animation-direction: reverse;}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Buttons */
/* Buttons */
.btn-lego-primary {
    background-color: var(--lego-light-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 0 #0081B3, 0 10px 15px rgba(0, 163, 224, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-lego-primary:hover {
    background-color: #1AB2FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #0081B3, 0 12px 20px rgba(0, 163, 224, 0.4);
}
.btn-lego-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0081B3, 0 5px 10px rgba(0, 163, 224, 0.3);
}

.btn-lego-secondary {
    background-color: var(--lego-light-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 0 #0081B3, 0 10px 15px rgba(0, 163, 224, 0.3);
    transition: all 0.2s ease;
}
.btn-lego-secondary:hover {
    background-color: #1AB2FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #0081B3, 0 12px 20px rgba(0, 163, 224, 0.4);
}
.btn-lego-secondary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0081B3, 0 5px 10px rgba(0, 163, 224, 0.3);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--lego-blue);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--lego-yellow);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

/* Cards */
.service-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.service-card:hover {
    transform: translateY(-10px);
}
.card-blue:hover { border-color: var(--lego-blue); box-shadow: 0 15px 35px rgba(0, 85, 191, 0.2); }
.card-red:hover { border-color: var(--lego-red); box-shadow: 0 15px 35px rgba(227, 0, 15, 0.2); }
.card-yellow:hover { border-color: var(--lego-yellow); box-shadow: 0 15px 35px rgba(246, 209, 5, 0.2); }

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    color: white;
}
.icon-blue { background-color: var(--lego-blue); }
.icon-red { background-color: var(--lego-red); }
.icon-yellow { background-color: var(--lego-yellow); }

/* Form */
.form-control {
    border-radius: 12px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--lego-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 85, 191, 0.25);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0 20px 0;
    text-align: center;
}

.text-gradient {
    background: linear-gradient(45deg, var(--lego-blue), var(--lego-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.floating-whatsapp:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}
.whatsapp-text {
    font-size: 1.1rem;
    text-transform: uppercase;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    .hero-section .glass-panel {
        text-align: center;
        padding: 1.5rem;
    }
    .hero-section {
        padding: 100px 0 40px 0;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        padding: 15px;
        border-radius: 50%;
    }
    .whatsapp-text {
        display: none;
    }
    .btn-lego-primary, .btn-lego-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}
