:root {
  /* Light Academic/Corporate Palette - Requested */
  --pr-color: #024D86; /* Deep blue */
  --sec-color: #F8FAFC; /* Light gray-blue for alternate backgrounds */
  --accent-color: #318D97; /* Cyan */
  --accent-hover: #26727A;
  
  --text-dark: #727273; /* Letter color requested by user */
  --text-light: #999999;
  
  --bg-color: #FFFFFF; /* White background requested by user */
  --bg-panel: rgba(255, 255, 255, 0.95); /* White panel for glassmorphism */
  
  --white: #FFFFFF;
  --dark-heading: #024D86;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px rgba(2, 77, 134, 0.08); /* Blue tinted shadow */
  --shadow-lg: 0 20px 40px rgba(49, 141, 151, 0.12); /* Cyan tinted shadow */
  --glow: 0 0 20px rgba(49, 141, 151, 0.4);
}

/* Reset */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, .badge {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-heading);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography elements */
.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

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

.btn-outline:hover {
    background: rgba(2, 77, 134, 0.05);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(2, 77, 134, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo img {
    height: 65px;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--pr-color);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(49, 141, 151, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(49, 141, 151, 0.2);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-main {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(49,141,151,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.absolute-stat {
    position: absolute;
    bottom: -30px;
    left: -30px;
    z-index: 3;
}

.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(2, 77, 134, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    animation: floating 6s ease-in-out infinite;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}

.shape-1 {
    width: 600px; height: 600px;
    background: rgba(49, 141, 151, 0.15);
    top: -200px; left: -200px;
}
.shape-2 {
    width: 500px; height: 500px;
    background: rgba(2, 77, 134, 0.1);
    bottom: -100px; right: 10%;
}

/* General Sections */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-heading);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
}

.overlay-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--pr-color), var(--accent-color));
    border: 4px solid var(--white);
    width: 150px; height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    animation: floating 4s infinite alternate;
}

.overlay-badge .years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
}

.overlay-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--white);
    font-weight: 600;
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-list span {
    flex: 1;
    display: block;
}

.about-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Services */
.bg-light {
    background: var(--sec-color);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-panel);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 77, 134, 0.05);
    transition: var(--transition);
    text-align: left;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(49, 141, 151, 0.3);
    box-shadow: 0 15px 30px rgba(2, 77, 134, 0.08), 0 0 20px rgba(49, 141, 151, 0.1);
}

.card-icon {
    width: 60px; height: 60px;
    background: rgba(49, 141, 151, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--accent-color);
    color: var(--white);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--dark-heading);
}

.card p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Contact Section */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    background: rgba(49, 141, 151, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.info-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    color: var(--dark-heading);
}

.info-item p {
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group.row-group {
    display: flex;
    gap: 1rem;
}

.form-group.row-group .col {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pr-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(2, 77, 134, 0.2);
    border-radius: 8px;
    color: var(--pr-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 141, 151, 0.15);
    background: var(--white);
}

.form-group select option {
    background: var(--white);
    color: var(--pr-color);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(2, 77, 134, 0.1);
    background: var(--sec-color);
}

.footer-logo {
    height: 120px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--pr-color);
    font-size: 2rem;
    margin: 0 12px;
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.footer p {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 2147483647 !important;
    transition: var(--transition);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateZ(0);
    -webkit-transform: scale(1.1) translateZ(0);
    background-color: #20C05C;
}

/* Animations */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Reveal Classes for JS Scroll Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 2.8rem; }
    .hero-content, .about-grid, .row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-image { order: -1; }
    .absolute-stat { left: 0; bottom: -20px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .mobile-menu-btn { display: block; }
    
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { width: 100%; }
    .form-group.row-group { flex-direction: column; }
    
    .whatsapp-float {
        bottom: 5vh !important; 
        right: 5vw !important;
        width: 60px !important; 
        height: 60px !important;
        font-size: 2.2rem !important;
        position: fixed !important;
    }

    /* Mobile specific adjustments to avoid overflows */
    .logo img {
        height: 50px;
    }
    
    .footer-logo {
        height: auto;
        max-height: 80px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .formatos-image {
        display: block !important;
        position: relative !important;
    }
    
    .formatos-image .absolute-stat {
        position: absolute !important;
        bottom: 5% !important;
        right: 5% !important;
        left: auto !important;
        margin: 0 !important;
        width: 55% !important;
        padding: 0.8rem 1rem !important;
        transform: none !important;
    }
    
    .formatos-image .absolute-stat i {
        font-size: 1.8rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .formatos-image .absolute-stat h3 {
        font-size: 1.2rem !important;
    }
    
    .formatos-image .absolute-stat p {
        font-size: 0.7rem !important;
    }
    
    .overlay-badge {
        width: 140px; height: 140px;
        bottom: -10px; right: 0px;
    }
    
    .overlay-badge .years {
        font-size: 2.2rem;
    }
    
    .overlay-badge .text {
        font-size: 0.65rem;
    }
}
