/* Base Styles */
:root {
    --primary-color: #009c3b; /* Brazilian green */
    --secondary-color: #ffdf00; /* Brazilian yellow */
    --accent-color: #002776; /* Brazilian blue */
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #ffffff;
    --section-bg: #f8f9fa;
    --footer-bg: #002776;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 39, 118, 0.7), rgba(0, 39, 118, 0.7)), url('../assets/hero-bg.svg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 150px 20px;
    margin-top: 80px;
}

.hero h1 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn.secondary:hover {
    background-color: var(--light-text);
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 100px 0;
}

section:nth-child(even) {
    background-color: var(--section-bg);
}

/* Gallery */
.gallery {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--accent-color);
    height: 300px;
    position: relative;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--light-text);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    transition: var(--transition);
}

.gallery-content h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.gallery-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

/* Technology */
.tech-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tech-feature {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.tech-feature h3 {
    color: var(--primary-color);
}

/* Resources */
.resources {
    background-color: var(--section-bg);
    text-align: center;
}

.resource-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.resource-category {
    flex: 1;
    max-width: 400px;
}

.resource-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.resource-category ul {
    list-style: none;
}

.resource-category ul li {
    margin-bottom: 1rem;
}

.resource-category a {
    display: block;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.resource-category a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

/* Contact */
.contact {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 50px auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--light-text);
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-features {
        grid-template-columns: 1fr;
    }
    
    .resource-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-color);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
