/* ========================================
   AGÊNCIA FIREFLY - PREMIUM STYLES
   ======================================== */

/* CSS Reset Premium */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties Premium */
:root {
    /* Core Colors */
    --primary-900: #0f051f;
    --primary-800: #1a0b3d;
    --primary-700: #2d1b5e;
    --primary-600: #4a2c85;
    --primary-500: #6366f1;
    
    /* Gold Palette */
    --gold-900: #cc7a00;
    --gold-800: #f7931e;
    --gold-700: #ffb84d;
    --gold-600: #ffd166;
    --gold-500: #fff3e0;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: rgba(255, 255, 255, 0.95);
    --gray-100: rgba(255, 255, 255, 0.9);
    --gray-200: rgba(255, 255, 255, 0.8);
    --gray-300: rgba(255, 255, 255, 0.7);
    --gray-400: rgba(255, 255, 255, 0.6);
    --gray-500: rgba(255, 255, 255, 0.5);
    --gray-600: rgba(255, 255, 255, 0.4);
    --gray-700: rgba(255, 255, 255, 0.3);
    --gray-800: rgba(255, 255, 255, 0.2);
    --gray-900: rgba(255, 255, 255, 0.1);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-800) 0%, var(--gold-700) 100%);
    --gradient-text: linear-gradient(135deg, var(--white) 0%, var(--gold-700) 50%, var(--white) 100%);
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s ease-out;
    --transition-slow: 0.35s ease-out;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-primary);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   ADVANCED PAGE LOADER
   ======================================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    position: relative;
    margin-bottom: var(--space-xl);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.loader-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-800);
    border-radius: 50%;
    animation: particleFloat 2s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    top: 50%;
    left: 0;
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-md);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
}

.loader-text {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ========================================
   PREMIUM BACKGROUND CANVAS
   ======================================== */

.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

#neuralCanvas {
    width: 100%;
    height: 100%;
}

.gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-800) 0%, transparent 70%);
    filter: blur(40px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 5s;
    background: radial-gradient(circle, var(--primary-600) 0%, transparent 70%);
}

.orb-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 70%;
    animation-delay: 10s;
}

.orb-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 30%;
    animation-delay: 15s;
    background: radial-gradient(circle, var(--primary-500) 0%, transparent 70%);
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 40px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(-40px, -20px) scale(1.05);
        opacity: 0.6;
    }
}

.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.ray {
    position: absolute;
    background: linear-gradient(45deg, transparent 0%, var(--gold-800) 50%, transparent 100%);
    transform-origin: top left;
    animation: rayRotate 15s linear infinite;
}

.ray-1 {
    width: 2px;
    height: 100vh;
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.ray-2 {
    width: 1px;
    height: 100vh;
    top: 0;
    left: 60%;
    animation-delay: 5s;
}

.ray-3 {
    width: 1.5px;
    height: 100vh;
    top: 0;
    left: 80%;
    animation-delay: 10s;
}

@keyframes rayRotate {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   PREMIUM HEADER
   ======================================== */

.premium-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 5, 31, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-fixed);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.premium-header.scrolled {
    padding: var(--space-sm) 0;
    background: rgba(15, 5, 31, 0.95);
    box-shadow: var(--shadow-2xl);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--gold-800);
    transition: all var(--transition-base);
}

.logo-icon:hover {
    transform: rotate(180deg);
    color: var(--gold-700);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--gray-200);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--gold-700);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
    border-color: var(--glass-border);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   HERO SECTION PREMIUM
   ======================================== */

.hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 var(--space-4xl);
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 100%;
    z-index: 10;
}

.hero-badges {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-700);
    animation: fadeInUp 1s ease-out;
}

.badge-stats {
    display: inline-flex;
    align-items: center;
    background: rgba(247, 147, 30, 0.1);
    border: 1px solid rgba(247, 147, 30, 0.3);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-800);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.badge-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 8px currentColor);
}

.hero-title-container {
    position: relative;
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out both;
}

.title-line:nth-child(1) {
    color: var(--white);
    animation-delay: 0.4s;
}

.title-line:nth-child(2) {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.6s;
}

.title-line:nth-child(3) {
    color: var(--gold-700);
    animation-delay: 0.8s;
}

.title-line em {
    font-style: normal;
    position: relative;
    color: var(--gold-700) !important;
    -webkit-text-fill-color: var(--gold-700) !important;
}

.title-line em::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 1.2s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

.title-decoration {
    position: absolute;
    bottom: -20px;
    left: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: fadeInUp 1s ease-out 1s both;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 1px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-800);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--gold-800);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--gray-200);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-description strong {
    color: var(--gold-700);
    font-weight: 600;
}

.hero-metrics {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 1s ease-out 1.4s both;
}

.metric {
    text-align: center;
}

.metric-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-700);
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: var(--space-xs);
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    animation: fadeInUp 1s ease-out 1.6s both;
}

/* ========================================
   PREMIUM BUTTONS
   ======================================== */

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    min-height: 48px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-900);
    box-shadow: 0 10px 30px rgba(247, 147, 30, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(247, 147, 30, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--gold-700);
    border: 2px solid rgba(247, 147, 30, 0.5);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--gold-800);
    background: rgba(247, 147, 30, 0.1);
}

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

.btn-outline:hover {
    background: var(--gold-800);
    color: var(--primary-900);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.btn-premium:hover .btn-icon {
    transform: translateX(4px);
}

/* ========================================
   HERO VISUAL PREMIUM
   ======================================== */

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.fixed-firefly {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.firefly-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(247, 147, 30, 0.4) 25%,
        rgba(255, 184, 77, 0.6) 50%,
        rgba(247, 147, 30, 0.4) 75%,
        rgba(255, 255, 255, 0.15) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(247, 147, 30, 0.3);
    animation: firefly-glow 3s ease-in-out infinite;
    letter-spacing: 0.1em;
    text-align: center;
    white-space: nowrap;
}

@keyframes firefly-glow {
    0%, 100% {
        opacity: 0.8;
        filter: blur(0px);
    }
    50% {
        opacity: 1;
        filter: blur(1px);
    }
}

/* ========================================
   HORIZONTAL CAROUSEL PREMIUM
   ======================================== */

.carousel-premium {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-2xl);
    z-index: 2;
}

.carousel-track {
    display: flex;
    gap: var(--space-md);
    animation: scrollHorizontal 25s linear infinite;
    padding: var(--space-md);
    height: 100%;
    align-items: center;
    width: max-content;
    z-index: 1;
}

@keyframes scrollHorizontal {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.carousel-image {
    width: 200px;
    height: 150px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(247, 147, 30, 0.3);
    transition: all var(--transition-base);
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.05);
    aspect-ratio: 4/3;
    display: block;
}

.carousel-image:hover {
    transform: scale(1.05);
    border-color: var(--gold-700);
    box-shadow: 0 20px 40px rgba(247, 147, 30, 0.3);
}

.carousel-fade-left,
.carousel-fade-right {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 9;
}

.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.05), transparent);
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.element-1 {
    top: 15%;
    right: 15%;
    width: 30px;
    height: 30px;
    color: var(--gold-700);
    animation-delay: 0s;
}

.element-2 {
    bottom: 25%;
    left: 10%;
    width: 25px;
    height: 25px;
    animation-delay: 2s;
}

.element-ring {
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-700);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
}

.element-3 {
    top: 70%;
    right: 25%;
    width: 15px;
    height: 15px;
    animation-delay: 4s;
}

.element-diamond {
    width: 100%;
    height: 100%;
    background: var(--gold-700);
    transform: rotate(45deg);
    border-radius: 2px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   SERVICES SECTION PREMIUM
   ======================================== */

.services-premium {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header-premium {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-700);
}

.section-title-premium {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    color: var(--gold-700);
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-200);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   SERVICE CATEGORIES
   ======================================== */

.service-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
    position: relative;
    --scroll-indicator-opacity: 0.3;
}

/* Indicador de scroll mobile */
.service-categories::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-700), transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: all var(--transition-base);
    transform: scale(0.8);
}

.category-card:hover,
.category-card.active {
    transform: translateY(-5px);
    border-color: var(--gold-700);
    box-shadow: var(--shadow-xl);
}

.category-card:hover::before,
.category-card.active::before {
    opacity: 0.1;
    transform: scale(1);
}

.category-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px currentColor);
    transition: all var(--transition-base);
}

.category-card span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: var(--gray-200);
    position: relative;
    z-index: 1;
    line-height: 1.3;
    transition: all var(--transition-base);
}

.category-card.active span,
.category-card:hover span {
    color: var(--gold-700);
    font-weight: 700;
}

.category-card.active .category-icon,
.category-card:hover .category-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px currentColor);
}

/* ========================================
   PORTFOLIO GALLERY PREMIUM
   ======================================== */

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

.gallery-item {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(247, 147, 30, 0.4);
}

.gallery-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: rgba(255, 255, 255, 0.02);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(26, 11, 61, 0.3) 50%,
        rgba(26, 11, 61, 0.9) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gallery-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}

.tag {
    background: rgba(247, 147, 30, 0.3);
    color: var(--gold-700);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(247, 147, 30, 0.5);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tag:hover {
    background: rgba(247, 147, 30, 0.5);
    transform: translateY(-1px);
}

.gallery-info {
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.gallery-category {
    color: var(--gold-700);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-category::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold-700);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-700);
    flex-shrink: 0;
}

.gallery-info h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.gallery-info p {
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.gallery-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
    flex-shrink: 0;
}

.gallery-date {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.gallery-date::before {
    content: '📅';
    font-size: 0.8rem;
    opacity: 0.8;
}



/* ========================================
   LOAD MORE
   ======================================== */

.load-more-container {
    text-align: center;
}



/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: var(--space-4xl) 0;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-200);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   ADMIN LINK PREMIUM
   ======================================== */

.admin-link-premium {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--primary-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.admin-link-premium:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(247, 147, 30, 0.5);
}

.admin-link-premium svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .hero-container {
        max-width: 1200px;
        gap: var(--space-3xl);
    }
    
    .section-container {
        max-width: 1200px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-container {
        gap: var(--space-2xl);
        grid-template-columns: 1fr 0.8fr;
    }
    
    .hero-metrics {
        gap: var(--space-lg);
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .portfolio-gallery {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: var(--space-lg);
    }
    
    .gallery-item {
        min-height: 550px;
    }
    
    .gallery-image {
        height: 300px;
    }
    
    .carousel-image {
        width: 180px;
        height: 135px;
    }
}

/* Large Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        padding: 0 var(--space-xl);
    }
    
    .hero-visual {
        height: 450px;
        order: -1;
        margin-bottom: var(--space-xl);
    }
    
    .portfolio-gallery {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-xl);
    }
    
    .gallery-item {
        min-height: 520px;
    }
    
    .gallery-image {
        height: 280px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
        margin-bottom: var(--space-lg);
    }
    
    .portfolio-gallery {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--space-lg);
    }
    
    .service-categories {
        gap: var(--space-md);
        overflow-x: auto;
        padding: var(--space-lg) var(--space-xl) var(--space-xl);
        margin: 0 -var(--space-xl) var(--space-4xl);
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        position: relative;
    }
    
    .service-categories::-webkit-scrollbar {
        display: none;
    }
    
    .service-categories::after {
        opacity: 1;
        bottom: -15px;
    }
    
    /* Setas de navegação visuais */
    .service-categories::before {
        content: '👈 Deslize para mais';
        position: absolute;
        top: -30px;
        right: var(--space-md);
        font-size: 0.75rem;
        color: var(--gold-700);
        font-weight: 600;
        opacity: 0.8;
        animation: pulse 3s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 0.5; transform: translateX(0); }
        50% { opacity: 1; transform: translateX(-5px); }
    }
    
    .category-card {
        min-width: 160px;
        flex-shrink: 0;
        padding: var(--space-lg) var(--space-xl);
        border-radius: var(--radius-xl);
        scroll-snap-align: center;
        background: rgba(26, 11, 61, 0.7);
        backdrop-filter: blur(30px);
        border: 2px solid rgba(247, 147, 30, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .category-card:hover,
    .category-card.active {
        transform: translateY(-8px) scale(1.02);
        border-color: var(--gold-600);
        background: rgba(247, 147, 30, 0.15);
        box-shadow: 0 12px 40px rgba(247, 147, 30, 0.4);
    }
    
    .category-card:hover::before,
    .category-card.active::before {
        opacity: 0.2;
        transform: scale(1);
    }
    
    .category-icon {
        font-size: 2.4rem;
        margin-bottom: var(--space-sm);
    }
    
    .category-card span {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Variáveis mobile específicas */
    :root {
        --space-xs: 0.375rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
        --space-4xl: 6rem;
    }
    
    /* Header Mobile */
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-900);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-2xl);
        z-index: var(--z-fixed);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--space-md);
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: var(--space-sm);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.1);
        transition: all var(--transition-base);
    }
    
    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .logo-tagline {
        display: none;
    }
    
    /* Hero Mobile */
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        padding: 0 var(--space-lg);
        min-height: 0;
    }
    
    .hero-badges {
        justify-content: center;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }
    
    .badge-premium,
    .badge-stats {
        font-size: 0.8rem;
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: var(--space-lg);
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--space-xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-metrics {
        gap: var(--space-lg);
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .metric {
        min-width: 80px;
        text-align: center;
    }
    
    .metric-number {
        font-size: 1.8rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .btn-premium {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
        min-width: 200px;
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }
    
    /* Hero Visual Mobile */
    .hero-visual {
        height: 300px;
        order: -1;
        margin-bottom: var(--space-xl);
    }
    
    .carousel-premium {
        height: 250px;
        margin: 0 -var(--space-lg);
    }
    
    .carousel-image {
        width: 140px;
        height: 105px;
        object-fit: contain;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
    }
    
    .firefly-text {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        font-weight: 800;
        text-shadow: 0 0 20px rgba(247, 147, 30, 0.5);
        white-space: nowrap;
    }
    
    .floating-elements {
        display: none;
    }
    
    .carousel-track {
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .fixed-firefly {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        pointer-events: none;
        width: 100%;
        text-align: center;
    }
    
    /* Services Mobile - Layout Grid Profissional */
    .service-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        padding: var(--space-xl) var(--space-lg);
        margin: 0 -var(--space-lg) var(--space-4xl);
        background: linear-gradient(135deg, 
            rgba(26, 11, 61, 0.9) 0%, 
            rgba(15, 5, 31, 0.95) 50%,
            rgba(26, 11, 61, 0.9) 100%
        );
        border-radius: var(--radius-xl);
        backdrop-filter: blur(30px);
        border: 1px solid rgba(247, 147, 30, 0.2);
        box-shadow: 
            0 16px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    /* Grid especial para 5 botões - primeiro botão ocupa 2 colunas */
    .service-categories .category-card:first-child {
        grid-column: 1 / -1;
    }
    
    /* Remove scroll e indicadores */
    .service-categories::-webkit-scrollbar {
        display: none;
    }
    
    .service-categories::after,
    .service-categories::before {
        display: none;
    }
    
    .category-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-sm);
        padding: var(--space-lg);
        min-width: auto;
        width: 100%;
        height: 100px;
        flex-shrink: 1;
        border-radius: var(--radius-lg);
        background: rgba(15, 5, 31, 0.8);
        backdrop-filter: blur(25px);
        border: 2px solid rgba(247, 147, 30, 0.25);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        contain: layout style paint;
    }
    
    /* Primeiro botão (Todos os Projetos) - destaque especial */
    .category-card:first-child {
        height: 80px;
        background: linear-gradient(135deg, 
            rgba(247, 147, 30, 0.2) 0%, 
            rgba(247, 147, 30, 0.1) 100%
        );
        border: 2px solid rgba(247, 147, 30, 0.4);
        box-shadow: 
            0 8px 30px rgba(247, 147, 30, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .category-card:first-child .category-icon {
        font-size: 1.8rem;
    }
    
    .category-card:first-child span {
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    /* Efeito de brilho uniforme */
    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            transparent 0%, 
            rgba(247, 147, 30, 0.1) 50%, 
            transparent 100%
        );
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .category-card:hover,
    .category-card.active {
        transform: translateY(-4px) scale(1.02);
        border-color: var(--gold-500);
        background: rgba(247, 147, 30, 0.15);
        box-shadow: 
            0 12px 35px rgba(247, 147, 30, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 0 1px rgba(247, 147, 30, 0.3);
    }
    
    .category-card:hover::before,
    .category-card.active::before {
        opacity: 1;
    }
    
    .category-icon {
        font-size: 1.4rem;
        color: var(--gold-700);
        transition: all 0.3s ease;
        filter: drop-shadow(0 0 8px rgba(247, 147, 30, 0.5));
        margin-bottom: var(--space-xs);
    }
    
    .category-card:hover .category-icon,
    .category-card.active .category-icon {
        transform: scale(1.1);
        color: var(--gold-500);
        filter: drop-shadow(0 0 12px rgba(247, 147, 30, 0.8));
    }
    
    .category-card span {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-align: center;
        color: var(--gray-200);
        transition: all 0.3s ease;
        text-transform: uppercase;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .category-card:hover span,
    .category-card.active span {
        color: var(--gold-300);
        text-shadow: 0 0 8px rgba(247, 147, 30, 0.6);
    }
    
    /* Estados de focus para acessibilidade */
    .category-card:focus {
        outline: 2px solid var(--gold-600);
        outline-offset: 2px;
    }
    
    /* Animação de entrada escalonada */
    .category-card {
        animation: slideInScale 0.5s ease-out both;
    }
    
    .category-card:nth-child(1) { animation-delay: 0.1s; }
    .category-card:nth-child(2) { animation-delay: 0.2s; }
    .category-card:nth-child(3) { animation-delay: 0.25s; }
    .category-card:nth-child(4) { animation-delay: 0.3s; }
    .category-card:nth-child(5) { animation-delay: 0.35s; }
    
    @keyframes slideInScale {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    /* Micro-interação de toque */
    .category-card:active {
        transform: translateY(-2px) scale(0.98);
        transition: all 0.1s ease;
    }
    
    /* Portfolio Mobile - Grid responsivo sem sobreposições */
    .portfolio-gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: 0 var(--space-lg);
        margin: 0 -var(--space-lg) var(--space-4xl);
    }
    
    .gallery-item {
        min-height: auto;
        max-width: 100%;
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        background: rgba(15, 5, 31, 0.9);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(247, 147, 30, 0.2);
        contain: layout style paint;
    }
    
    .gallery-image {
        height: 200px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .gallery-image img {
        object-fit: contain;
        background: rgba(255, 255, 255, 0.03);
    }
    
    .gallery-info {
        padding: var(--space-lg);
        min-height: 0;
    }
    
    .gallery-category {
        font-size: 0.8rem;
        margin-bottom: var(--space-sm);
        overflow: visible;
    }
    
    .gallery-info h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: var(--space-sm);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .gallery-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: var(--space-md);
        -webkit-line-clamp: 3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .gallery-footer {
        justify-content: center;
        margin-top: var(--space-md);
    }
    
    .gallery-date {
        font-size: 0.8rem;
        color: var(--gold-700);
        font-weight: 600;
        text-align: center;
        background: rgba(247, 147, 30, 0.1);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-full);
        border: 1px solid rgba(247, 147, 30, 0.3);
    }
    
    .gallery-date::before {
        content: '📅';
        margin-right: var(--space-xs);
    }
    
    .gallery-tags {
        gap: var(--space-xs);
        margin-top: var(--space-sm);
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 2px var(--space-sm);
    }
    
    .overlay-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Section headers mobile */
    .section-title-premium {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* CTA Section Mobile */
    .cta-content h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cta-content p {
        font-size: 1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
}

/* Small Mobile - Grid otimizado para telas menores */
@media (max-width: 480px) {
    :root {
        --space-xs: 0.25rem;
        --space-sm: 0.5rem;
        --space-md: 0.75rem;
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }
    
    body {
        font-size: 14px;
    }
    
    .hero-premium {
        padding: 100px 0 var(--space-3xl);
    }
    
    .hero-container {
        padding: 0 var(--space-md);
        gap: var(--space-lg);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .section-container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .badge-premium,
    .badge-stats {
        font-size: 0.75rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    .firefly-text {
        font-size: clamp(1.5rem, 6vw, 2rem);
        text-shadow: 0 0 15px rgba(247, 147, 30, 0.6);
    }
    
    .carousel-premium {
        height: 200px;
        margin: 0 -var(--space-md);
    }
    
    .carousel-image {
        width: 120px;
        height: 90px;
        object-fit: contain;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
    }
    
    .carousel-track {
        gap: var(--space-sm);
        padding: var(--space-sm);
    }
    
    .hero-visual {
        height: 250px;
        margin-bottom: var(--space-lg);
    }
    
    .hero-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        text-align: center;
    }
    
    .metric-number {
        font-size: 1.4rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    .btn-premium {
        padding: var(--space-md);
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        padding: var(--space-lg) var(--space-md);
        margin: 0 -var(--space-md) var(--space-3xl);
    }
    
    .category-card {
        height: 80px;
        padding: var(--space-md);
    }
    
    .category-card:first-child {
        height: 65px;
    }
    
    .category-icon {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .category-card:first-child .category-icon {
        font-size: 1.5rem;
    }
    
    .category-card span {
        font-size: 0.65rem;
        font-weight: 800;
    }
    
    .category-card:first-child span {
        font-size: 0.75rem;
    }
    
    .portfolio-gallery {
        gap: var(--space-lg);
        padding: 0 var(--space-md);
        margin: 0 -var(--space-md) var(--space-3xl);
    }
    
    .gallery-item {
        border-radius: var(--radius-lg);
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .gallery-info {
        padding: var(--space-md);
    }
    
    .gallery-info h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: var(--space-sm);
    }
    
    .gallery-info p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .gallery-date {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .section-title-premium {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Extra Small Mobile - Layout vertical para telas muito pequenas */
@media (max-width: 380px) {
    .service-categories {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .category-card:first-child {
        grid-column: 1;
    }
    
    .category-card {
        height: 60px;
        flex-direction: row;
        justify-content: flex-start;
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
    }
    
    .category-card:first-child {
        height: 60px;
        justify-content: center;
        flex-direction: column;
    }
    
    .category-icon {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .category-card:first-child .category-icon {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }
    
    .category-card span {
        font-size: 0.65rem;
        text-align: left;
    }
    
    .category-card:first-child span {
        text-align: center;
        font-size: 0.7rem;
    }
}

/* Performance otimizada */
@media (max-width: 768px) {
    .gallery-item {
        will-change: transform;
        contain: layout style paint;
    }
    
    .category-card {
        will-change: transform;
        contain: layout style paint;
    }
    
    .gallery-item:hover,
    .gallery-item.active {
        will-change: transform, box-shadow;
    }
    
    .category-card:hover,
    .category-card.active {
        will-change: transform, box-shadow;
    }
}

/* Global text overflow prevention */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-container,
.nav-container {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Global overflow prevention */
body {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

*, *::before, *::after {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* Performance improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .premium-header,
    .admin-link-premium,
    .floating-elements,
    .neural-network {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Text optimization */
.hero-title,
.section-title-premium,
.gallery-info h3,
.overlay-content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-description,
.section-description,
.gallery-info p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.gallery-category,
.gallery-date,
.tag {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}