/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* ===== REUSABLE CLASSES ===== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

.section__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.button--primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.button--ghost {
    background: transparent;
    color: #10B981;
    border: 2px solid #10B981;
}

.button--ghost:hover {
    background: #10B981;
    color: #fff;
}

.button--full {
    width: 100%;
}

.highlight {
    color: #10B981;
    position: relative;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

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

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo-img {
    height: 11rem;
    width: auto;
}

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

.nav__link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #10B981;
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active-link {
    color: #10B981;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e293b;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 60vh;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 0;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    min-height: 60vh;
}

.hero__content {
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    transform: translateY(25%);
    position: relative;
    z-index: 10;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero__image {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: #fff;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about__img-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about__img-wrapper:hover .about__img {
    transform: scale(1.05);
}

.about__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.about__img-placeholder svg {
    width: 50%;
    height: 50%;
}

.about__description {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 0.5rem;
}

.stat__text {
    color: #64748b;
    font-size: 0.875rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

.services__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service__card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service__icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service__icon svg {
    width: 2rem;
    height: 2rem;
    color: #fff;
}

.service__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service__description {
    color: #64748b;
    line-height: 1.7;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background-color: #fff;
}

.portfolio__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio__card {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio__card:hover .portfolio__img {
    transform: scale(1.1);
}

.portfolio__data {
    padding: 1.5rem;
}

.portfolio__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.portfolio__description {
    color: #64748b;
    font-size: 0.875rem;
}

/* ===== HOW WE WORK SECTION ===== */
.howwework {
    background: linear-gradient(to bottom, #f8fafc 0%, #fff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 10rem;
}

.howwework__content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 0;
}

.timeline {
    position: absolute;
    left: 50%;
    top: 80px;
    height: calc(100% - 160px);
    width: 2px;
    transform: translateX(-50%);
    pointer-events: none;
}

.timeline__line {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e2e8f0;
}

.timeline__progress {
    position: absolute;
    width: 100%;
    height: 0%;
    top: 0;
    background: linear-gradient(to bottom, #10B981 0%, #059669 100%);
    transition: height 0.3s ease-out;
    transform-origin: top;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 6rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step--1 {
    grid-template-areas: "icon dot content";
}

.step--2 {
    grid-template-areas: "content dot icon";
}

.step--3 {
    grid-template-areas: "icon dot content";
}

.timeline__dot {
    grid-area: dot;
    width: 20px;
    height: 20px;
    background-color: #10B981;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline__dot.active {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3);
}

.step__icon {
    grid-area: icon;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step__icon svg {
    width: 80px;
    height: 80px;
    color: #1e293b;
    stroke-width: 1.5;
}

.step__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step__content {
    grid-area: content;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step__content:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.step__content--left {
    text-align: right;
}

.step__content--right {
    text-align: left;
}

.step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.step__description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

.testimonials__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial__card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial__rating {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial__text {
    color: #64748b;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.testimonial__position {
    font-size: 0.875rem;
    color: #64748b;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: #fff;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact__subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact__description {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

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

.contact__icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.contact__detail h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.contact__detail p {
    color: #64748b;
    font-size: 0.875rem;
}

/* ===== CONTACT FORM ===== */
.contact__form {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
}

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

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #1e293b;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: #10B981;
}

/* Validation states */
.form__input.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form__input.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form__icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
}

.form__input.valid ~ .form__icon,
.form__input.invalid ~ .form__icon {
    opacity: 1;
}

.form__error {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-left: 0.25rem;
    min-height: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.form__input.invalid ~ .form__error:not(:empty) {
    height: auto;
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
}

.form__counter {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    pointer-events: none;
}

.form__label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: #fff;
    padding: 0 0.25rem;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: #10B981;
}

.form__input.valid ~ .form__label {
    color: #10b981;
}

.form__input.invalid ~ .form__label {
    color: #ef4444;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
    padding-bottom: 2rem;
}

.form__message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form__message--success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form__message--error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Button disabled state */
.button:disabled,
.button--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button:disabled:hover,
.button--primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

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

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo-img {
    height: 150px;
    width: auto;
    border-radius: 0.2rem;
}

.footer__description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

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

.footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #334155;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background-color: #10B981;
    color: #fff;
    transform: translateY(-3px);
}

.footer__social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #10B981;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
}

.footer__copy {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.scroll-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 98;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 2rem;
    height: 2rem;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .section__title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .services__content,
    .portfolio__content,
    .testimonials__content {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__content,
    .contact__content {
        gap: 2rem;
    }

    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__close,
    .nav__toggle {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .hero {
        margin-bottom: 0;
        min-height: 50vh;
    }

    .hero__container {
        min-height: 50vh;
    }

    .hero__content {
        transform: translateY(30%);
        margin-bottom: -30%;
        padding: 2rem;
    }

    .howwework {
        padding-top: 6rem;
    }

    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .services__content,
    .portfolio__content,
    .testimonials__content {
        grid-template-columns: 1fr;
    }

    .howwework__content {
        padding: 2rem 0;
    }

    .step {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "icon"
            "dot"
            "content" !important;
        gap: 1.5rem;
        margin-bottom: 4rem;
        text-align: center;
    }

    .timeline {
        left: 2rem;
    }

    .timeline__dot {
        justify-self: start;
        margin-left: -0.625rem;
    }

    .step__content--left,
    .step__content--right {
        text-align: left;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

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

@media screen and (max-width: 480px) {
    .section__title {
        font-size: 1.75rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
        width: 3rem;
        height: 3rem;
    }

    .whatsapp-float svg {
        width: 1.75rem;
        height: 1.75rem;
    }
}
