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

:root {
    --bg-dark: #05080c;
    --bg-section: #0b1118;
    --bg-card: #0d1520;
    --bg-card-hover: #121c29;
    --primary: #e02828;
    --primary-hover: #c42020;
    --text-main: #ffffff;
    --text-muted: #a0aab2;
    --border-color: #1e293b;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 170px; /* Compensação para a barra de navegação fixa no desktop */
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.icon-sm {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px;
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline-light:hover {
    border-color: var(--text-muted);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-container .logo {
    height: 130px;
    display: block;
    mix-blend-mode: lighten; /* Removes black bg of the logo */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-dark) 30%, rgba(5,8,12,0.8) 50%, rgba(5,8,12,0) 100%);
}

.hero-content {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.line-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.line-indicators span {
    width: 20px;
    height: 1px;
    background-color: rgba(255,255,255,0.2);
}

.line-indicators span.active {
    background-color: var(--primary);
}

.hero-main .subtitle {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero-main h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-main p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-badge {
    position: absolute;
    bottom: 80px;
    right: 5%;
    background-color: rgba(13, 21, 32, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-icon {
    color: var(--primary);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.badge-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Cases Section */
.cases {
    background-color: var(--bg-dark);
    padding: 100px 0 50px 0;
    position: relative;
    z-index: 10;
}

.cases-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 5%;
}

.cases-header .subtitle {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.cases-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cases-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.cases-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.cases-carousel::before,
.cases-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.cases-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.cases-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.cases-track {
    display: flex;
    width: max-content;
    animation: scrollCases 25s linear infinite;
}

.cases-track:hover {
    animation-play-state: paused;
}

.cases-slide {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}

.case-card {
    width: 450px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    position: relative;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover img {
    transform: scale(1.08);
}

@keyframes scrollCases {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services Section */
.services {
    background-color: var(--bg-section);
    padding: 100px 5%;
    position: relative;
    z-index: 10;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tab Buttons */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background-color: var(--primary);
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(224, 40, 40, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
}

.services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Service Card */
.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.card-icon {
    color: var(--primary);
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.card-number {
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.1);
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
}

.card-arrow {
    margin-top: 30px;
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

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

/* About Block (Quem Somos) in Grid */
.about-block {
    background-color: transparent;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.about-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.about-block .btn {
    align-self: flex-start;
}

/* Features Bar */
.features-bar {
    background-color: var(--bg-dark);
    padding: 40px 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 1rem;
}

.feature-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background-color: #030508;
    padding: 20px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.dev-link {
    color: var(--primary);
    font-weight: 700;
    transition: color 0.3s ease;
}

.dev-link:hover {
    color: var(--primary-hover);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #1faa52 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    filter: brightness(1.03);
}

.floating-whatsapp-icon {
    width: 20px;
    height: 20px;
}

.floating-whatsapp span {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-main h1 {
        font-size: 3rem;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

