/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --clr-bg: #050505;
    /* Vantablack */
    --clr-text: #FFFFFF;
    --clr-text-muted: #888888;
    /* Slate Gray */
    --clr-accent: #FF4500;
    /* Signal Orange */
    --clr-accent-dim: rgba(255, 69, 0, 0.15);
    --clr-surface: #111111;
    --clr-border: #222222;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing - Reduzido para tirar o efeito de zoom */
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;

    /* Grid */
    --container-width: 1200px;
}

[data-theme="light"] {
    --clr-bg: #F5F5F7;
    --clr-surface: #FFFFFF;
    --clr-border: #D2D2D7;
    --clr-text: #1D1D1F;
    --clr-text-muted: #86868B;
    --clr-accent: #E63E00;
    /* Laranja ligeiramente mais escuro para garantir contraste no fundo claro */
    --clr-accent-dim: rgba(230, 62, 0, 0.1);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .bottom-blur {
    background: linear-gradient(to top, rgba(245, 245, 247, 0.9), transparent);
}

/* ==========================================================================
   Scrollbar Personalizada
   ========================================================================== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff571a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    font-size: 14px;
    /* Diminuindo a fonte base para 14px reduz todos os elementos baseados em rem */
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Force font-display: swap to prevent invisible text while font loads */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* Content visibility optimization for off-screen sections */
.about-split,
.faq-contact,
.testimonials,
.process {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Background Modern Aesthetic (Grid Lines) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0.5h60M0.5 0v60' stroke='rgba(255, 255, 255, 0.05)' stroke-width='1' stroke-dasharray='2 4' fill='none'/%3E%3C/svg%3E");
}

[data-theme="light"] body::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0.5h60M0.5 0v60' stroke='rgba(0, 0, 0, 0.06)' stroke-width='1' stroke-dasharray='2 4' fill='none'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Tech Stack Skills
   ========================================================================== */
.tech-card {
    background: var(--clr-surface);
    padding: 1.5rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tech-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 4px;
    background: var(--clr-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--clr-accent);
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--clr-accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 69, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, border-color 0.3s;
}

body.cursor-hover .cursor {
    width: 0;
    height: 0;
}

body.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-color: var(--clr-accent);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--clr-accent);
}

.text-center {
    text-align: center;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-tag {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1rem;
    max-width: 600px;
}

.section-desc.centered {
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-bg);
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #ff571a;
    box-shadow: 0 0 20px var(--clr-accent-dim);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text);
    border-color: var(--clr-border);
    border-radius: 4px;
}

.btn-outline:hover {
    border-color: var(--clr-accent);
}

.btn-whatsapp {
    background-color: var(--clr-accent);
    /* Used Orange instead of generic green to match aesthetic */
    color: var(--clr-bg);
    border-radius: 4px;
}

.btn-whatsapp:hover {
    box-shadow: 0 0 20px var(--clr-accent-dim);
}

/* ==========================================================================
   Navigation (Pill Style)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    z-index: 99999;
    background-color: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    pointer-events: auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--clr-text);
}

/* ==========================================================================
   Mobile Nav & Hamburger
   ========================================================================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 100001;
    background: none;
    border: none;
    padding: 0;
    pointer-events: auto;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--clr-text);
    transition: all 0.3s ease;
}

/* Hamburger active state */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-surface);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateY(0);
}

.mobile-link {
    font-size: 2rem;
    font-weight: 900;
    color: var(--clr-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--clr-accent);
}

.desktop-contact {
    display: inline-flex;
}

/* ==========================================================================
   Hero Split Layout
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-tag {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.2rem;
}

.cursor-blink {
    font-weight: 300;
    color: var(--clr-accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--clr-text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Framed UI Aesthetic (The "North Star" look)
   ========================================================================== */
.framed-wrapper {
    position: relative;
    padding: 2rem;
}

.frame-ui {
    position: absolute;
    inset: 0;
    border: 1px solid var(--clr-border);
    pointer-events: none;
    z-index: 2;
}

/* Crosshairs (corner brackets) */
.frame-crosshair {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--clr-text-muted);
    border-style: solid;
    border-width: 0;
}

.frame-crosshair.top-left {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.frame-crosshair.top-right {
    top: -1px;
    right: -1px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.frame-crosshair.bottom-left {
    bottom: -1px;
    left: -1px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.frame-crosshair.bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Labels */
.frame-label {
    position: absolute;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
    background: var(--clr-bg);
}

.frame-label.top-center {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 10px;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
}

.frame-label.top-left-alt {
    top: -8px;
    left: 20px;
    padding: 0 10px;
}

.frame-label.bottom-left-alt {
    bottom: -8px;
    left: 20px;
    padding: 0 10px;
    color: var(--clr-accent);
}

.frame-label.right-side {
    right: -40px;
    top: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.framed-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: transparent;
}

.framed-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.image-gradient {
    position: absolute;
    bottom: -30px;
    left: -20px;
    right: -20px;
    height: 45%;
    background: linear-gradient(to top, var(--clr-bg) 0%, var(--clr-bg) 35px, transparent 100%);
    pointer-events: none;
    z-index: 2;
}


.about-frame {
    aspect-ratio: 4/5;
    /* Portrait for about section — taller than square */
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.f-icon {
    position: absolute;
    filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.2));
}

/* ==========================================================================
   Projects / Portfolio
   ========================================================================== */
.work {
    padding: var(--space-lg) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Permitir encolher mais no mobile */
    gap: 2rem;
    margin-top: var(--space-lg);
}

.project-card {
    background: var(--clr-bg);
    border: 1px solid transparent;
    transition: border-color 0.3s;
    padding-bottom: 1rem;
}

.project-card:hover {
    border-color: var(--clr-border);
}

.project-image-wrapper {
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--clr-border);
}

.project-image-wrapper img {
    width: 100%;
    height: 110%;
    object-fit: cover;
}

.project-category {
    font-size: 0.75rem;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.project-link {
    font-size: 0.875rem;
    color: var(--clr-text);
    border-bottom: 1px solid var(--clr-accent);
    padding-bottom: 2px;
}

/* ==========================================================================
   Process Timeline
   ========================================================================== */
.process {
    padding: var(--space-lg) 0;
}

.timeline {
    max-width: 600px;
    margin: var(--space-lg) auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 1px;
    background: var(--clr-border);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-marker .dot {
    width: 21px;
    height: 21px;
    background: var(--clr-bg);
    border: 2px solid var(--clr-accent);
    border-radius: 50%;
    margin-top: 10px;
}

.step-num {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.1em;
    position: absolute;
    left: -70px;
    top: 12px;
    width: 60px;
    text-align: right;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   About Split
   ========================================================================== */
.about-split {
    padding: var(--space-lg) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text-col .lead {
    font-size: 1.25rem;
    color: var(--clr-text);
    margin-bottom: 1.5rem;
}

.about-text-col p {
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

/* ==========================================================================
   FAQ & Contact Split
   ========================================================================== */
.faq-contact {
    padding: var(--space-lg) 0 var(--space-xl);
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--clr-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--clr-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.faq-question .icon {
    color: var(--clr-accent);
    transition: transform 0.3s;
    font-size: 1.5rem;
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.contact-box {
    background: var(--clr-surface);
    padding: 3rem;
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-icon-large {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.contact-box p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Footer Professional Redesign
   ========================================================================== */
.footer-area {
    background-color: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    padding: calc(var(--space-xl) * 1.5) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: var(--clr-text);
    display: inline-block;
}

.footer-brand p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '→';
    color: var(--clr-accent);
    opacity: 0;
    margin-left: -20px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--clr-text);
    transform: translateX(10px);
}

.footer-links a:hover::before {
    opacity: 1;
    margin-left: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--clr-surface);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.social-icons a:hover {
    background-color: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bottom-blur {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.8), transparent);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 99;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Tech Stack
   ========================================================================== */
.tech-card {
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 12px;
}

.tech-card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.05);
}

.tech-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--clr-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--clr-border);
    transition: transform 0.5s ease;
}

.tech-card:hover .tech-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--clr-accent);
}

.tech-stats {
    margin-top: 2.5rem;
    text-align: left;
}

.stat-item {
    margin-bottom: 1.2rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
}

.stat-bar {
    height: 4px;
    background: var(--clr-bg);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--clr-accent);
    width: 0%;
    /* Animado no script.js */
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Theme Toggle Switch (Fixed On/Off)
   ========================================================================== */
.theme-switch-wrapper {
    position: fixed;
    right: 30px;
    top: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-switch-wrapper:hover .theme-icon {
    transform: rotate(-15deg) scale(1.1);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--clr-border);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .slider {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: var(--clr-text);
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--clr-accent);
    border-color: var(--clr-accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #fff;
    /* O pino fica branco quando ativado o light mode (laranja) */
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ==========================================================================
   WhatsApp Floating Widget
   ========================================================================== */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    /* Fica acima do footer e blur */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.wa-floating-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Authentic WhatsApp Green */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1), background-color 0.3s;
}

.wa-floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20BA59;
}

.wa-bubble {
    width: 320px;
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.wa-widget-container.active .wa-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-header {
    background-color: var(--clr-bg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--clr-border);
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--clr-accent);
    color: var(--clr-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
}

.wa-title {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wa-title strong {
    font-size: 0.95rem;
    color: var(--clr-text);
}

.wa-title span {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.wa-close {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.wa-close:hover {
    color: var(--clr-text);
}

.wa-body {
    padding: 1.5rem 1rem;
    background-color: var(--clr-surface);
    min-height: 120px;
}

.wa-msg {
    background-color: rgba(255, 69, 0, 0.1);
    border-left: 3px solid var(--clr-accent);
    padding: 1rem;
    border-radius: 0 8px 8px 8px;
    font-size: 0.9rem;
    color: var(--clr-text);
    line-height: 1.5;
    display: inline-block;
}

[data-theme="light"] .wa-msg {
    background-color: rgba(230, 62, 0, 0.05);
}

.wa-footer {
    padding: 1rem;
    border-top: 1px solid var(--clr-border);
    display: flex;
    gap: 10px;
    background-color: var(--clr-bg);
}

.wa-footer input {
    flex-grow: 1;
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: 0.8rem 1rem;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.wa-footer input:focus {
    border-color: var(--clr-accent);
}

.wa-footer button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--clr-accent);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.wa-footer button:hover {
    transform: scale(1.05);
    background-color: #ff571a;
}

/* ==========================================================================
   Portfolio Grid v3 — Scroll-on-Hover Cards
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.portfolio-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Outer wrapper — handles show/hide for filtering */
.portfolio-item-v3 {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
}

.portfolio-item-v3:hover {
    border-color: var(--clr-accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-item-v3.hidden {
    display: none;
}

/* The scroll card itself */
.scroll-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fixed-height window that clips the image */
.scroll-card-viewport {
    position: relative;
    height: 320px;
    overflow: hidden;
    cursor: zoom-in;
}

/* The actual page screenshot */
.scroll-card-viewport img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    top: 0;
    transition: top 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: top;
}

/* On hover: scroll the image to the bottom */
.scroll-card:hover .scroll-card-viewport img {
    top: calc(-100% + 320px);
}

/* Info footer below the viewport */
.scroll-card-footer {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--clr-border);
}

.scroll-card-footer h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0;
    flex: 1;
}

.item-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--clr-accent);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

/* ==========================================================================
   Testimonials Infinite Carousel
   ========================================================================== */
.testimonials {
    padding: 60px 0 40px;
    background-color: var(--clr-bg);
    overflow: hidden;
}

.testi-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-top: 4rem;
    cursor: grab;
}

.testi-carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollTestimonials 50s linear infinite;
    padding: 10px 0 20px;
}

.testi-carousel-wrapper:hover .testi-carousel-track {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testi-card-c {
    flex: 0 0 380px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 2rem;
    border-radius: 20px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.testi-card-c:hover {
    border-color: var(--clr-accent);
    transform: translateY(-5px);
}

.testi-card-c .testi-rating {
    color: #ffb800;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testi-card-c .testi-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--clr-text);
}

.testi-card-c .testi-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 1rem;
}

.testi-card-c .testi-author strong {
    font-size: 0.95rem;
    color: var(--clr-text);
}

.testi-card-c .testi-author span {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* legacy .testimonials-grid kept for safety but hidden */
.testimonials-grid {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .navbar {
        gap: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

    .split-section,
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-text-col,
    .about-text-col {
        order: -1;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .frame-label.right-side {
        display: none;
    }
}

@media (max-width: 768px) {
    .wa-widget-container {
        bottom: 20px;
        right: 20px;
    }

    .hamburger-menu {
        display: flex;
        order: 3;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }

    .nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Esconde o container do botão contato para o hamburger ir pro final */
    .navbar {
        padding: 0.6rem 1.5rem;
        width: calc(100% - 20px);
        justify-content: flex-start;
        align-items: center;
        top: 15px;
    }

    .hero {
        padding-top: 130px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .theme-switch-wrapper {
        top: auto;
        bottom: 40px;
        /* Mais alto para não conflitar com a barra do iOS/Android */
        right: auto;
        left: 20px;
        z-index: 99999;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-marker {
        left: 0;
        top: 0;
    }

    .timeline-marker .dot {
        width: 12px;
        height: 12px;
        margin-top: 25px;
    }

    .step-num {
        position: absolute;
        left: 2.5rem;
        top: 0;
        display: block;
        text-align: left;
        margin-bottom: 0;
        width: max-content;
    }

    .timeline-content {
        padding-top: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links ul {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Portfolio filters — 2-column grid on mobile */
    .portfolio-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.65rem 0.8rem;
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }

    /* First button ("Tudo") spans full width */
    .filter-btn:first-child {
        grid-column: 1 / -1;
    }

    /* Centralizar botão hero no mobile */
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }

    /* Centralizar seção de dúvidas / contact-box no mobile */
    .contact-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-box .btn {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .framed-wrapper {
        padding: 1rem;
    }

    .f-icon {
        display: none;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.55rem 0.5rem;
        font-size: 0.75rem;
    }
}


/* 3D Tilt Effect on Hero Image */
.tilt-3d {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
}

.tilt-3d img {
    transform: translateZ(20px);
}



.tilt-3d:hover {
    transition: none;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 40px);
    max-width: 500px;
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 1000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="light"] .cookie-banner {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cookie-icon {
    flex-shrink: 0;
    color: var(--clr-accent);
}

.cookie-banner p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--clr-text);
    margin: 0;
    flex-grow: 1;
}

.cookie-link {
    color: var(--clr-accent);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.cookie-btn-link {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
    -webkit-appearance: none;
}

.cookie-btn-link:hover {
    color: var(--clr-text);
    text-decoration: underline;
}

.cookie-banner .btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    white-space: nowrap;
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links a {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--clr-accent);
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 20px;
        padding: 1.25rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-direction: row-reverse;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   Lead Gen Form Section
   ========================================================================== */
.lead-gen {
    padding: var(--space-xl) 0;
    background-color: var(--clr-bg);
    overflow: hidden;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--clr-accent);
    border-radius: 100px;
    color: var(--clr-accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.lead-text-col .section-title {
    text-align: left !important;
    margin-bottom: 1.5rem;
}

.lead-text-col .section-desc {
    text-align: left !important;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: 0 !important;
}

.lead-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: var(--clr-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.info-item span {
    font-weight: 500;
    color: var(--clr-text-muted);
    font-size: 1rem;
}

/* Form Card - Glassmorphism Refinement */
.form-card {
    background: rgba(255, 69, 0, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 40px;
    padding: 3.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow */
.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--clr-text);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--clr-text);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.1);
}

/* Fix for select arrow in dark mode */
.form-group select option {
    background-color: var(--clr-bg);
    color: var(--clr-text);
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.1rem;
    background-color: var(--clr-accent);
    color: var(--clr-text);
    border: none;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    margin-top: 1.5rem;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.3);
    background-color: #FF5722;
}

.btn-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--clr-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Responsive Refinements */
@media (max-width: 992px) {
    .lead-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .lead-text-col, .lead-text-col .section-title, .lead-text-col .section-desc {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .lead-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .lead-contact-info {
        align-items: center;
        gap: 2rem;
    }

    .info-item {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        background-color: var(--clr-accent-dim);
        border-color: rgba(255, 69, 0, 0.3);
    }

    .info-item span {
        font-size: 1.1rem;
    }
    
    .form-card {
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }
}

/* Form Status Messages */
.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-success {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status-error {
    color: #FF5252;
    background-color: rgba(255, 82, 82, 0.1);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 82, 82, 0.2);
}
