/* ==========================================================================
   CSS Variables & Global Resets
   ========================================================================== */
   :root {
    --red-brand: #C20A27; /* Deep, vivid red for agency */
    --red-brand-light: #E01A3B;
    --red-brand-dark: #8C061B;
    --dark-bg: #0C0C0C;
    --dark-surface: #1A1A1A;
    --light-bg: #FAFAFA;
    --white: #FFFFFF;
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #F5F5F5;
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

.section {
    padding: 100px 0;
}

.pt-0 {
    padding-top: 0 !important;
}

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

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Base Sections Colors */
.section-red {
    background-color: var(--red-brand);
    color: var(--white);
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

.section-light {
    background-color: var(--light-bg);
    color: var(--text-main);
}

/* Titles */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-red h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--white);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.section-dark h2::after, .title-dark::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--red-brand);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.text-center h2::after {
    left: 25%;
}

.text-red {
    color: var(--red-brand);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--red-brand);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--red-brand-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.btn-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #222;
    transform: translateY(-3px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background-color: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Hero Section */
.hero-wrapper {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a0000 100%);
    color: var(--white);
    min-height: calc(100vh - 80px); /* Adjust height since header is separated */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(194, 10, 39, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-red {
    color: var(--red-brand);
}

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

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

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

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: slideUp 0.8s ease forwards;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: slideUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: slideUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* Quem Somos Nós */
.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Time RED */
.team-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 20px;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.team-row.reverse {
    flex-direction: row-reverse;
}

.team-text {
    flex: 1;
    max-width: 600px;
}

.team-text h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.team-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.team-image-box {
    flex-shrink: 0;
}

.team-photo {
    width: 250px;
    height: 300px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Add some placeholder gradients for team photos since we don't have images yet */
.photo-1 { background-image: linear-gradient(45deg, #1a1a1a, #4a4a4a); }
.photo-2 { background-image: linear-gradient(135deg, #2c2c2c, #5c5c5c); }
.photo-3 { background-image: linear-gradient(225deg, #111, #333); }

/* Trabalhos Destaques (Marquee & Masonry) */
.marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee-scroll 40s linear infinite;
}

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

.marquee-content {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

.masonry-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 250px;
}

.work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--dark-bg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.work-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.work-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.work-item:hover .work-img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    padding-left: 5px; /* Visual center for play icon */
    backdrop-filter: blur(4px);
    opacity: 0.9;
    transition: var(--transition);
}

.work-item:hover .play-btn {
    background-color: var(--red-brand);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}


/* Placeholder backgrounds for Works */
.bg-work-1 { background-image: linear-gradient(to right, #ff416c, #ff4b2b); }
.bg-work-2 { background-image: linear-gradient(to bottom, #1e3c72, #2a5298); }
.bg-work-3 { background-image: linear-gradient(45deg, #111, #333); }
.bg-work-4 { background-image: linear-gradient(to top, #fbc2eb, #a6c1ee); }
.bg-work-5 { background-image: linear-gradient(to right, #4facfe, #00f2fe); }
.bg-work-6 { background-image: linear-gradient(135deg, #667eea, #764ba2); }
.bg-work-7 { background-image: linear-gradient(to right, #ff0844, #ffb199); }
.bg-work-8 { background-image: linear-gradient(to right, #b224ef, #7579ff); }
.bg-work-9 { background-image: linear-gradient(to right, #0ba360, #3cba92); }
.bg-work-10 { background-image: linear-gradient(to top, #d299c2, #fef9d7); }

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 10px;
    overflow: hidden;
}

.modal-content video {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    outline: none;
    background-color: #000;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--red-brand);
    transform: scale(1.1);
}

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

/* Serviços */
.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: var(--white);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-bg);
    box-shadow: var(--shadow-sm);
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    border: 2px solid transparent;
}

.service-pill i {
    color: var(--red-brand);
    transition: transform 0.3s ease;
}

.service-pill:hover {
    border-color: var(--red-brand);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.service-pill:hover i {
    transform: translateX(5px);
}

/* Feedbacks */
.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feedback-box {
    background-color: var(--dark-surface);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border-top: 4px solid var(--red-brand);
}

.quote-icon {
    font-size: 2rem;
    color: var(--red-brand);
    opacity: 0.5;
    margin-bottom: 20px;
}

.feedback-box p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
}

.client-info strong {
    display: block;
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Portfólio Categories */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-category {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.icon-circle i {
    font-size: 1.5rem !important;
    color: var(--white) !important;
}

.bg-red {
    background-color: var(--red-brand);
}

.bg-dark {
    background-color: var(--dark-bg);
}

.category-header h3 {
    font-size: 1.6rem;
}

.category-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Contato Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.social-pills {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.social-pill-outline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border: 2px solid var(--red-brand);
    border-radius: 50px;
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 1.1rem;
    width: fit-content;
}

.social-pill-outline:hover {
    background-color: var(--red-brand);
    color: var(--white);
    transform: translateX(10px);
}

.contact-form-box {
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form-box h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
    background-color: var(--white);
}

/* Footer & FAQ */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion {
    margin-top: 30px;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.developer-credit a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: var(--white);
}

.developer-credit img {
    height: 25px; /* Small enough to fit the line */
    width: auto;
    transition: var(--transition);
}

.developer-credit a:hover img {
    transform: scale(1.05); /* Slight scale on hover for interactivity */
}

/* Windows / Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Text Underline Button */
.btn-primary-underline {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    background-color: var(--red-brand);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.btn-primary-underline:hover {
    background-color: var(--red-brand-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.4);
    color: var(--white);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll Reveal Classes */
.reveal-text, .reveal-card, .reveal-image, .reveal-pill {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-text.active, .reveal-card.active, .reveal-image.active, .reveal-pill.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .auto-grid, .contact-wrapper, .footer-top {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app we'd build a mobile menu toggle here */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }

    .team-row, .team-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .feedback-grid {
        grid-template-columns: 1fr;
    }
    
    .service-pill {
        flex: 1 1 100%;
    }
}
