/* ===== VARIABLES CSS ===== */
:root {
    --header-height: 4rem;
    
    /* Colors */
    --primary-color: #0066cc;
    --primary-color-alt: #0052a3;
    --secondary-color: #00a86b;
    --title-color: #1a1a2e;
    --text-color: #4a5568;
    --text-color-light: #718096;
    --body-color: #ffffff;
    --container-color: #f7fafc;
    --border-color: #e2e8f0;
    --white-color: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    /* Font and typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    
    /* Font weight */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    
    /* Margins */
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    
    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

@media screen and (max-width: 968px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
}

/* ===== BASE ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    outline: none;
    border: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 6rem 0 4rem;
}

.section__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-0-5);
    text-align: center;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: var(--mb-0-25);
}

.section__description {
    text-align: center;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto var(--mb-3);
}

/* ===== BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-medium);
    transition: var(--transition);
    cursor: pointer;
}

.button--primary {
    background: var(--gradient);
    color: var(--white-color);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.4);
}

.button--outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.button--outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    z-index: var(--z-fixed);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    font-size: var(--h3-font-size);
}

.nav__logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none !important;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--title-color);
}

/* ===== HOME ===== */
.home {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

.home__title {
    font-size: var(--biggest-font-size);
    line-height: 1.2;
    margin-bottom: var(--mb-1);
}

.home__title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home__description {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    margin-bottom: var(--mb-2);
    line-height: 1.8;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--mb-3);
    flex-wrap: wrap;
}

.home__info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.home__info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home__info-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.home__info-item h3 {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

.home__info-item p {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.home__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.home__blob {
    width: 400px;
    height: 400px;
    background: var(--gradient);
    border-radius: 50% 40% 60% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blob-animation 8s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
}

.home__blob img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50% 40% 60% 40%;
}

@keyframes blob-animation {
    0%, 100% {
        border-radius: 50% 40% 60% 40%;
    }
    25% {
        border-radius: 40% 60% 40% 50%;
    }
    50% {
        border-radius: 60% 40% 50% 40%;
    }
    75% {
        border-radius: 40% 50% 40% 60%;
    }
}

/* ===== ABOUT ===== */
.about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.about__experience {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.about__experience h3 {
    font-size: 3rem;
    color: var(--white-color);
    margin-bottom: 0.25rem;
}

.about__experience p {
    font-size: var(--small-font-size);
    line-height: 1.4;
}

.about__description {
    margin-bottom: var(--mb-2);
    line-height: 1.8;
}

.about__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: var(--mb-2);
}

.about__details-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about__details-item i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* ===== SERVICES ===== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-3);
}

.services__card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.services__card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
}

.services__card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 107, 0.1));
    padding: 1.5rem;
    border-radius: 50%;
}

.services__card h3 {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.services__card p {
    color: var(--text-color-light);
    line-height: 1.8;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--container-color);
}

.testimonials__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-3);
}

.testimonials__card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: var(--transition);
}

.testimonials__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonials__quote {
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonials__quote i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonials__description {
    margin-bottom: var(--mb-2);
    line-height: 1.8;
    font-style: italic;
}

.testimonials__info h3 {
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.testimonials__info span {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.testimonials__rating {
    margin-top: var(--mb-1);
    color: #ffc107;
}

.testimonials__rating i {
    margin-right: 0.25rem;
}

/* ===== CONTACT ===== */
.contact__container {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: var(--mb-3);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__card {
    background: var(--container-color);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.contact__card:hover {
    background: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact__card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

.contact__card h3 {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

.contact__card p {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.contact__form {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact__form-group {
    margin-bottom: var(--mb-1-5);
}

.contact__input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: var(--normal-font-size);
    transition: var(--transition);
}

.contact__input:focus {
    border-color: var(--primary-color);
}

.contact__textarea {
    resize: vertical;
    min-height: 150px;
}

.contact__form .button {
    width: 100%;
    justify-content: center;
}

.contact__map {
    margin-top: var(--mb-3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--title-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--mb-3);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--white-color);
    margin-bottom: var(--mb-1);
}

.footer__logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--mb-1-5);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    color: var(--white-color);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__link:hover {
    color: var(--white-color);
    padding-left: 0.5rem;
}

.footer__link i {
    color: var(--primary-color);
}

.footer__copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font-size);
}

/* ===== SCROLL TOP ===== */
.scrolltop {
    position: fixed;
    right: 2rem;
    bottom: -20%;
    background: var(--gradient);
    padding: 0.75rem;
    border-radius: 10px;
    z-index: var(--z-tooltip);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.scrolltop:hover {
    transform: translateY(-5px);
}

.scrolltop i {
    color: var(--white-color);
    font-size: 1.25rem;
}

.show-scroll {
    bottom: 3rem;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: var(--white-color);
        padding: 6rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: var(--z-fixed);
    }
    
    .nav__list {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .nav__link {
        font-size: var(--h3-font-size);
    }
    
    .nav__toggle,
    .nav__close {
        display: block !important;
    }
    
    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .show-menu {
        right: 0;
    }
    
    .home__container,
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .home__image {
        order: -1;
    }
    
    .home__blob {
        width: 300px;
        height: 300px;
    }
    
    .home__buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 4rem 0 2rem;
    }
    
    .home__blob {
        width: 250px;
        height: 250px;
    }
    
    .about__details {
        grid-template-columns: 1fr;
    }
    
    .services__container,
    .testimonials__container {
        grid-template-columns: 1fr;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .scrolltop {
        right: 1rem;
    }
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--container-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-alt);
}
