:root {
    --color-bg: #0a0a0a;
    --color-surface: #121212;
    --color-primary: #f8130f;
    --color-primary-hover: #f8130f;
    --color-text: #FFFFFF;
    --color-text-muted: #A0A0A0;

    --font-family: 'Inter', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --border-radius: 8px;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image Styles */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.hero-phone-img {
    width: 100%;
    max-width: 1500px;
    height: auto;
    margin-top: 3rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    /* Ensure it doesn't block clicks */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

p {
    color: var(--color-text-muted);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid #333;
    background: transparent;
    color: white;
}

/* Neon Button Effect (Adapted) */
.btn-neon {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    color: var(--color-primary);
    /* Defined Red */
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 2px;
    overflow: hidden;
    font-weight: 800;
    background: transparent;
    /* Ensure dark background shows through */
    /* Optional: maintain pill shape from previous preference? The sample code is square. 
       Let's add a slight radius for consistency with UI */
    border-radius: 4px;
}

.btn-neon:hover {
    background: var(--color-primary);
    color: #fff;
    /* contrast text on hover */
    box-shadow: 0 0 5px var(--color-primary), 0 0 25px var(--color-primary), 0 0 50px var(--color-primary), 0 0 200px var(--color-primary);
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.btn-neon span {
    position: absolute;
    display: block;
}

.btn-neon span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary));
    animation: animate1 1s linear infinite;
}

@keyframes animate1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.btn-neon span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--color-primary));
    animation: animate2 1s linear infinite;
    animation-delay: 0.25s;
}

@keyframes animate2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.btn-neon span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(--color-primary));
    animation: animate3 1s linear infinite;
    animation-delay: 0.5s;
}

@keyframes animate3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}

.btn-neon span:nth-child(4) {
    bottom: -100%;
    left: 0;
    /* Slide in centered (approx) */
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--color-primary));
    animation: animate4 1s linear infinite;
    animation-delay: 0.75s;
}

/* Slide Animated Button - User Logic (Red Theme) */
.btn-slide {
    position: relative;
    display: inline-block;
    height: 50px;
    width: 260px;
    /* Exact width from snippet, fits "Design de Qualidade" */
    line-height: 50px;
    margin: 0;
    /* Adjusted from snippet's 25px to fit layout */
    padding: 0px;
    border-radius: 25px;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.7);
    /* Adapted Gradient: Red to Darker Red */
    /* User Request: Gradient Dark Red to #f8130f */
    background: linear-gradient(135deg, #4a0000 0%, #f8130f 100%);
    text-decoration: none;
    overflow: hidden;
    /* Ensure circle stays inside */
    z-index: 1;
    /* Stack context */
}

/* Pseudo-element for smooth gradient fade */
.btn-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-135deg, #4a0000 0%, #f8130f 100%);
    /* The 'hover' gradient */
    opacity: 0;
    z-index: 1;
    /* Below text/circle */
    transition: opacity 0.5s ease-in-out;
}

.btn-slide:active {
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.7);
    transform: scale(0.96);
}

.btn-slide:hover {
    /* Glow effect behind button */
    box-shadow: 0 0 30px rgba(248, 19, 15, 0.6);
}

.btn-slide:hover::before {
    opacity: 1;
    /* Fade in the second gradient */
}

.btn-slide span.circle {
    display: block;
    background-color: #fff;
    color: #E53935;
    /* Icon color red */
    position: absolute;
    margin: 5px;
    height: 40px;
    width: 40px;
    top: 0;
    left: 0;
    border-radius: 50%;
    transition: all 1.5s ease;
    display: flex;
    /* Center icon */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    /* Sit above the gradient fade */
}

.btn-slide:hover span.circle {
    left: 100%;
    margin-left: -45px;
    background-color: #fff;
    color: #b71c1c;
}

.btn-slide span.title {
    z-index: 2;
    /* Sit above gradient */
    position: absolute;
    left: 60px;
    /* Adjusted text starting pos */
    font-weight: 700;
    font-size: 16px;
    /* Adjusted size */
    letter-spacing: 1px;
    color: #fff;
    transition: all 1.5s linear;
    white-space: nowrap;
}

.btn-slide span.title-hover {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #fff;
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transition: all 1.5s linear;
    z-index: 2;
    /* Sit above gradient */
}

.btn-slide:hover span.title {
    opacity: 0;
}

.btn-slide:hover span.title-hover {
    opacity: 1;
    left: 30px;
    /* Position when revealed */
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}

/* Flip Button (3D Effect) */
.btn-flip {
    opacity: 1;
    outline: 0;
    color: #fff;
    line-height: 50px;
    /* Increased to match neon button height */
    position: relative;
    text-align: center;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 20px;
    cursor: pointer;
    vertical-align: middle;
    /* Ensure alignment */
}

.btn-flip:hover:after {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.btn-flip:hover:before {
    opacity: 0;
    transform: translateY(50%) rotateX(90deg);
}

/* Back State (Hover): White Background, Black Text */
.btn-flip:after {
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    color: #000;
    /* Black Text */
    display: block;
    transition: 0.5s;
    position: absolute;
    background: #fff;
    /* White Background */
    content: attr(data-back);
    transform: translateY(-50%) rotateX(90deg);
    border-radius: 4px;
    border: 1px solid #fff;
}

/* Front State: Transparent Background, White Border */
.btn-flip:before {
    top: 0;
    left: 0;
    opacity: 1;
    color: #fff;
    display: block;
    padding: 0 30px;
    line-height: 50px;
    /* Match container height */
    transition: 0.5s;
    position: relative;
    background: transparent;
    /* No fill */
    content: attr(data-front);
    transform: translateY(0) rotateX(0);
    border: 1px solid #fff;
    /* White Border */
    border-radius: 4px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Hero */
.hero {
    padding: 140px 0 0;
    /* Remove bottom padding to let fade handle it */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg);
    /* Ensure base */
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    /* "Bem perto do final" - contained fade */
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    /* Fades any content/glows into solid black */
    z-index: 5;
    pointer-events: none;
}



.hero-bg-glow {
    display: none;
    /* Removed in favor of side glows */
}

.hero-container {
    max-width: 1000px;
}

/* Badge Refined - User Provided Code (Gradient Mask) */
.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.animated-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: #b30000;
    /* Solid Red */
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: none;
    /* User explicitly asked for no glow previously, maintaining that philosophy unless code says otherwise */
}

/* TEXTO E ÍCONE */
.animated-button .icon {
    font-size: 16px;
    display: flex;
    /* Fix alignment for FA icon */
}

.animated-button .text {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* BORDA ANIMADA */
.animated-button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    /* Espessura da borda */
    border-radius: inherit;
    background: conic-gradient(from 0deg,
            #ffffff,
            #ff0000,
            #ff0000,
            #ff0000,
            #ffffff);
    animation: rotateBorder 8s linear infinite;

    /* Máscara para virar só borda */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ANIMAÇÃO SUAVE */
@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Typography Refinement */
.hero-intro {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ccc;
    margin-bottom: 0px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    color: #E53935;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
}

.hero-text-img {
    max-width: 100%;
    height: auto;
    width: 1150px;
    /* Increased to 1150px */
    /* Increased to 900px */
    margin-bottom: 0;
    /* Remove bottom margin to aid overlap */
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    /* Behind phone */
    filter: drop-shadow(0 0 20px rgba(229, 57, 53, 0.3));
}

@media (max-width: 768px) {
    .hero-text-img {
        width: 100%;
        max-width: 400px;
    }
}

.hero-subtitle {
    /* Deprecated in new design but kept for fallback styles */
    display: none;
}

/* Hero Image & Glow */
/* Hero Image & Glow */
.hero-bg-left {
    position: absolute;
    top: -10%;
    /* Move higher */
    left: 0;
    height: 140%;
    /* Increase height */
    width: auto;
    max-width: 65vw;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.hero-bg-right {
    position: absolute;
    top: -10%;
    right: 0;
    height: 140%;
    /* Increase height */
    width: auto;
    max-width: 65vw;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Increased from 800px */
    margin: -240px auto 2rem;
    /* Increased overlap to -240px */
    z-index: 2;
    /* Ensure phone sits above glows */
}

.hero-phone-img {
    width: 100%;
    height: auto;
    display: block;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, rgba(229, 57, 53, 0.4) 40%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
}

/* Buttons Refined */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    /* Fix vertical alignment */
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Hero Composition Image */
@media (max-width: 768px) {

    .hero-bg-left,
    .hero-bg-right {
        opacity: 0.6;
        max-width: 90vw;
        top: 0;
    }
}

/* Brand Showcase */
.brand-showcase {
    position: relative;
    width: 100%;
    height: 80vh;
    background-image: url('assets/roriz-building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Reset margin to allow proper stacking with gradients */
    margin-top: 0;
    z-index: 1;
}

/* Gradient Overlays for Seamless Transitions */
.brand-showcase::before,
.brand-showcase::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 200px;
    /* Extended fade height for smoothness */
    z-index: 2;
    pointer-events: none;
}

/* Top fade: Hero Dark BG -> Transparent */
.brand-showcase::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a0a 10%, transparent);
}

/* Bottom fade: Transparent -> Testimonials Dark BG */
.brand-showcase::after {
    bottom: 0;
    background: linear-gradient(to top, #0b0b0b 30%, transparent);
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
    /* Strong vignette */
}

/* Features Removed */



/* Sections Common */
.section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(229, 57, 53, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.badge-pill {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(229, 57, 53, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(229, 57, 53, 0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.1);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-subtitle-left {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonials-section {
    background: #0b0b0b;
    padding: 60px 20px 40px;
    /* Add top padding to account for fade overlap if needed */
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    /* Removed border-radius for seamless look */
    /* border-radius: 28px; */
    overflow: hidden;
    margin-top: -2rem;
    /* Pull up to sit under the fade */
    position: relative;
    z-index: 4;
    /* Below fade? No, maybe above. */
}

.testimonials-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

.testimonials-description {
    text-align: center;
    font-size: 15px;
    color: #b5b5b5;
    max-width: 620px;
    margin: 0 auto 26px auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(180deg, #161616, #0e0e0e);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    text-align: left;
    /* Ensure left alignment override */
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    border: 1px solid #ff0808;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff0808;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-client {
    font-weight: 700;
    font-size: 16px;
}

.testimonial-stars {
    color: #f5c518;
    font-size: 14px;
    LETTER-SPACING: 1px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 14px;
}

.testimonial-role {
    font-size: 13px;
    color: #ff0808;
}

/* Projects */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

/* Button Outline with Arrow Animation */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(248, 19, 15, 0.1);
    box-shadow: 0 0 25px rgba(248, 19, 15, 0.4);
}

.btn-outline i {
    transition: transform 0.3s ease;
}

.btn-outline:hover i {
    animation: arrowSlide 0.6s ease infinite;
}

@keyframes arrowSlide {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.badge-outline {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.placeholder-project,
.project-img {
    width: 100%;
    padding-bottom: 60%;
    /* Aspect ratio */
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    transition: transform 0.5s ease;
}

.project-card:hover .placeholder-project,
.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(248, 19, 15, 0.2);
    border-color: var(--color-primary);
}

/* Project Info - Overlay at Bottom */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-text {
    flex: 1;
}

.project-cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.3rem;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-link:hover {
    background: white;
    color: var(--color-primary);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    /* TODO: Mobile Menu */
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-img,
    .placeholder-project {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 100% !important;
        /* Force Square 1:1 */
        background-size: cover;
        background-position: center;
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: var(--border-radius);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #0f0f0f;
}

.full-width {
    width: 100%;
}

/* Form Description */
.form-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Submit Button with Hover Animation */
.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #ff3b37;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(248, 19, 15, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.contact-info {
    padding-top: 1rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 1.2rem;
}

.info-card .label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.info-card .value {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
    background-color: #0a0a0a;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

/* Social Icons with Hover Effect */
.social-icons {
    position: relative;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.social-icons li {
    position: relative;
    margin: 0 15px;
    cursor: pointer;
}

.social-icons li a {
    text-decoration: none;
    display: block;
    position: relative;
    line-height: 1;
}

.social-icons li a .fa-brands {
    font-size: 2.5em;
    color: #333;
    transition: color 0.3s;
    display: block;
}

.social-icons li a::before {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2.5em;
    line-height: 1;
    height: 0;
    overflow: hidden;
    transition: 0.4s ease-in-out;
}

/* Instagram Gradient */
.social-icons li:nth-child(1) a::before {
    content: "\f16d";
    background-image: linear-gradient(45deg,
            #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid #dc2743;
}

/* Behance White */
.social-icons li:nth-child(2) a::before {
    content: "\f1b4";
    color: white;
    border-bottom: 3px solid white;
}

/* Discord Purple */
.social-icons li:nth-child(3) a::before {
    content: "\f392";
    color: #5865F2;
    border-bottom: 3px solid #5865F2;
}

.social-icons li:hover a::before {
    height: 100%;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* Discord Contact Form Styles */
.contact-card {
    background: #0d0d0d;
    border-radius: 18px;
    padding: 32px;
    width: 100%;
    /* Fit grid */
    color: #fff;
    box-shadow: 0 0 0 1px #1f1f1f;
    position: relative;
    transition: opacity 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card h2 {
    margin: 0 0 20px;
    font-size: 22px;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 14px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.contact-card textarea {
    resize: none;
    height: 110px;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
    color: #777;
}

.contact-card button {
    width: 100%;
    padding: 16px;
    background: #ff0808;
    border: 2px solid #ff0808;
    /* User specific red */
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.contact-card button:hover {
    background: #ff0808;
}

.hint {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* Error Message */
.error-message {
    color: #ff0808;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    display: none;
    transition: opacity 0.5s;
}

/* Success Message Override */
.success-message {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.success-text {
    color: #25D366;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* SVG check animation */
.check-svg circle {
    fill: none;
    stroke: #25D366;
    stroke-width: 4;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    animation: circleDraw 0.5s forwards;
}

.check-svg path {
    fill: none;
    stroke: #25D366;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: checkDraw 0.5s forwards;
    animation-delay: 0.5s;
}

@keyframes circleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Portal/Auth Styles */
.portal-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none !important;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--neon-blue);
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
}

/* User Profile & Dropdown */
#auth-container {
    min-width: 175px;
    /* Reserve space for Login Button/Profile */
    min-height: 48px;
    /* Standard button height */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.auth-profile {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-radius: 50px;
    transition: background 0.3s;
}

.auth-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    object-fit: cover;
}

.dropdown-arrow {
    color: white;
    font-size: 0.8rem;
    margin-right: 5px;
    transition: transform 0.3s;
}

.auth-profile:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.auth-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 200px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.auth-profile:hover .auth-menu,
.auth-profile.active .auth-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Fix Mobile Menu Avatar Alignment */
.mobile-menu .auth-profile {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

.mobile-menu .auth-profile .dropdown-arrow {
    display: none;
    /* Hide arrow on mobile as it's implied or always open? Or just cleaner */
}

.auth-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
}

.auth-menu a:hover {
    background: rgba(255, 0, 0, 0.1);
    color: var(--color-primary);
}

.auth-menu hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Logout Confirmation Modal */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logout-modal {
    background-color: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(220, 38, 38, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logout-modal-overlay.active .logout-modal {
    transform: scale(1);
}

.logout-modal h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.logout-modal p {
    color: #aaa;
    margin-bottom: 2rem;
}

.logout-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-confirm-logout,
.btn-cancel {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-confirm-logout {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 19, 15, 0.4);
}

.btn-confirm-logout:hover {
    background-color: #d00000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 19, 15, 0.6);
}

.btn-cancel {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Liquid Button Styles */
.btn-liquid {
    position: relative;
    padding: 0.5rem 1.2rem;
    /* Reduced padding for smaller size */
    font-size: 0.9rem;
    /* Slightly smaller font */
    font-weight: 600;
    color: white;
    text-decoration: none;
    /* Importante para usar com <a> */
    background: none;
    border: 2px solid #f8130f;
    /* Red from variable */
    border-radius: 6px;
    /* Slightly tighter radius */
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-liquid span {
    position: relative;
    z-index: 1;
    /* Garante que o texto fique acima do 'líquido' */
}

.btn-liquid.liquid {
    background: linear-gradient(#f8130f 0 0) no-repeat calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
    transition: 0.3s var(--t, 0s),
        background-position 0.3s calc(0.3s - var(--t, 0s));
}

.btn-liquid.liquid:hover {
    --p: 100%;
    --t: 0.3s;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Melhora a leitura no fundo vermelho */
}

/* About Section (Bento Layout) */
.about-section {
    padding: 8rem 0;
    background-color: #0c0c0c;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(248, 19, 15, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(248, 19, 15, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
}

.about-description {
    color: #a0a0a0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Bento Grid */
.about-bento-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
    min-width: 300px;
}

.bento-item {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-tall {
    grid-row: span 2;
    grid-column: 1;
}

.bento-wide {
    grid-column: 2;
    grid-row: 1;
}

.bento-square {
    grid-column: 2;
    grid-row: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 3rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-bento-grid {
        width: 100%;
        grid-template-rows: repeat(2, 200px);
    }
}

/* Services Page Styles */
.page-header {
    padding: 160px 0 80px;
    background: radial-gradient(circle at top center, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: white;
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.services-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .services-grid-large {
        grid-template-columns: 1fr;
    }
}

.service-card-large {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card-large:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(248, 19, 15, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: #ccc;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--color-primary);
    font-size: 0.8rem;
}

.btn-text {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.btn-text:hover {
    gap: 12px;
    color: #fff;
}

/* CTA Banner */
.cta-banner {
    padding: 4rem 0;
    background: linear-gradient(90deg, #1a1a1a 0%, #0a0a0a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-text h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    /* Span full width of grid */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    gap: 1rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--color-primary);
}

/* =========================================
   PORTFOLIO STYLES
   ========================================= */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.6rem 1.4rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    color: white;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(248, 19, 15, 0.4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.portfolio-card {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px -10px rgba(248, 19, 15, 0.2);
    z-index: 2;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: grayscale(100%);
    /* Elegant default state */
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
    filter: grayscale(0%);
    /* Color on hover */
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(248, 19, 15, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cat {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.portfolio-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-desc {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.portfolio-link {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.4s;
    width: 100%;
}

.portfolio-link:hover {
    color: var(--color-primary);
}

.portfolio-card:hover .portfolio-cat,
.portfolio-card:hover .portfolio-title,
.portfolio-card:hover .portfolio-desc,
.portfolio-card:hover .portfolio-link {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-card:hover::after {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Mobile Hero Fixes */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        /* Reduced generic gap */
    }

    .badge-container {
        margin-bottom: 0;
        transform: scale(0.75);
        /* Reduce size proportionally */
    }

    .hero-text-img {
        width: 120%;
        max-width: 600px;
        margin-left: -10%;
        /* Center the overflow */
        height: auto;
        /* Ensure no extra space below text */
        margin-bottom: -22px;
    }

    .hero-image-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
        position: relative;
        /* Pull phone closer to text effectively */
        margin-top: -45px;
        /* Increased pull slightly */
        z-index: 1;
        /* Bring to front to ensure visibility */
    }

    .hero-phone-img {
        width: 100%;
        max-width: 380px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        /* Disable float animation on mobile to prevent overlap issues - optional, but safer */
        animation: none;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
        margin-top: 1rem;
    }
}

/* Mobile Brand Showcase Fix */
@media (max-width: 768px) {
    .brand-showcase {
        height: 250px;
        /* Drastically reduced fixed height */
        background-attachment: scroll;
        background-position: center;
        background-size: cover;
        /* Still cover, but with much less vertical crop */
    }
}

/* Mobile Brand Showcase Fix - JS Parallax Prep */
@media (max-width: 768px) {
    .brand-showcase {
        height: 250px;
        background-attachment: scroll;
        /* Allow JS to move it */
        background-position: center top;
        background-repeat: no-repeat;
        background-size: auto 160%;
        /* 25% zoom relative to 130% base, ensures coverage and zoom out */
        will-change: background-position;
        /* Optimize for performance */
    }
}

/* Mobile Project Card Fix - Show Details Default */
@media (max-width: 768px) {
    .project-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .project-img::after {
        opacity: 1 !important;
        /* Ensure dark overlay is visible */
    }
}

/* Mobile Project Button - Pulse Animation */
@keyframes btnPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Comprehensive Mobile Overhaul */
@media (max-width: 768px) {

    /* Project Button Visibility & Pulse */
    /* Project Button Visibility & Pulse */
    /* Maximum specificity */
    .portfolio-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: #DC2626 !important;
        color: white !important;
        padding: 12px 24px !important;
        margin-top: 15px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        animation: btnPulse 2s infinite ease-in-out !important;
        /* Pulse instead of Shake */
        font-weight: 700 !important;
        text-transform: uppercase;
        font-size: 0.9rem !important;
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
        position: relative !important;
        z-index: 50 !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100%;
    }

    .portfolio-link i {
        margin-right: 8px;
    }

    /* Force Grids to Column */
    .about-bento-grid,
    .testimonials-grid,
    .projects-grid,
    .portfolio-grid,
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Card Content Visibility (Portfolio & Home) - ALWAYS VISIBLE */
    .project-info,
    .portfolio-overlay,
    .portfolio-cat,
    .portfolio-title,
    .portfolio-desc {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    /* Stronger Fade for Readability - Adjusted to match Desktop/Home */
    .portfolio-overlay,
    .project-info {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%) !important;
        padding: 20px !important;
    }

    /* Force Color & Effect on Mobile (No Grayscale) */
    .portfolio-img {
        filter: grayscale(0%) !important;
        transform: scale(1.1) !important;
        /* Zoom effect permanent on mobile */
    }

    /* Typography Scaling */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    p {
        font-size: 1rem !important;
    }

    /* Modals & Admin */
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
        padding: 20px !important;
    }

    /* Contact Form Fixes */
    .contact-card,
    .info-card {
        width: 100% !important;
        padding: 1.5rem !important;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }


    /* =========================================
   GLOBAL STYLES (DESKTOP DEFAULT)
   ========================================= */

    /* Mobile Desktop Only Helper - GLOBAL */
    .desktop-only {
        display: block;
    }

    /* Mobile Menu Button - GLOBAL (Hidden by default) */
    .mobile-menu-btn {
        display: none !important;
        /* Hidden on Desktop */
    }

    /* Mobile Menu Overlay - GLOBAL (Hidden by default) */
    .mobile-menu {
        display: none !important;
        /* Completely hidden on Desktop */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        padding: 80px 20px 40px;
        align-items: center;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .mobile-logo {
        height: 40px;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .mobile-nav-list li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .mobile-menu.active .mobile-nav-list li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .mobile-link {
        font-size: 1.5rem;
        color: white;
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mobile-link:hover,
    .mobile-link.active {
        color: #DC2626;
    }

    .mobile-auth {
        margin-top: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Base Styles Ensure Button is Styled when Visible */
    .mobile-menu-btn {
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    /* Hamburger Animation - Precise Alignment */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .mobile-menu-header {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .mobile-logo {
        height: 40px;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .mobile-nav-list li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .mobile-menu.active .mobile-nav-list li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
        /* Stagger effect handled via JS loop usually, or simple delay here */
    }

    .mobile-link {
        font-size: 1.5rem;
        color: white;
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mobile-link:hover,
    .mobile-link.active {
        color: #DC2626;
    }

    .mobile-auth {
        margin-top: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    @media (max-width: 768px) {
        .nav {
            display: none !important;
        }

        /* Hide Desktop Nav & Auth - AGGRESSIVE */
        .desktop-only,
        #auth-container,
        .auth-profile,
        .user-avatar {
            display: none !important;
        }

        .mobile-menu-btn {
            display: flex !important;
            /* Force Show Button */
        }

        .mobile-menu {
            display: flex !important;
            /* Force Show Overlay Structure (still hidden by transform) */
        }

        /* Improve button visibility */
        .project-link,
        .portfolio-link {
            position: relative !important;
            z-index: 10;
            cursor: pointer;
        }
    }
}

/* Force Hide Mobile Menu on Desktop */
@media (min-width: 769px) {

    .mobile-menu,
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Trusted Companies Section */
.trusted-companies-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
    /* Upward lighting effect REMOVED */
    /* background: radial-gradient(ellipse at bottom, rgba(220, 38, 38, 0.45) 0%, transparent 60%); */
    background: transparent;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trusted-companies-section .section-title {
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
}

/* Grid Layout for Trusted Section */
.trusted-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 5;
    /* Ensure content is above globe if needed */
}

.trusted-content {
    padding-right: 2rem;
}

.trusted-globe {
    width: 100%;
    height: 600px;
    /* Full height for view */
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.trusted-stats {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.stat-row {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Portfolio Section Background */
#portfolio {
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .trusted-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .trusted-globe {
        height: 400px;
    }
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(248, 19, 15, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(248, 19, 15, 0.2);
}

/* Marquee Wrapper */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Mask for fade effect on edges */
    -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);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    /* Will be animated via JS or CSS */
    animation: scroll 30s linear infinite;
    cursor: grab;
    will-change: transform;
}

.marquee-track:active {
    cursor: grabbing;
    animation-play-state: paused;
}

/* Infinite Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by half the width if duplicated, or calculated via JS. 
           For pure CSS with visual duplication, we usually translate -50% 
           assuming content is strictly doubled. 
           Here we will rely on JS to clone items for a perfect loop, 
           but we'll start with a basic translation. */
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobile Responsiveness for Marquee */
@media (max-width: 768px) {
    .partner-logo {
        width: 100px;
        height: 60px;
    }

    .marquee-track {
        gap: 2rem;
    }
}

/* User Profile Menu (Cross-domain auth) */
.user-profile-menu {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(248, 19, 15, 0.5);
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #ccc;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(248, 19, 15, 0.1);
    color: #fff;
}

.dropdown-item i {
    color: var(--color-primary);
}

/* User Profile Menu Updates */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* Slight box background like admin */
    padding: 6px 16px 6px 6px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: none;
    /* Reset old shadow */
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border: none;
}

.profile-arrow {
    color: #a0a0a0;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.profile-btn:hover .profile-arrow {
    color: white;
}

/* Rotate arrow when dropdown open (requires JS toggle class on parent, but simplistic hover for now) */
/* Or if we add a class 'active' to .profile-btn in JS, we could specificy .active .profile-arrow { transform: rotate(180deg); } */

/* Force Hamburger Color on Mobile */
.mobile-menu-btn span {
    background-color: #ffffff !important;
}

/* Mobile Auth Button (Meus Projetos) */
.mobile-auth .mobile-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-auth .mobile-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}