/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    
    /* Typography */
    --body-font: 'Inter', sans-serif;
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    
    /* Font Weight */
    --font-light: 300;
    --font-normal: 400;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Spacing */
    --header-height: 5rem;
    --section-padding: 5rem 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Responsive Typography */
@media screen and (max-width: 968px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.875rem;
        --h3-font-size: 1.25rem;
    }
}

/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== REUSABLE CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section__description {
    font-size: var(--normal-font-size);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semibold);
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.button-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition);
}

.header.scroll-header {
    box-shadow: var(--shadow-md);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-extrabold);
    font-size: 1.25rem;
}

.logo-text {
    color: var(--gray-900);
}

.logo-tm {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-semibold);
    position: relative;
    transition: var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 3rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__content {
    z-index: 1;
}

.hero__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: var(--h1-font-size);
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero__title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 6s ease-in-out infinite;
}

.hero__illustration {
    position: relative;
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: var(--small-font-size);
    transition: var(--transition);
}

.hero__scroll-button:hover {
    color: var(--primary-color);
}

.hero__scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--white);
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-200);
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service__card--featured {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.service__card--featured .service__title,
.service__card--featured .service__description,
.service__card--featured .service__features {
    color: var(--white);
}

.service__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semibold);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service__card--featured .service__icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service__icon svg {
    width: 32px;
    height: 32px;
}

.service__title {
    font-size: var(--h3-font-size);
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service__description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service__features {
    list-style: none;
}

.service__features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: var(--small-font-size);
}

.service__card--featured .service__features li {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--gray-50);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__shape {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(80px);
}

.about__content-img {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.about__data {
    z-index: 1;
}

.about__description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about__info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.about__info-item {
    text-align: center;
}

.about__info-number {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-extrabold);
}

.about__info-text {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about__feature-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--small-font-size);
    flex-shrink: 0;
}

.about__feature p {
    color: var(--text-light);
    font-size: var(--small-font-size);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--white);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__info-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 1rem;
    transition: var(--transition);
}

.contact__info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact__info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__info-icon svg {
    width: 24px;
    height: 24px;
}

.contact__info-title {
    font-size: var(--normal-font-size);
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact__info-text {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact__form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact__form-group--full {
    grid-column: 1 / -1;
}

.contact__form-label {
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
}

.contact__form-input {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: var(--normal-font-size);
    transition: var(--transition);
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form-button {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.contact__form-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: var(--small-font-size);
    margin-top: 1rem;
}

.contact__form-message.success {
    color: #10b981;
}

.contact__form-message.error {
    color: #ef4444;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-extrabold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font-size);
    line-height: 1.8;
}

.footer__title {
    font-size: var(--normal-font-size);
    margin-bottom: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font-size);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer__links li {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font-size);
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font-size);
}

/* ===== SCROLL UP ===== */
.scrollup {
    position: fixed;
    right: 2rem;
    bottom: -50%;
    background: var(--gradient-primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 10;
}

.scrollup svg {
    width: 24px;
    height: 24px;
}

.scrollup:hover {
    transform: translateY(-5px);
}

.show-scroll {
    bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 4rem 2rem;
        transition: var(--transition);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-color);
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        cursor: pointer;
    }

    .nav__toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-color);
        border-radius: 2px;
        transition: var(--transition);
    }

    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__image {
        order: -1;
    }

    .hero__illustration {
        max-width: 300px;
    }

    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
    }

    .about__image {
        order: -1;
    }
}

@media screen and (max-width: 576px) {
    .hero__buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .services__container {
        grid-template-columns: 1fr;
    }

    .about__info {
        grid-template-columns: 1fr;
    }

    .contact__form {
        grid-template-columns: 1fr;
    }

    .scrollup {
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .show-scroll {
        bottom: 1rem;
    }
}

