:root {
    --lime-primary: #a2dcf2;
    --lime-secondary: #74b5d4;
    --black: #0a3159;
    --grey-dark: #12467a;
    --white: #FFFFFF;
    --text-grey: #444444;
    --text-light: #AAAAAA;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    /* Makes logo visible on white and black */
    color: white;
    /* Due to difference mode */
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* --- Hero Section (Split) --- */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.left-panel {
    flex: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem;
    position: relative;
    z-index: 2;
}

.right-panel {
    flex: 1;
    background: linear-gradient(135deg, #dcf3fb 0%, #a2dcf2 50%, #7ecbf5 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Visuals */
.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float-orb 10s ease-in-out infinite alternate;
}

.glass-card {
    width: 400px;
    height: 500px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 10;
}

.glass-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.stat-row {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.stat-pill {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Hero Typography */
.hero-title {
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

p.lead {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin-bottom: 3rem;
    max-width: 450px;
    line-height: 1.5;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--lime-primary);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
}

.text-link {
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--lime-primary);
}

/* --- SECTIONS COMMON --- */
section.page-section {
    padding: 8rem 6rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

h2 {
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -1.5px;
}

/* --- TRUSTED BY (Carousel) --- */
.trusted-section {
    background: #f0f8ff;
    /* Light alice blue to match theme */
    padding: 4rem 0;
    overflow: hidden;
    border-bottom: 1px solid #dcebf5;
}

.logo-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marquee-scroll 60s linear infinite;
    /* Slower 30s -> 60s */
    gap: 4rem;
    padding-right: 4rem;
    /* Buffer for loop */
}

.marquee-content:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

.brand-logo {
    height: 40px;
    /* Fixed height for uniformity */
    width: auto;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.3s;
    /* Removed grayscale filter for original colors */
}

.brand-logo:hover {
    opacity: 1;
    /* Removed filter transition */
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Note: We will duplicate content to ensure smooth loop */
}

/* --- SERVICES (Dark) --- */
#services {
    background: var(--black);
    color: var(--white);
}

#services .section-label {
    color: var(--lime-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--grey-dark);
    padding: 3rem;
    border: 1px solid #222;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--lime-primary);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--lime-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* --- PORTFOLIO (Light) --- */
#portfolio {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
}

.portfolio-item:nth-child(even) {
    transform: translateY(4rem);
    /* Simple masonry effect */
}

.portfolio-img {
    width: 100%;
    height: 400px;
    /* Placeholder aspect */
    background: #f0f0f0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.portfolio-tags {
    color: var(--text-grey);
    font-family: monospace;
}

/* --- PRODUCTS (Vibrant) --- */
#products {
    background: var(--lime-primary);
    color: var(--black);
    padding: 6rem 0;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    font-size: 6rem;
    font-weight: 700;
    margin-right: 4rem;
    letter-spacing: -2px;
    opacity: 0.8;
}

.product-showcase {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.product-info h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-info p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.product-visual {
    flex: 1;
    height: 300px;
    background: black;
    border-radius: 20px;
    position: relative;
}

.product-visual::after {
    content: "DESTAQUE";
    position: absolute;
    top: -20px;
    right: -20px;
    background: white;
    padding: 10px 20px;
    font-weight: 700;
    transform: rotate(10deg);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

/* --- BLOG (Cards) --- */
#blog {
    background: #f8f9fb;
    /* Slight contrast for white cards */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.blog-img-wrapper {
    width: 100%;
    height: 220px;
    background: #e0e0e0;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.blog-link {
    margin-top: auto;
    color: var(--lime-secondary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-link:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 6rem;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: var(--lime-primary);
}

/* Animations */
@keyframes float-orb {
    0% {
        transform: translate(-20%, -20%);
    }

    100% {
        transform: translate(20%, 20%);
    }
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .split-container {
        flex-direction: column;
    }

    .left-panel {
        padding: 8rem 2rem 4rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for mobile */

    section.page-section {
        padding: 4rem 2rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-item:nth-child(even) {
        transform: none;
    }

    .product-showcase {
        flex-direction: column;
    }

    .blog-title {
        font-size: 1.5rem;
    }
}