/* Modern Design System */
:root {
    --primary: #0f172a;
    /* Deep Navy */
    --primary-light: #1e293b;
    --accent: #2563eb;
    /* Vivid Blue */
    --accent-hover: #1d4ed8;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --white: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --radius: 0.75rem;
    --font-main: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-main);
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-action {
    background: var(--accent);
    color: white;
}

.btn-action:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: white;
    color: var(--accent);
}

.btn-white:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-white:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 2.5rem;
    /* Large gap */
    flex-wrap: wrap;
    /* Safety for very small screens if needed */
}

/* Social Icons */
.social-icon-hero {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.social-icon-hero:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.social-icon-footer {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.social-icon-footer:hover {
    background: var(--accent);
    transform: translateY(-3px);
}


/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.math-circle {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: absolute;
    animation: spin 30s linear infinite;
}

.math-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent);
}

.math-symbol {
    position: absolute;
    font-size: 4rem;
    font-family: serif;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.s2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
    font-size: 3rem;
}

.s3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
    font-size: 5rem;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Wave Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-white);
}

/* Stats Bar */
.stats {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    padding-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
}

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

.stat-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

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

.highlight-card {
    background: #eff6ff;
    border-color: #bfdbfe;
}

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

.image-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

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

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.check-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.check-list i {
    color: var(--accent);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-item i {
    color: var(--accent);
    width: 20px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Floating WhatsApp */
.fab-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: 0.3s;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
}

/* Social Floating Bubbles */
.social-bubbles {
    position: fixed;
    right: 2rem;
    bottom: calc(2rem + 60px + 1rem);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.bubble-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.bubble-link:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.bubble-link.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.bubble-link.youtube {
    background: #FF0000;
}

.bubble-link.tiktok {
    background: #010101;
}


/* Mobile Responsive & Stability */
@media (max-width: 768px) {

    /* Layout Adjustments */
    .container {
        padding: 0 1.25rem;
        /* Slightly reduced padding for more content space */
    }

    .hero-container,
    .about-container,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        /* Reduced gap from 4rem */
    }

    /* Hero Section Mobile */
    .hero {
        padding: 6rem 0 4rem;
        /* Reduced top padding */
        text-align: center;
        background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
        /* Ensure gradient reads well */
    }

    .hero h1 {
        font-size: 2.25rem;
        /* Smaller font for mobile to prevent overflow */
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        /* Stack buttons on very small screens */
        gap: 1.5rem;
        /* Increased from 1rem */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        /* Full width buttons for easier tapping */
        text-align: center;
        padding: 1rem;
        /* Larger touch target */
    }

    .hero-visual {
        display: none;
        /* Keep hidden to save space/performance */
    }

    .social-bubbles {
        right: 1.5rem;
        bottom: calc(1.5rem + 55px + 0.75rem);
        gap: 0.6rem;
        align-items: center;
    }

    .bubble-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Mobile Navigation */
    .mobile-toggle {
        display: block;
        padding: 0.5rem;
        /* Touch target */
    }

    .nav-menu {
        display: none;
        position: fixed;
        /* Fixed to cover screen */
        top: 0;
        right: -100%;
        /* Slide from right */
        width: 80%;
        /* Partial width */
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        left: auto;
        /* Override previous left:0 */
    }

    .nav-menu.active {
        display: flex;
        right: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
        text-align: left;
    }

    /* Adjust Mobile Button in Menu */
    .nav-menu .btn-action {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
        display: inline-block;
    }

    /* Card Adjustments */
    .card {
        padding: 1.5rem;
        /* More compact cards */
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Stats Mobile */
    .stats {
        margin-top: 0;
        /* Remove negative margin overlap on mobile */
        padding: 2rem 0;
        background: var(--bg-light);
        /* Distinct background for stats */
    }

    .stats-grid {
        box-shadow: none;
        /* Remove floating effect on mobile */
        background: transparent;
        gap: 2rem;
        padding: 0;
    }

    .stat-item {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    /* Footer Mobile */
    .footer-grid {
        gap: 3rem;
        text-align: center;
    }

    .footer-info,
    .footer-map {
        width: 100%;
    }

    .footer-info p {
        margin: 0 auto 1.5rem;
    }

    .contact-item {
        justify-content: center;
    }

    .social-footer {
        justify-content: center;
    }

    /* Floating Button Position */
    .fab-whatsapp {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        /* Slightly smaller but still accessible */
    }
}

/* Small phones improvement */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 1.25rem;
    }
}