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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #202124;
    overflow-x: hidden;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(170deg, #4b64a2 0%, #669dea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: #233db3;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 24px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn--primary {
    background: #4a7de8;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.btn--primary:hover {
    background: #5888f0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn--secondary {
    background: #f8f9fa;
    color: #4a7de8;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn--secondary:hover {
    background: #f3f3f4;
    border-color: #d2d3d4;
}

.btn--whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn--whatsapp:hover {
    background: #20ba58;
}

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

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);    
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid #e8eaed;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 1rem 0;
}

.nav__logo h2 {
    font-size: 1.8rem;
    color: #333;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: #202124;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav__link:hover {
    color: #4a7de8;
}

.nav__link--cta {
    background: #4a7de8;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-weight: 500;
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: #f0f4ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    align-items: center;
}
.hero__text, .hero__content{
    display: flex;
    flex-direction: column;
}
.hero__subtitle {
    background: #f3f3f4;
    /* color: #4a7de8; */
    color: #613f3f;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin: auto;
    margin-bottom: 2rem;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    color: #202124;
}

.hero__description {
    font-size: 1.1rem;
    color: #5f6368;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin: 3rem auto 3rem auto;
}

.hero__stats {    
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 500;
    color: #4a7de8;
}

.stat__label {
    font-size: 0.9rem;
    color: #5f6368;
}

/* Code Window Animation */
.hero__visual {
    position: relative;
    perspective: 1000px;
}

.code-window {
    background: #1e1e1e;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotateY(-15deg) rotateX(15deg);
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: rotateY(-10deg) rotateX(10deg);
}

.window-header {
    background: #323233;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.code-content {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.indent {
    padding-left: 2rem;
}

.keyword { color: #569cd6; }
.variable { color: #9cdcfe; }
.function { color: #dcdcaa; }
.property { color: #92c5f7; }
.string { color: #ce9178; }

/* Sections */
section {
    padding: 60px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__subtitle {
    color: #4a7de8;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section__title {
    font-size: 2.5rem;
    color: #202124;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.3px;
}

/* Benefits Section */
.benefits {
    background: #1a3a6b;
    color: white;
}

.benefits .section__subtitle {
    color: #a8d1ff;
}

.benefits .section__title {
    color: white;
}

.benefits .section__header p {
    color: rgba(255, 255, 255, 0.9);
}

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

.benefit {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.benefit:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefit__icon {
    width: 60px;
    height: 60px;
    background: rgba(168, 209, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #a8d1ff;
}

.benefit h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 500;
}

.benefit p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Section */
.services {
    background: #f0f4ff;
}

.services .section__subtitle {
    color: #4a7de8;
}

.services .section__title {
    color: #202124;
}

.services .section__header p {
    color: #5f6368;
}

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

.service {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #e8eaed;
}

.service:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service--featured {
    border: 1px solid #4a7de8;
    transform: none;
    background: white;
}

.service--featured:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a7de8;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service__icon {
    width: 50px;
    height: 50px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #4a7de8;
}

.service h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #202124;
    font-weight: 500;
}

.service p {
    color: #5f6368;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service__features {
    list-style: none;
    margin-bottom: 2rem;
}

.service__features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5f6368;
    font-size: 0.9rem;
}

.service__features i {
    color: #1e8e3e;
}

.service__price {
    font-size: 1.35rem;
    font-weight: 400;
    color: #4a7de8;
    text-align: center;
    margin-top: auto;
}

/* Portfolio Section */
.portfolio {
    background: #1a3a6b;
    color: white;
}

.portfolio .section__subtitle {
    color: #a8d1ff;
}

.portfolio .section__title {
    color: white;
}

.portfolio .section__header p {
    color: rgba(255, 255, 255, 0.9);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.portfolio__item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.portfolio__item:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio__image {
    position: relative;
    overflow: hidden;
}

.portfolio__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 125, 232, 0.9);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__item:hover .portfolio__image img {
    transform: scale(1.05);
}

.portfolio__content {
    text-align: center;
}

.portfolio__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #202124;
}

.portfolio__content p {
    margin-bottom: 1rem;
    opacity: 0.9;
    color: #5f6368;
    font-size: 0.95rem;
}

.portfolio__tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio__tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

/* Testimonials Section */
.testimonials {
    background: #f0f4ff;
}

.testimonials .section__subtitle {
    color: #4a7de8;
}

.testimonials .section__title {
    color: #202124;
}

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

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e8eaed;
}

.testimonial:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial__rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #5f6368;
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial__author strong {
    color: #202124;
    font-size: 1rem;
    font-weight: 500;
}

.testimonial__author span {
    color: #4a7de8;
    font-size: 0.85rem;
}

.testimonial__badge {
    display: inline-block;
    background: #e8f0fe;
    color: #4a7de8;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.service__note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* CTA Section */
.cta {
    background: #4a7de8;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Contact Section */
.contact {
    background: white;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact__info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #202124;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.contact__info p {
    font-size: 1rem;
    color: #5f6368;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__method i {
    width: 45px;
    height: 45px;
    background: #e8f0fe;
    color: #4a7de8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__method h4 {
    margin-bottom: 0.25rem;
    color: #202124;
    font-weight: 500;
}

.contact__method p {
    color: #5f6368;
    margin: 0;
    font-size: 0.95rem;
}

/* Form Styles */
.contact__form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eaed;
}

.contact__form h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: #202124;
    text-align: center;
    font-weight: 500;
}

.form__group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form__group input,
.form__group textarea,
.form__group select {
    width: 100%;
    padding: 0.75rem 0 0.75rem 0;
    border: none;
    border-bottom: 1px solid #dadce0;
    background: transparent;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    border-bottom-color: #4a7de8;
}

.form__group label {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #80868b;
    transition: all 0.2s ease;
    pointer-events: none;
    font-size: 0.95rem;
}

.form__group input:focus + label,
.form__group textarea:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:not(:placeholder-shown) + label {
    top: -1rem;
    font-size: 0.8rem;
    color: #4a7de8;
}

.form__group select {
    color: #202124;
}

.form__group select option {
    background: white;
}

/* Footer */
.footer {
    background: #202124;
    color: white;
    padding: 4rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer__brand p {
    color: #9aa0a6;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4a7de8;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
}

.footer__social a:hover {
    background: #5888f0;
}

.footer__links h4 {
    margin-bottom: 1rem;
    color: #9aa0a6;
    font-weight: 500;
    font-size: 0.95rem;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    color: #9aa0a6;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: #4a7de8;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #3c4043;
    color: #9aa0a6;
    font-size: 0.85rem;
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    color: #9aa0a6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: #4a7de8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        padding: 2rem 0;
    }
    
    .nav__menu.show {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .services__grid,
    .portfolio__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cta__buttons {
        flex-direction: column;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .service--featured {
        transform: none;
    }
    
    .service--featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn--large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title,
.hero__description {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__buttons {
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

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