/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Variáveis CSS para tema cyberpunk */
:root {
    --cyber-blue: #00d4ff;
    --cyber-blue-dark: #0066ff;
    --neon-purple: #ff00ff;
    --neon-purple-dark: #6600cc;
    --electric-green: #00ff88;
    --electric-green-dark: #00cc66;
    --matrix-green: #00ff41;
    --cyber-orange: #ff6600;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(15, 15, 15, 0.8);
    --border-glow: rgba(0, 212, 255, 0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-accent: #00d4ff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    position: relative;
}

.logo-legend {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--cyber-blue);
    opacity: 0.8;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logo-legend:hover {
    opacity: 1;
    text-shadow: 0 0 15px var(--cyber-blue);
}

.logo-img {
    height: 90px;
    width: auto;
    transition: all 0.3s ease;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    animation: logoVideoGlow 4s ease-in-out infinite;
}

/* Efeito de brilho baseado no vídeo */
.logo-img::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.2), 
        rgba(255, 0, 255, 0.2), 
        rgba(0, 212, 255, 0.2));
    border-radius: 8px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(15px);
    animation: logoVideoPulse 3s ease-in-out infinite;
}

/* Efeito de borda brilhante similar ao vídeo */
.logo-img::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.5), 
        rgba(255, 0, 255, 0.5),
        rgba(0, 212, 255, 0.5));
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.2);
}

.logo-img:hover::after {
    opacity: 0.8;
}

@keyframes logoVideoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5))
                drop-shadow(0 0 10px rgba(255, 0, 255, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8))
                drop-shadow(0 0 20px rgba(255, 0, 255, 0.5))
                drop-shadow(0 0 15px rgba(0, 255, 136, 0.4));
    }
}

@keyframes logoVideoPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.logo-img:hover {
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)) 
            drop-shadow(0 0 50px rgba(255, 0, 255, 0.4))
            drop-shadow(0 0 25px rgba(0, 255, 136, 0.5));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--cyber-blue);
    text-shadow: 0 0 10px var(--cyber-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--neon-purple));
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--cyber-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--cyber-blue);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--cyber-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* Tech Background Elements */
.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, var(--cyber-blue) 100%),
        linear-gradient(0deg, transparent 98%, var(--neon-purple) 100%);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        var(--electric-green) 50%, 
        transparent 70%);
    opacity: 0.05;
    animation: dataFlow 15s ease-in-out infinite;
}

@keyframes dataFlow {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.hologram-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--cyber-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-blue) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.03;
    animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    position: relative;
    margin-bottom: 2rem;
}

.badge-text {
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    opacity: 0.2;
    filter: blur(10px);
    border-radius: 20px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(224, 224, 224, 0.3);
}

.title-highlight {
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple), var(--electric-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--cyber-blue);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    overflow: hidden;
}

.btn-cyber {
    background: linear-gradient(45deg, var(--cyber-blue), var(--cyber-blue-dark));
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-cyber:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.btn-neon {
    background: transparent;
    color: var(--neon-purple);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.btn-primary {
    background: transparent;
    color: var(--electric-green);
    border: 2px solid var(--electric-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    background: var(--electric-green);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-green);
    border: 2px solid var(--electric-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary:hover {
    background: var(--electric-green);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

.btn-glow {
    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:hover .btn-glow {
    left: 100%;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 0 80px rgba(255, 0, 255, 0.2);
}

.hero-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15), rgba(10, 10, 10, 0.95));
    z-index: 5;
    transition: opacity 0.6s ease;
}

.hero-video-placeholder img {
    width: min(45%, 220px);
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.6));
}

.hero-video-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--border-glow);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    transition: all 0.3s ease;
}

.hero-video:hover {
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 50px rgba(255, 0, 255, 0.4));
    transform: scale(1.02);
}

/* Video Audio Toggle Button */
.video-audio-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--cyber-blue);
    border-radius: 50%;
    color: var(--cyber-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.video-audio-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.video-audio-toggle:active {
    transform: scale(0.95);
}

.video-audio-toggle.active {
    background: rgba(0, 212, 255, 0.3);
    color: var(--electric-green);
    border-color: var(--electric-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.video-audio-toggle.active i.fa-volume-mute {
    display: none;
}

.video-audio-toggle.active i.fa-volume-up {
    display: block;
}

.video-audio-toggle i.fa-volume-up {
    display: none;
}

.hologram-card {
    position: absolute;
    width: 200px;
    height: 250px;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: hologramFloat 6s ease-in-out infinite;
}

.hologram-card:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hologram-card:nth-child(2) {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.hologram-card:nth-child(3) {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes hologramFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.hologram-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.card-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple), var(--electric-green));
    opacity: 0.1;
    animation: frameGlow 3s ease-in-out infinite;
}

@keyframes frameGlow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.card-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px var(--cyber-blue));
}

.card-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    overflow: hidden;
}

.card-particles::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--electric-green);
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--electric-green);
}

@keyframes particleFloat {
    0%, 100% { transform: translate(20px, 20px); opacity: 0; }
    50% { transform: translate(180px, 200px); opacity: 1; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyber-blue), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--darker-bg);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
}

/* Section Separator Bars */
.section-separator {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--cyber-blue) 20%, 
        var(--neon-purple) 50%, 
        var(--cyber-blue) 80%, 
        transparent 100%);
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px var(--cyber-blue), 
                0 0 40px var(--neon-purple);
    animation: separatorGlow 3s ease-in-out infinite;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: separatorScan 4s ease-in-out infinite;
}

@keyframes separatorGlow {
    0%, 100% { 
        opacity: 0.6;
        box-shadow: 0 0 20px var(--cyber-blue), 
                    0 0 40px var(--neon-purple);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 30px var(--cyber-blue), 
                    0 0 60px var(--neon-purple),
                    0 0 20px var(--electric-green);
    }
}

@keyframes separatorScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--cyber-blue);
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--cyber-blue);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.projects-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
}

.carousel-track {
    position: relative;
    height: 360px;
    width: 100%;
    overflow: hidden;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 2.5rem 0;
    background: transparent;
    border-radius: 24px;
    border: none;
    box-shadow: none;
    text-decoration: none;
    color: var(--text-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    width: 100%;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
    z-index: 1;
}

.carousel-code-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 0;
    padding: 2.5rem 5%;
    background: radial-gradient(circle at center, rgba(10, 10, 20, 0.75) 0%, rgba(10, 10, 20, 0.2) 55%, transparent 70%);
}

.code-column {
    width: 32%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: rgba(0, 255, 136, 0.85);
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
    filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.25));
}

.code-column.code-left {
    align-items: flex-start;
}

.code-column.code-right {
    align-items: flex-end;
    text-align: right;
}

.code-line {
    position: relative;
    display: block;
    white-space: pre;
    overflow: hidden;
    max-width: 100%;
    animation-name: codeType;
    animation-duration: var(--typing-duration, 5s);
    animation-timing-function: steps(var(--char-count, 30));
    animation-delay: var(--typing-delay, 0s);
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    opacity: 0.9;
}

.code-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: rgba(0, 255, 136, 0.9);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.9);
    animation: caretBlink 1s steps(2) infinite;
}

.code-column.code-left .code-line::after {
    left: 0;
    right: auto;
}

@keyframes codeType {
    0% {
        width: 0;
    }
    40% {
        width: 100%;
    }
    60% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes caretBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes ringDrift {
    0% {
        transform: rotateX(65deg) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: rotateX(55deg) rotate(12deg);
        opacity: 1;
    }
    100% {
        transform: rotateX(65deg) rotate(0deg);
        opacity: 0.8;
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.55));
    }
    40% {
        transform: scale(1.035);
        filter: drop-shadow(0 0 35px rgba(0, 255, 136, 0.7));
    }
    70% {
        transform: scale(0.995);
        filter: drop-shadow(0 0 28px rgba(255, 0, 255, 0.6));
    }
}

@keyframes planetOrbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes planetOrbitReverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.project-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.project-card:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.project-card:hover .project-glow {
    opacity: 1;
    transform: translateY(0);
}

.project-logo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.35), rgba(10, 10, 20, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.28);
    position: relative;
    z-index: 1;
    overflow: visible;
    transform-origin: center;
    animation: planetOrbit 26s linear infinite;
}

.project-logo::before {
    content: '';
    position: absolute;
    inset: -28px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.35);
    border-top-color: rgba(255, 0, 255, 0.55);
    border-left-color: rgba(0, 255, 136, 0.45);
    filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.4));
    opacity: 0.85;
    transform: rotateX(65deg);
    animation: ringDrift 12s ease-in-out infinite;
    z-index: -1;
}

.project-logo::after {
    content: none;
}

.project-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.65));
    animation: logoPulse 6s ease-in-out infinite, planetOrbitReverse 26s linear infinite;
    transform-origin: center;
}

.project-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--cyber-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
}

.project-glow {
    content: '';
    position: absolute;
    inset: 5%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.4), transparent 70%);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: rgba(12, 12, 20, 0.8);
    color: var(--cyber-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.15);
}

.carousel-button i {
    font-size: 1.2rem;
}

.carousel-button:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.7);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.25);
}

.carousel-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.4);
}

.carousel-button.prev {
    left: 25px;
}

.carousel-button.next {
    right: 25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.25);
    border: 1px solid rgba(0, 212, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--cyber-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

@media (max-width: 768px) {
    .carousel-track {
        height: 320px;
    }

    .carousel-code-overlay {
        padding: 2rem 3%;
    }

    .code-column {
        width: 38%;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    .project-logo {
        width: 200px;
        height: 200px;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-track {
        height: 290px;
    }

    .carousel-code-overlay {
        padding: 1.5rem 6%;
    }

    .code-column {
        width: 42%;
        font-size: 0.8rem;
    }

    .project-card {
        width: 100%;
        padding: 2rem 0;
    }

    .carousel-button {
        width: 44px;
        height: 44px;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    .carousel-indicators {
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--electric-green), var(--cyber-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
}

.service-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.service-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
}

.service-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--electric-green);
    font-weight: bold;
    font-size: 0.8rem;
}

.service-features li:hover {
    color: var(--cyber-blue);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--cyber-blue), var(--electric-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.value {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.value:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.value i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
    filter: drop-shadow(0 0 10px var(--cyber-blue));
}

.value h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.tech-image {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.tech-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

.image-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--cyber-blue), var(--neon-purple), var(--electric-green));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--darker-bg);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
    filter: drop-shadow(0 0 10px var(--cyber-blue));
}

.contact-item h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    pointer-events: none;
}

.contact-form button[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-glow);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(15, 15, 15, 0.5);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(15, 15, 15, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-glow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple), var(--electric-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--cyber-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px var(--cyber-blue));
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--cyber-blue));
}

.footer-section h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--cyber-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-section ul li a:hover {
    color: var(--cyber-blue);
    text-shadow: 0 0 10px var(--cyber-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.social-links a:hover {
    background: var(--cyber-blue);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border-glow);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid var(--border-glow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-logo {
        flex-direction: row;
        gap: 0.5rem;
    }

    .logo-legend {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .logo-img {
        height: 75px;
    }

    .hero {
        padding-top: 110px;
        min-height: calc(100vh - 110px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        flex-direction: column;
        height: 400px;
        margin-top: 2rem;
    }

    .hero-video {
        width: 100%;
        height: 100%;
    }

    .video-audio-toggle {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        gap: 1.5rem;
    }

    .tech-image {
        max-width: 100%;
        height: 250px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Animações globais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--cyber-blue), var(--neon-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-purple), var(--electric-green));
}

/* WhatsApp Chat Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.chat-toggle i {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--cyber-blue), var(--neon-purple));
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
    border: 2px solid var(--dark-bg);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 211, 102, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(37, 211, 102, 0.3);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon i {
    font-size: 1.5rem;
    color: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.chat-header-text h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-header-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.chat-minimize {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-minimize:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(18, 18, 18, 0.9) 100%);
}

.message {
    display: flex;
    flex-direction: column;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message .message-content {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 1rem;
    border-radius: 15px;
    border-top-left-radius: 5px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.1);
}

.user-message {
    align-items: flex-end;
}

.user-message .message-content {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 1rem;
    border-radius: 15px;
    border-top-right-radius: 5px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

.message-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-content p + p {
    margin-top: 0.5rem;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.8);
    border-top: 1px solid rgba(37, 211, 102, 0.2);
}

#chatInput {
    flex: 1;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

#chatInput:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

#chatInput::placeholder {
    color: var(--text-secondary);
}

.send-button {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button i {
    color: white;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Hidden state */
.chat-window.hidden {
    display: none;
}

/* Responsive WhatsApp Chat */
@media (max-width: 768px) {
    .whatsapp-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: 320px;
        height: 450px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
    }

    .chat-toggle i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 400px;
        right: -10px;
    }
}
