:root {
    --primary: #f39c12;
    --primary-dark: #d35400;
    --dark: #1a1a1a;
    --light: #f9f9f9;
    --text: #333;
    --text-muted: #666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo img {
    height: 40px;
    border-radius: 5px;
}

.nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-mobile-btn {
    display: none;
    background: var(--dark);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-login {
    background: var(--dark);
    color: var(--white);
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--primary);
}

/* Hero */
.hero {
    height: 100vh;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card img {
    height: 80px;
    margin-bottom: 20px;
}

.service-card .icon-box {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.35rem;
}

/* About */
.about {
    padding: 100px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    margin-top: 25px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
}

.about-list ion-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ASTERPRO Section v2 */
.asterpro {
    padding: 100px 0;
    background: #0f0f0f;
    background-image: radial-gradient(circle at 10% 20%, rgba(243, 156, 18, 0.05) 0%, transparent 40%);
    color: var(--white);
    overflow: hidden;
}

.asterpro-flex {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 80px;
}

.asterpro-content {
    flex: 1.2;
}

.asterpro-content h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.tech-specs {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.spec-item ion-icon {
    color: var(--primary);
}

.asterpro-features {
    list-style: none;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.asterpro-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
}

.asterpro-features ion-icon {
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.asterpro-btns {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* System Hub & Visual v2 */
.asterpro-visual {
    flex: 1;
}

.system-hub {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cpu-box {
    width: 120px;
    height: 150px;
    background: #222;
    border: 2px solid #333;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
    z-index: 5;
}

.cpu-box ion-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.cpu-box span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #555;
}

.led-pulse {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 1.5s infinite;
}

.data-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.line {
    position: absolute;
    background: linear-gradient(to bottom, var(--primary), transparent);
    width: 2px;
    height: 80px;
    opacity: 0.3;
}

.line.l1 {
    top: 40%;
    left: 35%;
    transform: rotate(45deg);
}

.line.l2 {
    top: 40%;
    left: 65%;
    transform: rotate(-45deg);
}

.line.l3 {
    top: 60%;
    left: 50%;
}

/* Cases */
.asterpro-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.case-card ion-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.case-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.case-card p {
    font-size: 0.95rem;
    color: #999;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Monitor Graphic Styling Refined */
.monitor-stack {
    position: relative;
    width: 400px;
    height: 200px;
}

.monitor {
    position: absolute;
    background: #333;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.monitor .screen {
    background: #000;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.monitor.main {
    z-index: 3;
    width: 180px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.monitor.side {
    z-index: 2;
    width: 120px;
    height: 80px;
    opacity: 0.8;
}

.monitor.side.s1 {
    top: 10%;
    left: 5%;
    transform: rotate(-10deg);
}

.monitor.side.s2 {
    bottom: 10%;
    right: 5%;
    transform: rotate(10deg);
}

.monitor.side .screen span {
    font-size: 0.7rem;
    color: #666;
}

.partners {
    padding: 80px 0;
    background: var(--light);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-item {
    flex: 0 0 200px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-item.placeholder {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 20px;
}

.partner-item.placeholder ion-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.partner-item.placeholder span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact */
.contact {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
}

.contact-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 30px;
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item ion-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    background: #000;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 40px;
    border-radius: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
.animate-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio & Lightbox */
.portfolio {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.lightbox-close:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .logo span {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-desktop-btn {
        display: none;
    }

    .nav-mobile-btn {
        display: block;
        margin-top: 20px;
        border-bottom: none !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-flex,
    .contact-box {
        flex-direction: column;
        gap: 40px;
    }

    .about-img {
        order: -1;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* ASTERPRO Mobile v2 */
    .asterpro-flex {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .tech-specs,
    .asterpro-features,
    .asterpro-btns {
        justify-content: center;
    }

    .asterpro-features {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .asterpro-cases {
        grid-template-columns: 1fr;
    }

    .system-hub {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
    }

    .contact-box {
        padding: 30px;
    }
}

/* Outsourcing Pricing Section */
.outsourcing {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: center;
    /* Center vertically to allow 'popular' card to scale */
}

.pricing-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.15);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.card-header .price {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.card-header .period {
    font-size: 0.9rem;
    color: #888;
}

.pricing-card.gold .price {
    font-size: 2rem;
    /* Client requested smaller font for "Sob Consulta" if text is long */
}

.card-body {
    margin-top: 30px;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.card-body li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body li ion-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.card-body li:last-child {
    border-bottom: none;
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #333;
    color: var(--white);
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.gold {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        /* More space for the scaled popular card */
    }

    .pricing-card.gold {
        grid-column: span 1;
    }

    .pricing-card.popular {
        transform: scale(1);
        /* Reset scale on mobile to prevent overflow */
        order: -1;
        /* Show popular first on mobile? Optional */
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 30px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}