/* 1. Variables and Base Styles */
:root {
    --blue-primary: #007BFF;
    --blue-secondary: #00CFFF;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #6c757d;
    --gray-bg: #f8f9fa;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    background-color: var(--white);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* 2. Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--black);
    position: relative;
}

.logo-navbar {
    height: 200px;
    width: auto;
    margin: -75px 0;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue-primary);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lang-link.active,
.lang-link:hover {
    color: var(--blue-primary);
}

.lang-separator {
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* 3. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--black);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.btn-outline:hover {
    background-color: var(--blue-primary);
    color: var(--white);
    transform: translateX(5px);
}

/* 4. Hero Section */
.hero-section {
    position: relative;
    background-color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 800px;
    margin: 0;
    padding-left: 0;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.hero-buttons {
    display: flex;
    justify-content: flex-start;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wave-image {
    position: absolute;
    bottom: -400px;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.9;
    object-fit: cover;
}

/* 5. Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* 6. About Section */
.about-section {
    padding: 180px 0 80px;
    background-color: var(--gray-bg);
}

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

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.125rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* 7. Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--white);
}

.portfolio-content {
    margin: 3rem 0;
    min-height: 200px;
    /* Placeholder for portfolio items */
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-light);
}

/* 8. Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--gray-bg);
}

.testimonials-content {
    margin: 3rem 0;
    min-height: 200px;
    /* Placeholder for testimonials */
}

/* 9. Contact/CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: var(--white);
}

.cta-section h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 1.5rem auto 2rem;
    max-width: 600px;
    opacity: 0.95;
}

.cta-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-form input {
    padding: 1.2rem;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.cta-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-form .btn {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* 10. Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: inline-block;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: #adb5bd;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--blue-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--blue-primary);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #343a40;
    color: #6c757d;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--blue-primary);
}

/* 10. Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Gradient Animation */
.gradient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 123, 255, 0.1) 0%, 
        rgba(0, 207, 255, 0.05) 25%, 
        transparent 50%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.5); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #007BFF, #00CFFF);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 25s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 24s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 19s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 23s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 20s; }
.particle:nth-child(10) { left: 95%; animation-delay: 18s; animation-duration: 26s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* Wave Animation */
.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 2;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 200px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 20s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 25s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 30s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 35s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Typography Classes */
.numeric-data,
.technical-content {
    font-family: var(--font-secondary);
    font-weight: 500;
}

/* 11. Specialties Section */
.specialties-section {
    padding: 80px 0;
    background-color: var(--white);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.specialty-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--gray-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.specialty-icon {
    margin: 0 auto 0.5rem;
    display: block;
    width: 140px;
    height: 140px;
    background-size: 280px 280px;
    background-repeat: no-repeat;
}

/* Icons from sprite sheets */
.icon-gestao {
    background-image: url('./images/1.png');
    background-position: 0 0;
}

.icon-branding {
    background-image: url('./images/1.png');
    background-position: -140px 0;
}

.icon-copy {
    background-image: url('./images/1.png');
    background-position: 0 -140px;
}

.icon-ia {
    background-image: url('./images/1.png');
    background-position: -140px -140px;
}

.icon-funis {
    background-image: url('./images/2.png');
    background-position: 0 -140px;
}

.specialty-card h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.specialty-card p {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* 12. Inner Pages Styles */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Page */
.services-detailed {
    padding: 80px 0;
    background-color: var(--white);
}

.service-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--gray-bg);
    border-radius: 12px;
}

.service-item.reverse {
    grid-template-columns: 1fr 200px;
}

.service-item.reverse .service-icon-large {
    order: 2;
}

.service-item.reverse .service-content {
    order: 1;
}

.service-icon-large {
    width: 200px;
    height: 200px;
    background-size: 400px 400px;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.service-icon-large.icon-gestao {
    background-image: url('./images/1.png');
    background-position: 0 0;
}

.service-icon-large.icon-branding {
    background-image: url('./images/1.png');
    background-position: -200px 0;
}

.service-icon-large.icon-copy {
    background-image: url('./images/1.png');
    background-position: 0 -200px;
}

.service-icon-large.icon-ia {
    background-image: url('./images/1.png');
    background-position: -200px -200px;
}

.service-icon-large.icon-funis {
    background-image: url('./images/2.png');
    background-position: 0 -200px;
}

.service-content h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1.125rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--black);
}

.service-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue-primary);
    font-weight: bold;
}

/* Cases Page */
.cases-grid-section {
    padding: 80px 0;
    background-color: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--gray-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.case-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    opacity: 0.3;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.case-category {
    color: var(--blue-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.case-description {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-results {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.result-label {
    font-size: 0.875rem;
    color: var(--gray-light);
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.contact-form-wrapper p {
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    padding: 2rem;
    background-color: var(--gray-bg);
    border-radius: 12px;
    height: fit-content;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--gray-light);
    line-height: 1.6;
}

.contact-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--blue-primary);
    transition: all 0.3s ease;
}

.contact-social-links a:hover {
    background-color: var(--blue-primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-social-links svg {
    width: 20px;
    height: 20px;
}

/* Active nav link */
.main-nav a.active {
    color: var(--blue-primary);
    position: relative;
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--blue-primary);
}

/* 13. Responsive Styles */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-section h2,
    .section-header h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .cta-form {
        max-width: 100%;
    }
}