@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #34a7de;
    --primary-light: #97daf8;
    --primary-dark: #0b71a3;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border-soft: #e2e8f0;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    /* Softer shadow */
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    /* Deeper hover */
    --radius: 16px;
    /* Slightly more rounded for modern feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Scattered Brand Logo Decor (Pingo) */
.logo-pingo {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url('logo2.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    /* Increased for visibility, keeping colors */
    pointer-events: none;
    z-index: 1;
    /* Above background orbs but below content where applicable */
}

::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
    font-family: 'Lora', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    /* Tighter headings */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 167, 222, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(52, 167, 222, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 167, 222, 0);
    }
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    /* Taller initial header */
    transition: height 0.4s ease;
}

header.scrolled .container {
    height: 70px;
    /* Compact on scroll */
}

.logo img {
    height: 40px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-header .btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 167, 222, 0.3);
}

.cta-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 167, 222, 0.4);
}

/* --- Hero Section Improvements (WOW Edition) --- */

.hero {
    padding: 160px 0 120px;
    background: linear-gradient(-45deg, #f8fafc, #eef9fe, #ffffff, #e0f2fe);
    background-size: 400% 400%;
    animation: mesh-bg 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes mesh-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Light Orbs */
.light-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 167, 222, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
    animation: orb-float 20s infinite ease-in-out;
}

.orb-1 {
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(151, 218, 248, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Enhanced Glassmorphism */
.hero-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 4rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.03),
        0 20px 40px -10px rgba(11, 113, 163, 0.05);
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    line-height: 1.1;
    position: relative;
    min-height: 2.2em;
}

/* Luxurious Text Transition */
.hero-title-wrapper {
    position: relative;
    display: block;
}

.hero-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    background: linear-gradient(135deg, var(--primary-dark), #1e293b, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    animation: shine-text 8s linear infinite;
}

@keyframes shine-text {
    to {
        background-position: 200% center;
    }
}

.hero-title.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    position: relative;
    pointer-events: auto;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    /* Wider block for better screen usage */
    line-height: 1.8;
}

/* Video: Organic Pebble Shape & Depth */
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 520px;
    margin: 0 auto;
    border-radius: 60px 40px 80px 40px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow:
        0 30px 60px -12px rgba(11, 113, 163, 0.15),
        0 18px 36px -18px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-video-container:hover {
    transform: translateY(-15px) scale(1.02);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05);
}

/* Floating Glass Badge */
.floating-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.floating-badge span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 167, 222, 0.05), transparent);
    pointer-events: none;
}

/* --- End Hero WOW Edition --- */

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
        z-index: 1002;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        text-align: center;
        z-index: 1001;
    }

    nav ul.active {
        display: flex;
        animation: fade-down 0.3s ease-out;
    }

    /* Hide CTA on mobile to simplify header */
    .cta-header {
        display: none;
    }

    @keyframes fade-down {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Subtle pattern overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#34a7de 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Rebalanced for better video presence */
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

/* Glassmorphism content width refinement */
.hero-content {
    width: 100%;
    max-width: 800px;
    /* Refined for 1.2fr */
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(52, 167, 222, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Shine effect on button */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(52, 167, 222, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--border-soft);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(52, 167, 222, 0.05);
}

/* Removed old redundant hero image style */

/* Services - Energized with Subtle Aurora */
.services {
    padding: 120px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(circle at 20% 30%, rgba(11, 113, 163, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 167, 222, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 10% 90%, rgba(11, 113, 163, 0.1) 0%, transparent 40%);
    filter: blur(90px);
    z-index: -1;
    animation: aurora-float 18s ease-in-out infinite alternate;
}

@keyframes aurora-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-2%, 2%) scale(1.05) rotate(1deg);
    }

    100% {
        transform: translate(1%, -1%) scale(0.98) rotate(-0.5deg);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3.5rem 2.5rem;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    animation: card-float 6s ease-in-out infinite alternate;
}

@keyframes card-float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.service-card:nth-child(even) {
    animation-delay: 1.5s;
}

.service-card:nth-child(3n) {
    animation-delay: 3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(52, 167, 222, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotate(5deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.modal-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Button Polish - Remove underlines and borders */
.btn-primary,
.btn-secondary,
a.btn {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Footer */
footer {
    background: var(--text-main);
    /* Darker footer for elegance */
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
    border-top: none;
    margin-top: 0;
    /* Remove gap if exists */
}

/* Footer Soft Theme Override */
footer.footer-soft {
    padding-top: 60px;
}

.footer-grid-refined {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.footer-brand-col,
.footer-links-col,
.footer-contact-col {
    min-width: 0;
    /* Prevent overflow */
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid-refined {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand-col,
    .footer-links-col,
    .footer-contact-col {
        max-width: 100%;
        flex: auto;
    }
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Layout Classes */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* About Section Slider - Global Scope */
.about-slider-container {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(to right bottom, #eef9fe, #f8fafc);
    border: 1px solid #e0f2fe;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.about-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.about-slide.active {
    opacity: 1;
    z-index: 1;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer Mobile Alignment */
    .footer-grid-refined {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand-col,
    .footer-links-col,
    .footer-contact-col {
        align-items: center;
    }

    .footer-brand-col a,
    .footer-contact-col>div {
        justify-content: center;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 2rem 1.5rem;
        width: 90%;
        margin: 0 auto;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 9999;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Contact Mobile Fix */
@media (max-width: 768px) {
    #contato .container>div {
        padding: 2rem 1.5rem !important;
    }
}

/* Post Page CTA & Responsiveness */
.post-cta {
    margin-top: 6rem;
    padding: 4rem;
    background: var(--bg-light);
    border-radius: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .post-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 4rem;
    }

    article {
        padding: 120px 0 60px !important;
    }

    article h1 {
        font-size: 2.2rem !important;
    }

    .post-content {
        font-size: 1.05rem !important;
    }

    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 320px;
    }
}