:root {
    --bg-color: #F5F5F5;
    --acc-color: #AEDCD9; /* Teal accent */
    --surface-color: #FFFFFF;
    --surface-hover: #FAFAFA;
    --primary-color: #F15A24; /* IBROWSE Orange */
    --primary-hover: #D84315;
    --text-primary: #3C4E5A; /* Slate */
    --text-secondary: #6A7D8B;
    --border-color: #D1D1D1;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Accent Background Element */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background-color: var(--acc-color);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0% 100%);
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.logo-container {
    display: inline-block;
    margin-bottom: 30px;
}

.main-logo {
    height: 32px;
    width: auto;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.gov-brasao {
    height: 50px;
    width: auto;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    justify-items: center;
}

.bottom-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.bottom-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 60px;
    width: 100%;
    align-items: center;
}

.tools-section, .tech-stack {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    width: 100%;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--acc-color);
    padding-bottom: 15px;
    text-align: center;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
}

.tool-card {
    background-color: var(--surface-color);
    padding: 20px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tool-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.4;
}

.tool-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.tool-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.tool-url {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    word-break: break-all;
}

.tech-stack {
    height: 100%;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
}

.tech-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-height: 70px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.tech-item:visited {
    color: inherit;
}

.tech-item img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    justify-self: center;
    transition: var(--transition);
}

.tech-item:hover {
    background-color: var(--bg-color);
}

.tech-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card {
    background-color: var(--surface-color);
    border: none;
    border-radius: 8px;
    padding: 40px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 8px 8px 0 0;
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.icon {
    width: 56px;
    height: 56px;
    background-color: #F5F5F5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
    transition: var(--transition);
}

.card:hover .icon {
    background-color: var(--primary-color);
    color: white;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

.url {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: block;
    text-transform: lowercase;
    width: 100%;
}

.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: var(--transition);
    opacity: 0.3;
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.main-footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    width: 100%;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    body::before {
        height: 30vh;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 32px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-content {
        flex-direction: column;
    }
    
    .tools-grid, .tech-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 30px;
    }
}
