/* Variables & Resets */
:root {
    --primary-color: #15803d;
    --primary-hover: #166534;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Layout Containers */
.container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
}

/* Hero Section (#inicio) */
#inicio {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0;
}

.hero-text p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin: 1.5rem 0;
    text-align: justify;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.75rem;
    display: block;
    margin: 0 auto;
}

/* Funcionalidades Section */
#funcionalidades {
    background-color: var(--bg-light);
    text-align: center;
}

#funcionalidades h2,
#devs h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.card {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Sobre Section */
.sobre-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.sobre-text h2 {
    font-size: 2.25rem;
    margin: 0.75rem 0 1.5rem 0;
    line-height: 1.3;
}

.sobre-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.sobre-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Devs Section */
#devs {
    background-color: var(--bg-light);
    text-align: center;
}

.devs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 0 auto;
}

.card-dev {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-dev:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-dev .avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem auto;
}

.card-dev .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.card-dev h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}

.card-dev .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.card-dev .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Modals Structure & Styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-box {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: fade-in 0.5s ease-out;
}

.modal-box h2 {
    font-size: 1.35rem;
    margin: 0.75rem 0 0.5rem 0;
}

#modal-error .modal-box h2 {
    color: #dc2626;
}

#modal-success .modal-box h2 {
    color: var(--primary-color);
}

.modal-box p {
    color: #334155;
    margin: 0;
}

/* Modal Icons & Colors */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    animation: pop 0.4s ease;
}

.icon-circle img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    animation: rotate 0.5s ease;
}

.bg-error {
    background-color: #dc2626;
}

.bg-success {
    background-color: #16a34a;
}

/* Keyframes */
@keyframes fade-in {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
    from { transform: rotate(-20deg); opacity: 0; }
    to { transform: rotate(0deg); opacity: 1; }
}

@keyframes pop {
    0% { transform: scale(0.6); }
    100% { transform: scale(1); }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-wrapper,
    .sobre-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cards-grid,
    .devs-grid {
        grid-template-columns: 1fr;
    }

    .hero-text p {
        text-align: center;
    }
}

a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Destaque SUAP */
.suap-notice {
    background-color: #f0fdf4;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.suap-notice .notice-title {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.suap-notice p {
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
    line-height: 1.5;
}
