/* 
   ===================================
   Ômega Security - Core Styles 
   ===================================
*/

:root {
    /* Color Palette */
    --bs-primary: #562941;
    --bs-primary-rgb: 86, 41, 65;

    --color-bg-light: #f5f7f9;
    --color-bg-white: #ffffff;
    --color-surface: rgba(255, 255, 255, 0.85);

    --color-text: #212529;
    --color-text-muted: #6c757d;

    --gradient-primary: linear-gradient(135deg, #873d64 0%, #562941 100%);
    --gradient-accent: linear-gradient(to right, #873d64, #562941);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-white);
    color: var(--color-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
}

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

.w-15px {
    width: 15px;
}

.transition {
    transition: all 0.3s ease;
}

/* Utilities */
.text-light-50 {
    color: var(--color-text-muted);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

/* Glassmorphism — Light (seções brancas) */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(86, 41, 65, 0.1);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Glassmorphism — Dark (hero, CTA) */
.glass-card-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.bg-glass {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

/* Navbar */
.glass-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-nav .nav-link {
    color: var(--color-text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.navbar-nav .btn.nav-link {
    color: #fff !important;
}

.navbar-nav .btn.nav-link::after {
    display: none;
}

.navbar-nav .btn.nav-link:hover {
    color: #fff !important;
}

/* Buttons */
.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #873d64;
    border-color: #873d64;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--bs-primary-rgb), 0.5);
}

.glass-btn {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    backdrop-filter: blur(5px);
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    color: var(--bs-primary);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

/* ==============================
   Hero Section
   ============================== */

.hero-section {
    min-height: 70vh;
    margin: 10px 60px;
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    background-color: var(--bs-primary);
    background-image:
        linear-gradient(to right, rgba(86, 41, 65, 0.95) 0%, rgba(86, 41, 65, 0.85) 60%, rgba(86, 41, 65, 0.6) 100%),
        url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

.main-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--bs-primary);
    filter: blur(150px);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Hero milestone cards — glassmorphism escuro */
.feature-float {
    width: 100%;
    z-index: 2;
    position: relative;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.feature-float:hover {
    transform: translateY(-5px);
    animation-play-state: paused;
}

/* Wave divider */
.wave-divider {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -2px;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections */
.section-light {
    background-color: var(--color-bg-light);
}

.section-lighter {
    background-color: var(--color-bg-white);
}

/* ==============================
   Services
   ============================== */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card .service-number {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(var(--bs-primary-rgb), 0.06);
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease;
}

.service-card:hover .service-number {
    color: rgba(var(--bs-primary-rgb), 0.12);
}

.hover-lift:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 20px rgba(var(--bs-primary-rgb), 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* CTA */
.border-primary-left {
    border-left: 4px solid var(--bs-primary);
}

/* ==============================
   Sobre section image
   ============================== */
.sobre-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* ==============================
   Footer
   ============================== */
.footer-section {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    background: rgba(var(--bs-primary-rgb), 0.05);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bs-primary);
    color: #fff !important;
}

.footer-links a:hover {
    color: var(--bs-primary) !important;
    padding-left: 5px;
}

/* Contact Form */
.contact-form .form-control {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
    background: #fff;
}

.contact-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
    outline: none;
}

/* ==============================
   Animations
   ============================== */
.hero-content,
.hero-illustration {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-illustration {
    animation-delay: 0.3s;
}

.hero-illustration .fa-regular{ font-size: 20rem; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   Showcase v2 — Editorial Layout
   ============================== */
.letter-spacing-wide {
    letter-spacing: 0.08em;
}

/* Card container */
.showcase-card-v2 {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Image */
.showcase-img-v2 {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.col-lg-7 .showcase-img-v2 {
    min-height: 480px;
}

.showcase-card-v2:hover .showcase-img-v2 {
    transform: scale(1.06);
}

/* Overlay — sempre visível na base, expande no hover */
.showcase-overlay-v2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(56, 18, 40, 0.96) 0%,
            rgba(86, 41, 65, 0.5) 45%,
            transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 1.75rem;
    transition: background 0.4s ease;
}

.showcase-card-v2:hover .showcase-overlay-v2 {
    background: linear-gradient(to top,
            rgba(56, 18, 40, 0.98) 0%,
            rgba(86, 41, 65, 0.65) 55%,
            transparent 80%);
}

/* Metadata block */
.showcase-meta {
    width: 100%;
    transform: translateY(8px);
    transition: transform 0.4s ease;
}

.showcase-card-v2:hover .showcase-meta {
    transform: translateY(0);
}

/* Badges */
.showcase-tag {
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 20px;
}

.showcase-tag-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Decorative index number */
.showcase-index {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease;
}

.showcase-card-v2:hover .showcase-index {
    color: rgba(255, 255, 255, 0.18);
}




/* ==============================
   Portfolio page
   ============================== */
.hero-section.page-hero {
    min-height: 42vh;
    padding: 4rem 0;
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.filter-chip {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    background: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
    border-radius: 50rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-chip:hover {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 20px rgba(var(--bs-primary-rgb), 0.35);
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-item .showcase-card-v2 {
    min-height: 360px;
}

.portfolio-item .showcase-img-v2 {
    min-height: 360px;
    height: 360px;
}

/* Galeria do projeto */
.gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(86, 41, 65, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover .gallery-zoom,
.gallery-thumb:focus-visible .gallery-zoom {
    opacity: 1;
}

.gallery-lightbox {
    border: 0;
    padding: 1.5rem;
    max-width: min(92vw, 1100px);
    background: transparent;
    overflow: visible;
}

.gallery-lightbox::backdrop {
    background: rgba(30, 10, 22, 0.88);
    backdrop-filter: blur(6px);
}

.gallery-lightbox img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

/* ==============================
   WhatsApp Float
   ============================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 800px) {

    .hero-section {
        min-height: 70vh;
        margin: 0;
        padding: 20px 15px;
        border-radius: 0;
    }

    .hero-illustration{ display: none; }
    .footer-section{ display: none; }
    .final-cta h2{ font-size: 1.4rem; }
    .hero-buttons{ display: none; }
    
}

@media (max-width: 1400px) {

    .footer-section{ display: none; }
    .final-cta h2{ font-size: 2.5rem; }
    h1.display-4{ font-size: 2.5rem; }
    .hero-illustration i.fa-regular{ font-size: 20rem; }

}