/* Modern Design for GadoApp */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2e7d32;
    /* Rich Green */
    --secondary-color: #1565c0;
    /* Rich Blue */
    --accent-color: #ffca28;
    /* Amber Accent */
    --text-color: #f5f5f5;
    --dark-bg: #121212;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: #121212 url('/imagens/fundo.jpg') center center/cover no-repeat fixed;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.85));
    z-index: -1;
}

/* Header / Hero Section */
header {
    text-align: center;
    padding: 20px 20px 0 20px;
    /* Drastically reduced vertical padding */
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    margin-bottom: 5px;
    /* Reduced margin */
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #a5d6a7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 5px 0 15px 0;
    /* Reduced margins */
}

/* Call to Action Buttons */
.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    /* Drastically reduced margin */
}

.cta-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--primary-color), #43a047);
    border: none;
}

.cta-button.primary:hover {
    background: linear-gradient(45deg, #43a047, var(--primary-color));
}

.cta-icon-img {
    height: 40px;
    /* Increased size for better visibility */
    width: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* Ensure it doesn't get cropped */
    border-radius: 8px;
    /* Softer corners */
    margin-right: 5px;
    /* Spacing between icon and text */
}

/* Main Grid Layout for Screenshots */
main {
    flex: 1;
    padding: 5px 20px;
    /* minimal padding */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.showcase-grid {
    display: grid;
    /* Use auto-fit to handle 1, 2, or 3 columns automatically based on width */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
    justify-content: center;
}

/* Ensure the last row is centered if it has fewer items (optional, but good for symmetry) */
/* However, user asked for "no gaps" in a specific way:
   1 col -> 6 rows
   2 cols -> 3 rows
   3 cols -> 2 rows
   This is standard grid behavior with 6 items.
*/

/* Separate container for the full-width feature section */
.feature-section-container {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}


.showcase-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Stagger animation for items */
.showcase-item:nth-child(1) {
    animation-delay: 0.1s;
}

.showcase-item:nth-child(2) {
    animation-delay: 0.2s;
}

.showcase-item:nth-child(3) {
    animation-delay: 0.3s;
}

.showcase-item:nth-child(4) {
    animation-delay: 0.4s;
}

.showcase-item:nth-child(5) {
    animation-delay: 0.5s;
}

.showcase-item:nth-child(6) {
    animation-delay: 0.6s;
}

.showcase-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-img {
    transform: scale(1.05);
}

/* Dynamic Info Headers */
.info-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 100px;
    /* Ensure uniform height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: #1e1e1e;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.modal-close:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

}

/* Wide Mode Feature Card (Bottom Banner) */
/* Separate container for the full-width feature section */
.feature-section-container {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 0;
    padding: 0 !important;
    /* Force no padding to touch edges */
    animation: fadeInUp 0.8s ease-out;
}

/* Wide Mode Feature Card (Full Width Banner) */
.feature-card.wide-mode {
    border-radius: 0;
    /* Remove corners for full strip */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    max-width: none;
    /* Allow full width */
    width: 100%;
    margin: 0;
    padding: 40px 20px;
    background: linear-gradient(90deg, #1b5e20 0%, #0d47a1 100%);
    /* Horizontal gradient */
}

/* New layout for the content inside the full banner */
.feature-content-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

.feature-text-col h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-text-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.feature-grid-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-point {
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-point i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

/* Responsive adjustment for the banner */
@media (max-width: 992px) {
    .feature-content-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-grid-col {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
        text-align: left;
    }

    .feature-point {
        justify-content: flex-start;
    }
}