/**
 * BRUNO MARIANO SILVA - PORTFOLIO ULTRA PREMIUM (VERSÃO FINAL CORRIGIDA)
 * 
 * Design Philosophy: High-End, Modern, Minimalist & Conversion-Focused
 * Colors: Original Palette maintained with modern opacity and gradients
 */

:root {
    --primary-blue: #0066CC;
    --primary-blue-dark: #0052A3;
    --primary-blue-light: #E6F2FF;
    --accent-green: #10B981;
    --accent-green-dark: #059669;
    --muted-gray: #6B7280;
    --muted-gray-light: #D1D5DB;
    --dark-text: #1F2937;
    --off-white: #F9FAFB;
    --light-gray: #F3F4F6;
    --border-color: #E5E7EB;
    
    /* Premium Spacing & Scroll */
    --header-height: 80px;
    --section-padding: 100px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   GLOBAL & SCROLL ADJUSTMENTS
   ============================================================================ */

* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: #fff;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

section {
    scroll-margin-top: var(--header-height);
    padding: var(--section-padding) 0;
}

/* ============================================================================
   TYPOGRAPHY PREMIUM
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dark-text);
}

.display-4 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Leve ajuste para não ficar gigante */
    font-weight: 800;
    line-height: 1.1;
}

.display-5 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

p {
    color: var(--muted-gray);
    font-size: 1.05rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ============================================================================
   HEADER PREMIUM (GLASSMORPHISM)
   ============================================================================ */

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-sticky.scrolled {
    height: 70px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar {
    width: 100%;
    padding: 0 !important;
}

.fw-800 { font-weight: 800; }

.logo-text {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    line-height: 1;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-text) !important;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-nav-cta {
    background: var(--primary-blue);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-nav-cta:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* Hamburger Menu Custom */
.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 50px);
    background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent);
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.hero-section .col-lg-6:first-child {
    max-width: 650px; /* Aumenta a largura do texto no hero */
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-container {
    position: relative;
    z-index: 1;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: var(--transition-smooth);
}

.hero-image-container:hover::after {
    transform: translate(-20px, -20px);
}

.hero-img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 450px; /* Ajuste para não ficar muito grande */
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* ============================================================================
   CARDS & SERVICES PREMIUM
   ============================================================================ */

.card-premium {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-premium:hover {
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
}

.card-premium .icon-box {
    width: 70px;
    height: 70px;
    background: var(--off-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 30px;
    transition: var(--transition-smooth);
    color: var(--primary-blue);
}

.card-premium:hover .icon-box {
    background: var(--primary-blue);
    color: #fff;
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.card-premium h3 {
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.card-premium:hover h3 {
    color: var(--primary-blue);
}

.card-premium ul {
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-premium ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.card-premium:hover ul li {
    transform: translateX(5px);
}

/* Premium Section Titles */
.section-title-wrapper {
    margin-bottom: 60px;
}

.section-title-wrapper h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas para ficar mais organizado */
    gap: 40px;
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.project-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 102, 204, 0.1);
    border-color: var(--primary-blue-light);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
    background: #fff;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.project-desc {
    color: var(--muted-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-link {
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.project-link:hover {
    gap: 12px;
    color: var(--primary-blue-dark);
}

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

.btn-premium {
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-premium-primary {
    background: var(--primary-blue);
    color: #fff !important;
}

.btn-premium-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.btn-premium-success {
    background: var(--accent-green);
    color: #fff !important;
}

.btn-premium-success:hover {
    background: var(--accent-green-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue) !important;
}

.btn-premium-outline:hover {
    background: var(--primary-blue);
    color: #fff !important;
    transform: translateY(-3px);
}

/* ============================================================================
   FOOTER PREMIUM
   ============================================================================ */

.footer-premium {
    background: #0a0f1a;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-premium h5 {
    color: #fff;
    font-weight: 700;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* ============================================================================
   RESPONSIVE FIXES
   ============================================================================ */

@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-image-container {
        margin-top: 40px;
    }

    .hero-img {
        max-width: 300px; /* Menor em mobile */
    }

    .display-4 {
        font-size: 2.2rem;
    }
}

/* ============================================================================
   SCROLL TOP BUTTON (ORIGINAL)
   ============================================================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px; /* Fica embaixo */
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-blue-dark);
    transform: scale(1.1);
}

/* ============================================================================
   CHATBOT WIDGET (MODERNO)
   ============================================================================ */

.chatbot-toggle {
    position: fixed;
    bottom: 95px; /* Fica em cima do botão de topo */
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.chatbot-toggle:hover {
    background: var(--accent-green-dark);
    transform: scale(1.1) rotate(5deg);
}

.chatbot-toggle.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 350px;
    max-height: 550px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    animation: chatAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chatAppear {
    from { opacity: 0; transform: scale(0.8) translateY(50px); transform-origin: bottom right; }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.chatbot-header {
    background: var(--primary-blue);
    color: white;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fcfdfe;
    max-height: 350px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.message-content p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.bot-message p {
    background: #f0f2f5;
    color: var(--dark-text);
    border-bottom-left-radius: 4px;
    max-width: 85%;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background: var(--primary-blue);
    color: white;
    border-bottom-right-radius: 4px;
    max-width: 85%;
}

.chatbot-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-service {
    border: 1px solid #eef0f2;
    background: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-service:hover {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.badge-pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

@media (max-width: 991px) {
    .header-sticky {
        height: auto;
        padding: 10px 0;
        display: block;
    }
    
    .header-sticky .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-collapse {
        background: #fff;
        margin: 15px 0 0 0;
        padding: 30px;
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        text-align: center;
        max-height: 80vh;
        overflow-y: auto;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 15px 0 !important;
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link::after {
        left: 30%;
        right: 30%;
    }

    .btn-nav-cta {
        margin-top: 20px;
        display: inline-block;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        overflow: hidden;
    }
    .chatbot-widget {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px;
        left: 20px;
        max-height: 80vh;
    }
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
    }
}


