/* CSS Reset & Variables */
:root {
    --primary-color: #FF5722;
    --primary-hover: #E64A19;
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: rgba(0, 0, 0, 0.65);
    --border-color: rgba(0, 0, 0, 0.1);
    --white: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-heading: "Space Grotesk", "Inter", sans-serif;
    --font-body: "Inter", sans-serif;

    --container-width: 1200px;
    --header-height: 80px;

    --line-color: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative; /* For page rails */
}

/* Page Rails (Vertical Lines) */
body::before,
body::after {
    content: "";
    pointer-events: none;
    position: fixed; /* Fixed to stay on screen while scrolling */
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-color);
    z-index: -1; /* Behind content */
}

body::before {
    left: 5%;
}

body::after {
    right: 5%;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.text-display {
    font-family: var(--font-heading);
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f4f4f5;
    color: #18181b;
}

.btn-secondary:hover {
    background-color: #e4e4e7;
}

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

.btn-outline:hover {
    background-color: #FFF3E0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-color);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Logo styles updated for image */
.logo {
    display: flex;
    align-items: center;
    /* gap: 10px; removed as it's just an image now */
}

/* Removed obsolete .logo-icon and .logo-text styles */

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 30px;
        margin-left: auto;
    }
    .mobile-cta {
        display: none;
    }
}

.nav-links a {
    font-size: 14px;
    font-family: var(--font-heading);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line-color);
    display: flex;
    flex-direction: column;
    flex-direction: column;
}

.hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px; /* Space above brands */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: grid;
    gap: 40px;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #FFF3E0;
    color: #E64A19;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.text-gradient {
    background: linear-gradient(to right, #FF5722, #FF7043);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

.hero-previews {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 24px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.preview-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
}

/* CSS for margins */
.clients-section {
    margin-top: 10px;
    margin-right: 5%;
    margin-left: 5%;
}

.brands-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.brands-label {
    padding: 20px 40px;
    border-right: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .brands-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .brands-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        text-align: center;
        white-space: normal;
    }
}

/* Infinite Scroll Carousel */
.scroller {
    flex: 1; /* Take remaining space */
    overflow: hidden;
    /* subtle mask */
    mask-image: linear-gradient(to right, transparent, white 5%, white 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 5%, white 95%, transparent);
}

.scroller__inner {
    padding-block: 1.5rem; /* Slightly more vertical padding */
    display: flex;
    flex-wrap: wrap;
    gap: 4rem; /* Reduced gap slightly for compact view */
    width: max-content;
    animation: scroll 60s linear infinite;
}

.scroller:hover .scroller__inner {
    animation-play-state: paused;
}

.scroller__inner li {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 30px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1.5rem));
    }
}

/* Services */
.section-header {
    max-width: 600px;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.services-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    color: var(--primary-color);
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

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

/* Portfolio */
.portfolio-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .portfolio-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.portfolio-grid {
    display: grid;
    gap: 24px;
}

.secondary-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .secondary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #000;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    background: rgba(255, 243, 224, 0.95);
    color: #E64A19;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.project-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-desc {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    max-width: 90%;
}

/* Process Section - Dark Mode Test */
#processo {
    background-color: #1A1A1A;
    color: #fff;
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* White rails for dark section */
#processo::before,
#processo::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 20;
}

#processo::before { left: 5%; }
#processo::after { right: 5%; }

/* Adjust header text colors */
#processo .section-title { color: #fff; }
#processo .section-header p { color: rgba(255, 255, 255, 0.7) !important; }

/* In the dark section, the white card (.process-container) needs to contain standard text colors.
   Since #processo sets color: #fff, this might inherit into the white card if not reset.
*/
#processo .process-container {
    color: var(--text-color); /* Reset text color for white card */
}

/* Process */
.process-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-top: 40px;
}

.process-steps {
    display: grid;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    padding: 30px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .step {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
    .step:last-child {
        border-right: none;
    }
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.step-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 87, 34, 0.3);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: left;
    margin-top: 40px;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #2D2D2D;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .testimonial-quote { font-size: 1.5rem; }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-controls {
    display: flex;
    gap: 10px;
}

.slide-hidden {
    display: none;
    opacity: 0;
}

.slide-active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tech Chips */
.tech-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F5F5F5;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.tech-chip:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tech-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* CTA */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, #FF5722, #FF7043);
    border-radius: 24px;
    padding: 60px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    /* Noise texture simulation */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 600px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
footer {
    background-color: #1A1A1A;
    color: #fff;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr; /* Brand column wider */
    }
}

.footer-col h5 {
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-col ul li a, 
.footer-col .contact-link,
.footer-col .social-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover,
.footer-col .contact-link:hover,
.footer-col .social-links a:hover {
    opacity: 1 !important;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay utility (optional) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }


.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(255, 87, 34, 0.5);
    color: #ffffff;
}

.whatsapp-btn i {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    stroke: #ffffff;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
