/* ------------------------------------------------------------------
   GOOGLE FONTS
   ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Days+One&display=swap');

/* ------------------------------------------------------------------
   CUSTOM COLORS VARs
   ------------------------------------------------------------------ */
:root {
    --bs-body-bg: #212121;
    --bs-body-color: #ddd;
    --highlight-color: #EFC84B;
    --bs-link-color-rgb: 239, 200, 75; /* EFC84B */
    --section-opaque-bg: #151515;
    --ai-accent: #8e44ad;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Raleway', sans-serif;
}

.text-highlight {
    color: var(--highlight-color) !important;
}

.bg-highlight {
    background-color: var(--highlight-color) !important;
}

/* ------------------------------------------------------------------
   GLASSMORPHISM EFFECT - SERVICES
   ------------------------------------------------------------------ */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 50px rgba(239, 200, 75, 0.3);
}

/* ------------------------------------------------------------------
   GLASSMORPHISM EFFECT - PROJECTS
   ------------------------------------------------------------------ */
.glass-card-horizontal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.glass-card-horizontal:hover {
     transform: translateY(-3px);
    box-shadow: 0 6px 40px rgba(239, 200, 75, 0.3);
}

.glass-section-bg {
    background: radial-gradient(circle at center, #2e2e2e 0%, #151515 100%);
    border-top: 1px solid rgba(239, 200, 75, 0.1);
    border-bottom: 1px solid rgba(239, 200, 75, 0.1);
}

/* ------------------------------------------------------------------
   CUSTOM HIGHLIGHT BTN STYLE
   ------------------------------------------------------------------ */
.btn-highlight {
    background-color: var(--highlight-color);
    color: #212121;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-highlight:hover {
    background-color: #f7d97b;
    color: #212121;
    transform: scale(1.02);
}

.btn-pulse {
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 200, 75, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(239, 200, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 200, 75, 0);
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--bs-body-color);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--highlight-color);
}

h1, h2 {
    font-weight: 700;
}

.logo {
    font-family: 'Days One', sans-serif;
    font-weight: 400;
}

.main-content {
    background: linear-gradient(180deg, #212121 0%, #151515 100%);
}



/* ------------------------------------------------------------------
   CUSTOM SCROLLBAR
   ------------------------------------------------------------------ */

/* Configuração para Firefox */
* {
    scrollbar-width: auto; /* Opções: auto, thin, none */
    scrollbar-color: var(--highlight-color) #333; /* Cor do "thumb" e cor do "track" */
}
/* Configuração para Chrome, Edge e Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #333;
}

::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f7d97b;
}

/* ------------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------------ */
#hero {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}

#hero::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bgs/bg4.webp'); 
    background-size: cover;
    background-position: top center;
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.5s;
}

/* ------------------------------------------------------------------
   SERVICES SECTION
   ------------------------------------------------------------------ */
#servicos {
    min-height: 90vh;
}

/* ------------------------------------------------------------------
   PROJECTS SECTION
   ------------------------------------------------------------------ */
#projects {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    background-color: var(--section-opaque-bg);
    z-index: 1;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.5s;
}

/* ------------------------------------------------------------------
   WHATSAPP FLOAT BTN
   ------------------------------------------------------------------ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 30px; 
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.7);
}

.section {
    min-height: 100vh; /* Garante que cada seção ocupe a altura total da viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*text-align: center;*/
    padding: 20px;
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
   AI CHAT FLOAT BTN
   ------------------------------------------------------------------ */
#ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    max-height: 500px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0,0,0,0.2);
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 85%;
    font-size: 0.9rem;
}

.btn-ai {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    font-weight: bold;
}

.bot-msg { background: #34495e; align-self: flex-start; }
.user-msg { background: var(--ai-accent); align-self: flex-end; margin-left: auto; }

.loading-dots:after {
    content: '.';
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
}

.ai-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ai-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-float:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.7);
}

/* ------------------------------------------------------------------
   STATIC BACKGROUND
   ------------------------------------------------------------------ */

/* Estilo para seções sem parallax */
.non-parallax {
    background-color: #212121; 
}

/* ------------------------------------------------------------------
   PARALLAX BACKGROUND
   ------------------------------------------------------------------ */

/* Estilo base para seções com parallax */
.parallax {
    background-attachment: fixed;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Imagens específicas para cada seção parallax */
#inicio {
    /* Usa um gradiente linear semi-transparente sobre a imagem */
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('bgs/bg2.webp'); */
}

#projetos {
     /* Outra opção: usar background-color com background-blend-mode (compatibilidade pode variar) */
     /* background-color: rgba(0, 0, 0, 0.6); */
     /* background-image: url('URL_da_sua_imagem_4.jpg'); */
     /* background-blend-mode: darken; */

     /* Usando o método de gradiente linear para maior compatibilidade */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg3.webp');
}

.bg-random-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg1.webp');
}
.bg-random-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg2.webp');
}
.bg-random-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg.jpg');
}
.bg-random-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg4.webp');
}
.bg-random-5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg5.webp');
}