/* ==========================================================================
   CSS Variables & Theme
   Brand Colors: Dark Blue, Light Blue, Yellow/Gold, White
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-dark-base: #030712;
    /* Fundo extremamente escuro */
    --color-dark-surface: #0c1a31;
    /* Azul Escuro da logo para cards */
    --color-primary: #d6deed;
    /* Azul Claro da logo */
    --color-secondary: #faa536;
    /* Laranja da logo */
    --color-text-main: #F8FAFC;
    /* White */
    --color-text-muted: #b6bccb;
    /* Slate grayish blue */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), #113f7f);
    --gradient-gold: linear-gradient(135deg, var(--color-secondary), #d97706);
    --gradient-glass: linear-gradient(135deg, rgba(17, 63, 127, 0.15), rgba(12, 26, 49, 0.05));

    /* Effects */
    --glow-primary: 0 0 20px rgba(214, 222, 237, 0.5);
    --glow-secondary: 0 0 20px rgba(250, 165, 54, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-base);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.section-title span {
    color: var(--color-primary);
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-dark-base);
    box-shadow: var(--glow-secondary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d97706, var(--color-secondary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(250, 165, 54, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(214, 222, 237, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

/* Glass Panels */
.glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(12, 26, 49, 0.85); /* Azul Escuro da logo */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(214, 222, 237, 0.05); /* Azul claro da logo */
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(214, 222, 237, 0.6));
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--color-primary);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--color-secondary);
    padding: 8px 20px;
    border-radius: 6px;
    color: var(--color-secondary) !important;
}

.btn-nav:hover {
    background: rgba(250, 165, 54, 0.1);
    box-shadow: var(--glow-secondary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(214, 222, 237, 0.15);
    border: 1px solid rgba(214, 222, 237, 0.4);
    border-radius: 30px;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.2;
    margin-bottom: 32px;
}

.hero-br {
    display: block;
}

@media (max-width: 768px) {
    .hero-br {
        display: none;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.hero-buttons .btn {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--color-secondary);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(250, 165, 54, 0.4);
}

.main-glass-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(214, 222, 237, 0.2);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.main-glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.glass-icon {
    width: 80px;
    height: 80px;
    background: rgba(214, 222, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--color-primary);
    border: 1px solid rgba(214, 222, 237, 0.3);
    box-shadow: var(--glow-primary);
}

.main-glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.main-glass-card p {
    color: var(--color-text-muted);
}

.card-glow-effect {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--color-primary);
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}

.service-card h3 {
    font-size: 1.4rem;
}

.service-card p {
    color: var(--color-text-muted);
    flex-grow: 1;
}

.card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.4s ease;
    box-shadow: var(--glow-primary);
}

.service-card:hover .card-border {
    width: 100%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px;
    border: 1px solid rgba(250, 165, 54, 0.2);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info h2 span {
    color: var(--color-secondary);
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
}

.detail-item i {
    width: 40px;
    height: 40px;
    background: rgba(214, 222, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    border: 1px solid rgba(214, 222, 237, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: rgba(250, 165, 54, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
    box-shadow: var(--glow-secondary);
}

.input-group input:focus~.input-border,
.input-group textarea:focus~.input-border {
    width: 100%;
}

.btn-block {
    width: 100%;
    font-size: 1.1rem;
    gap: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(17, 63, 127, 0.2); /* Fundo com Azul oficial da logo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-social a:hover {
    background: rgba(214, 222, 237, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   Animations & Scroll Reveal
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.active.fade-in,
.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.4s ease;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
