/* =========================================
   LQM QUALIFICAÇÃO - ELITE LANDING PAGE
   ========================================= */

:root {
    /* Color Palette */
    --primary-color: #0b1a30; /* Deep Navy Blue */
    --primary-dark: #06101e;
    --primary-light: #162c4a;
    --accent-color: #ff8c00; /* Vibrant Orange */
    --accent-hover: #ff9d26;
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --text-dark: #1e293b;
    
    /* Gradients */
    --bg-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    --glass-bg: rgba(22, 44, 74, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sizes & Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 12px;
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.bg-dark { background-color: var(--primary-dark); }

/* =========================================
   COMPONENTS
   ========================================= */
/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(11, 26, 48, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.tooltip-content {
    min-width: 320px;
    padding: 20px !important;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    white-space: normal;
    text-align: left;
    transform-origin: top center;
}

.glass-premium {
    background: rgba(6, 16, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-top: 3px solid var(--accent-color) !important;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 140, 0, 0.05) !important;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.tooltip-header i {
    font-size: 1.2rem;
    background: rgba(255, 140, 0, 0.1);
    padding: 8px;
    border-radius: 6px;
}

.tooltip-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.tooltip-desc {
    margin: 0;
    font-weight: 400;
}

/* =========================================
   HERO CAROUSEL SECTION
   ========================================= */
.hero-carousel-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-carousel {
    display: flex;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset for nav */
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-sensors { background-image: url('assets/banner_sensors.png'); }
.banner-lab { background-image: url('assets/banner_lab.png'); }

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gradients so text doesn't overlap image focal points */
.hero-overlay-gradient-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 26, 48, 0.95) 0%, rgba(11, 26, 48, 0.5) 50%, transparent 100%);
    z-index: 2;
}

.hero-overlay-gradient-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(11, 26, 48, 0.95) 0%, rgba(11, 26, 48, 0.5) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 6rem;
}

.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-control:hover {
    background: var(--accent-color);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--accent-color);
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
    background: var(--primary-dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.trust-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.client-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.client-logo:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: #0050FF;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00A3FF;
}

/* Mobile Footer adjustments */
@media (max-width: 768px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer-links span {
        display: none; /* Hide pipe separator */
    }
}

/* =========================================
   COMPARISON & SECTIONS
   ========================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.comparison-section, .pilares-section, .coverage-section, .faq-section, .tech-section {
    padding: var(--section-padding);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comp-card {
    padding: 3rem;
}

.lqm-card {
    border-left: 4px solid var(--accent-color);
}

.trad-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #475569;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-list i {
    width: 20px;
}

/* =========================================
   SPLIT SECTIONS (Image + Text)
   ========================================= */
.split-section {
    padding: var(--section-padding);
    background: var(--primary-dark);
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.split-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.split-image-wrapper {
    position: relative;
}

.rounded-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
}

.floating-image {
    animation: float 6s ease-in-out infinite;
}

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

/* =========================================
   PILARES
   ========================================= */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pilar-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.icon-wrapper {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.pilar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================
   ROI BARS
   ========================================= */
.roi-section {
    padding: var(--section-padding);
}

.bars-container {
    max-width: 800px;
    margin: 0 auto;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0 -15px;
}

.bar-label {
    width: 200px;
    text-align: right;
    padding-right: 1.5rem;
    font-size: 1.1rem;
}

.bar-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 40px;
    overflow: hidden;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-weight: 600;
    transition: width 1.5s ease-out;
}

.bar-grey { background-color: #64748b; color: #fff; }
.bar-darkblue { background-color: var(--primary-light); color: #fff; }
.bar-accent { background-color: var(--accent-color); color: #fff; }

.highlight-row {
    background: rgba(255, 140, 0, 0.05);
    border-left: 4px solid var(--accent-color);
}

.roi-footer-text {
    margin-top: 2rem;
}

/* =========================================
   TECH & PRECISION
   ========================================= */
.tech-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.tech-card {
    padding: 3rem;
}

.tech-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.highlight-box {
    border-top: 4px solid var(--accent-color);
}

.huge-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 1.5rem 0;
}

.huge-number .unit {
    font-size: 2.5rem;
}

/* =========================================
   TIMELINE
   ========================================= */
.timeline-section {
    padding: var(--section-padding);
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-line {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    width: 20%;
}

.step-dot {
    width: 30px;
    height: 30px;
    background: var(--primary-dark);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.timeline-step:hover .step-dot {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.step-title {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   TABLE
   ========================================= */
.table-container {
    overflow-x: auto;
    padding: 2rem;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.modern-table th, .modern-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
}

.modern-table th {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* =========================================
   FAQ
   ========================================= */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.faq-card {
    padding: 2rem;
}

.faq-question {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================
   FINAL CTA & FOOTER
   ========================================= */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #05162b 100%);
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

footer {
    background: var(--primary-dark);
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-small-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* =========================================
   NEXGOLD SUB-FOOTER
   ========================================= */
.nexgold-subfooter {
    display: block;
    position: relative;
    background-color: #0050ff;
    background-image: linear-gradient(135deg, #00A3FF 0%, #0050FF 100%);
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease;
}

.nexgold-subfooter:hover {
    opacity: 0.9;
}

.nexgold-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.nexgold-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.nexgold-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    margin-left: 5px;
}

.nexgold-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 25%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 184, 0, 0) 0%,
        rgba(255, 184, 0, 0.7) 50%,
        rgba(255, 184, 0, 0) 100%
    );
    transform: skewX(-20deg);
    animation: nexgold-shine-anim 3s infinite linear;
    z-index: 1;
}

@keyframes nexgold-shine-anim {
    0% { left: -50%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .comparison-grid, .split-container, .tech-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .pilares-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        padding: 1rem 0;
    }
    .dropdown-content, .tooltip-content {
        display: none !important;
    }
    .nav-links li {
        padding: 1rem 0;
    }
    .nav-cta-btn {
        display: none;
    }
    
    /* Fix Hero Banner Mobile padding and Portrait Image */
    .banner-sensors { background-image: url('banner_sensors_mobile.png') !important; }
    .banner-lab { background-image: url('banner_lab_mobile.png') !important; }
    
    .hero-content {
        padding: 0 3.5rem !important; /* Move text away from arrows */
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-description {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .btn-large {
        font-size: 0.85rem !important;
        padding: 0.8rem 1rem !important;
        white-space: nowrap !important; /* Keep button on one line, preventing huge size */
    }
    
    .carousel-control {
        width: 30px !important;
        height: 30px !important;
        font-size: 1rem !important;
    }
    
    .carousel-control.prev {
        left: 5px !important;
    }
    
    .carousel-control.next {
        right: 5px !important;
    }
    
    /* Fix Table Cut Off (No Horizontal Scroll) */
    .table-responsive {
        overflow-x: visible !important;
    }
    .modern-table {
        table-layout: fixed;
    }
    .modern-table th, .modern-table td {
        padding: 0.4rem;
        font-size: 0.75rem;
        word-wrap: break-word;
        white-space: normal;
    }
    .modern-table th {
        font-size: 0.8rem;
    }
    
    /* NexGold Footer Mobile */
    .nexgold-text {
        font-size: 0.75rem !important;
    }
    .footer-separator {
        display: none;
    }
    .copyright-part, .dev-part {
        display: block;
        line-height: 1.4;
    }
    .nexgold-logo {
        height: 20px !important;
    }
    .nexgold-content {
        padding: 0 10px;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Force show all AOS elements on mobile to prevent bottom-page hiding bugs */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    .client-logos {
        gap: 2rem;
    }
    
    .comp-card {
        padding: 1.5rem;
    }

    /* Fix Agilidade ROI Bars on Mobile */
    .bar-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bar-label {
        text-align: left;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .bar-wrapper {
        width: 100%;
        flex: none;
    }
    
    .huge-number {
        font-size: 3.5rem;
    }
    
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    .timeline-line {
        width: 2px;
        height: 100%;
        top: 0;
        left: 35px;
    }
    
    .timeline-step {
        width: 100%;
        display: flex;
        align-items: flex-start;
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .step-dot {
        margin: 0 1.5rem 0 0;
        flex-shrink: 0;
    }
}

/* =========================================
   ANIMATIONS FOR COUNTER
   ========================================= */
.falling-animation {
    display: inline-block;
    animation: fallAndSettle 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fallAndSettle {
    0% {
        transform: translateY(-80px) scale(1.2);
        opacity: 0;
        color: #fff;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        color: var(--accent-color);
        opacity: 1;
    }
}

.impact-shake {
    animation: impactShake 0.4s ease-out forwards;
}

@keyframes impactShake {
    0% { transform: translateY(0); opacity: 1; color: var(--accent-color); }
    25% { transform: translateY(-5px); opacity: 1; color: var(--accent-color); }
    50% { transform: translateY(3px); opacity: 1; color: var(--accent-color); }
    75% { transform: translateY(-2px); opacity: 1; color: var(--accent-color); }
    100% { transform: translateY(0); opacity: 1; color: var(--accent-color); }
}

/* =========================================
   DROPDOWN MENUS
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--primary-dark);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown:hover .dropbtn .nav-icon {
    transform: rotate(180deg);
}

.nav-icon {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(15px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.client-area-btn {
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color);
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 600 !important;
}

.client-area-btn:hover {
    background-color: var(--accent-color);
    color: #fff !important;
}

/* =========================================
   MODAL STYLES
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow-y: auto; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--primary-color);
    margin: 5vh auto; 
    padding: 15px 20px;
    border: 1px solid var(--glass-border);
    width: 95%; 
    max-width: 450px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px !important;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.form-group {
    margin-bottom: 0.8rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    background-color: rgba(255,255,255,0.05);
    color: var(--text-main);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255,255,255,0.1);
}

.w-100 {
    width: 100%;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

.error-msg:empty {
    display: none;
}
