:root {
    --primary: #10b981;
    /* Emerald Green - The Matrix Glow */
    --primary-dark: #047857;
    /* Deep Forest Green */
    --secondary: #d4af37;
    /* Metallic Gold - For premium contrast */
    --bg-dark: #050505;
    /* True Black Abyss */
    --bg-card: #0a0e17;
    /* Very deep slate core */
    --text-main: #f8fafc;
    /* Crisp White */
    --text-muted: #8b9bb4;
    /* Muted tech slate */
    --accent: #34d399;
    /* Neon pulse green */
    --glass: rgba(16, 185, 129, 0.03);
    /* Subtle matrix tint */
    --glass-border: rgba(16, 185, 129, 0.2);
    /* Glowing green borders */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    /* Neon Matrix Cyber-Pulse */
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(212, 175, 55, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.blob-1 {
    top: -200px;
    right: -200px;
}

.blob-2 {
    bottom: -200px;
    left: -200px;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 80px 0;
}

/* Navigation */
nav {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.nav-hidden {
    transform: translateY(-100%);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    transform: none;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    padding: 8px 0;
}

.nav-item-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.dropdown-item i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.price-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price-card.featured {
    border: 2px solid var(--primary);
}

.price-card.centered {
    text-align: center;
    align-items: center;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-daily {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.price-daily span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.price-total {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.features-list li i {
    color: var(--accent);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.02);
}

.portfolio-thumb {
    height: 200px;
    background: #2d3748;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-info {
    padding: 1.5rem;
}

/* Modal for Portfolio Viewer */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass);
}

/* Calendar & Scheduling */
.calendar-day {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
    color: #f8fafc;
}

.calendar-day.past,
.calendar-day.weekend {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #475569;
    cursor: not-allowed;
    opacity: 0.4;
    border: none;
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
}

.slot-btn {
    flex: 1;
    min-width: 100px;
    padding: 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: Inter, sans-serif;
}

.slot-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.slot-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.slot-btn.unavailable {
    flex: 1;
    min-width: 100px;
    padding: 14px;
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    cursor: not-allowed;
    text-decoration: line-through;
    font-family: Inter, sans-serif;
}

@media (max-width: 768px) {
    .calendar-day {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .slot-btn,
    .slot-btn.unavailable {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 60vh;
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .hero-actions .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* New unified hero fix */
    .hero-inner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 20px !important;
        gap: 20px !important;
    }

    .hero-text {
        text-align: center !important;
    }

    .hero-cta {
        text-align: center !important;
        width: 100%;
    }

    .hero-sim-btn {
        width: 100%;
        font-size: 1rem !important;
        padding: 15px 20px !important;
    }

    .mobile-menu-btn {
        display: block !important;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-content {
        flex-direction: row;
        gap: 1.5rem;
        text-align: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-links .btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        flex: 1;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        margin: 0;
        display: block;
    }

    .nav-item-dropdown {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    .nav-item-dropdown>.btn {
        justify-content: center;
        padding-right: 0 !important;
        margin: 0;
        width: 100%;
        display: flex;
        /* keep flex for the text + icon alignment */
    }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: unset;
        margin-top: 5px;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        display: none;
        border: none;
        box-sizing: border-box;
    }

    /* Expand when touched on mobile */
    .nav-item-dropdown:hover .dropdown-content,
    .nav-item-dropdown:active .dropdown-content,
    .nav-item-dropdown:focus-within .dropdown-content {
        display: flex;
        flex-direction: column;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-info {
        text-align: center;
    }

    .visita-grid {
        grid-template-columns: 1fr !important;
    }

    .visita-map {
        height: 300px !important;
    }

    .client-info-grid {
        grid-template-columns: 1fr !important;
    }

    .scheduling-container {
        padding: 1.5rem !important;
    }

    .value-prop-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .nav-links .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .price-daily {
        font-size: 2rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
        box-sizing: border-box;
        display: block;
    }

    .price-card .btn {
        margin-bottom: 0;
        /* Remove margem extra dentro do card */
    }
}