/* ==========================================================================
   AGÊNCIA VEGAS - DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Variables */
:root {
    --bg-primary: #080a10;
    --bg-secondary: #0f121d;
    --bg-card: rgba(15, 18, 29, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 68, 255, 0.3);
    
    --color-text-primary: #f8f9fa;
    --color-text-secondary: #b0b8c9;
    --color-text-muted: #6e7a96;
    
    --color-blue-electric: #0044ff;
    --color-blue-gradient: linear-gradient(135deg, #0055ff, #0011aa);
    --color-blue-glow: rgba(0, 85, 255, 0.3);
    
    --color-gold: #0055ff; /* Mapear cores de destaque para o azul */
    --color-gold-hover: #3377ff;
    --color-violet: #0011aa;
    --color-violet-glow: rgba(0, 17, 170, 0.4);
    --color-gold-glow: rgba(0, 85, 255, 0.2);
    
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #040509;
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: transparent;
}

/* Base Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #22222a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Typography & Global Components */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Navigation Header */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.header-main.scrolled {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo .logo-agencia {
    color: #0022cc;
    text-shadow: 0 0 10px rgba(0, 34, 204, 0.15);
}

.logo .logo-vegas-badge {
    background: linear-gradient(135deg, #0044ff, #001199);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-sub {
    font-family: var(--font-title);
    font-size: 0.58rem;
    font-weight: 700;
    color: #0d0d0d;
    background: #ffffff;
    padding: 1px 4px;
    border-radius: 2px;
    letter-spacing: 2px;
    text-transform: uppercase;
    align-self: flex-end;
    margin-top: 2px;
}


.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-blue-electric);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-violet));
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-contact-nav {
    border: 1px solid var(--color-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gold);
    transition: var(--transition-smooth);
    background: transparent;
}

.btn-contact-nav:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--color-gold-glow);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a202c;
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* Background Gradients Effects */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

.glow-1 {
    top: 10%;
    left: 5%;
    background: var(--color-gold);
}

.glow-2 {
    bottom: 20%;
    right: 5%;
    background: var(--color-violet);
}

/* Footer Section */
.footer-main {
    margin-top: auto;
    background: #060608;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--color-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Global Buttons & CTA */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-hover));
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-3px);
}

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

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



/* Global Scroll Reveal Animation - Staggered Network Construction Style */
.reveal-on-scroll {
    opacity: 1;
}

/* Staggered nodes (numbers, icons, tags) pop in first */
.reveal-on-scroll .method-num,
.reveal-on-scroll .service-icon,
.reveal-on-scroll .case-tag-list,
.reveal-on-scroll .contact-icon {
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Connectors and main headers slide in next */
.reveal-on-scroll .method-card h3,
.reveal-on-scroll .service-preview-card h3,
.reveal-on-scroll .case-main-content h2,
.reveal-on-scroll h2,
.reveal-on-scroll form {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Descriptions and details fade in last, completing the node link */
.reveal-on-scroll .method-card p,
.reveal-on-scroll .service-preview-card p,
.reveal-on-scroll .case-description,
.reveal-on-scroll .contact-details p {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active states (Triggered sequentially like nodes linking on a network) */
.reveal-on-scroll.visible .method-num,
.reveal-on-scroll.visible .service-icon,
.reveal-on-scroll.visible .case-tag-list,
.reveal-on-scroll.visible .contact-icon {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 0.1s;
}

.reveal-on-scroll.visible .method-card h3,
.reveal-on-scroll.visible .service-preview-card h3,
.reveal-on-scroll.visible .case-main-content h2,
.reveal-on-scroll.visible h2,
.reveal-on-scroll.visible form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.reveal-on-scroll.visible .method-card p,
.reveal-on-scroll.visible .service-preview-card p,
.reveal-on-scroll.visible .case-description,
.reveal-on-scroll.visible .contact-details p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Responsive styles */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu .nav-link {
        color: #ffffff;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
    color: #ffffff;
}

.whatsapp-icon {
    display: inline-block;
    fill: currentColor;
}
