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

:root {
    --primary: #00413E; /* Brand Teal */
    --primary-light: #005A56;
    --accent: #C5A059; /* Brand Gold */
    --accent-light: #D4B982;
    --dark: #121212;
    --text-main: #333333;
    --text-muted: #666666;
    --light: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --glass: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 80px 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    height: 50px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 65, 62, 0.15);
}

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

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
    background: var(--light);
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

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

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.logo-img {
    height: 50px; /* Reduced to match the button height exactly */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.2rem; /* Reduced to fit all items */
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    flex: 1;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.75rem; /* Balanced for multiple links */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-action-btn {
    flex-shrink: 0;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--light);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--light);
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-btns .btn-primary {
    background-color: var(--accent);
    color: var(--dark);
    border: none;
    font-weight: 800;
}

.hero-btns .btn-primary:hover {
    background-color: var(--light);
    color: var(--primary);
}

.hero-btns .btn-outline {
    border-color: var(--light);
    color: var(--light);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.hero-btns .btn-outline:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* About & Services */
.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 15px 15px 0 var(--bg-secondary);
}

.services { background-color: var(--bg-secondary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: var(--light); padding: 3rem 2rem; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border-top: 5px solid transparent; transition: var(--transition); }
.service-card:hover { transform: translateY(-10px); border-top-color: var(--accent); }
.service-card i { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }

/* Tech Services */
.tech-services { background-color: var(--light)!important; }

/* Diferencial */
.diferencial { background-color: var(--bg-secondary); }
.diferencial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dif-item { background: var(--light); padding: 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); border-radius: 4px; }
.dif-icon { color: var(--accent); font-size: 1.2rem; }
.dif-item h4 { font-size: 0.8rem; color: var(--primary); }

/* Portfolio */
.portfolio-item { background: var(--bg-secondary); padding: 1.5rem; border-radius: 8px; box-shadow: var(--shadow); }

/* Contact Form */
.contact-form { background: var(--light); padding: 2.5rem; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--glass-border); }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.8rem; color: var(--primary); }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }

/* Footer */
footer {
    padding: 50px 0;
    background-color: var(--primary);
    color: var(--light);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo-bg {
    background: #FFFFFF;
    padding: 12px;
    display: inline-block;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

footer .logo-img {
    height: 60px;
    width: auto;
    filter: none; /* Original colors on white box */
}

footer h4 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1rem; }
footer ul li { margin-bottom: 8px; font-size: 0.9rem; opacity: 0.8; }
footer ul li a:hover { color: var(--accent); padding-left: 5px; }

.copy { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 3rem; opacity: 0.5; font-size: 0.7rem; }

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.8s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 1050px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 2500;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; text-align: left; border-bottom: 1px solid #eee; }
    .nav-links a { font-size: 1rem; padding: 15px 0; color: var(--primary); display: block; }
    
    .hero-content h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .diferencial-grid { grid-template-columns: 1fr; }
    .nav-action-btn { display: none; }
}
