/* CSS Variables - Indigo & Slate Palette */
:root {
    --primary-color: #4F46E5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --secondary-color: #0F172A;
    /* Slate 900 */
    --text-color: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */
    --white: #ffffff;
    --light-bg: #f8fafc;
    /* Slate 50 */
    --accent-color: #10B981;
    /* Emerald 500 */
    --font-main: 'Manrope', sans-serif;
    --transition: all 0.3s ease;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

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

.section--dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.section__title--white {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

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

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn--outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn--submit {
    background-color: var(--accent-color);
    color: var(--white);
    width: 100%;
    position: relative;
    border: none;
}

.btn--submit:hover {
    background-color: #059669;
}

.btn__spinner {
    display: none;
    margin-left: 8px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.nav__list {
    display: none;
}

.burger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav.active {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    padding: 80px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav.active .nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav__link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #020617;
    color: var(--white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero__content {
    max-width: 100%;
    text-align: center;
}

.hero__image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(79, 70, 229, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.hero__image img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    color: #a5b4fc;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #94a3b8;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

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

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card__text {
    color: var(--text-light);
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-card--large {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card--large .service-card__title {
    color: var(--white);
}

.service-card--large .service-card__text {
    color: #e0e7ff;
}

.service-card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

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

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.review-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__name {
    font-weight: 700;
    color: var(--secondary-color);
}

.review-card__stars {
    color: #FBBF24;
    font-size: 0.9rem;
}

.review-card__text {
    font-style: italic;
    color: var(--text-color);
}

/* Contact */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact__desc {
    margin-bottom: 30px;
    color: #94a3b8;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact__item i {
    color: var(--accent-color);
    width: 24px;
    text-align: center;
}

.contact__form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-group label {
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    background-color: #020617;
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a:hover {
    color: var(--primary-color);
}

.text-white {
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.cookie-popup.show {
    display: flex;
}

.cookie-popup__btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    display: none;
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

.modal.active {
    display: block;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-light);
}

.modal__content h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.modal__content p,
.modal__content ul {
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal__content ul {
    padding-left: 20px;
    list-style: disc;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .section__title {
        font-size: 2.5rem;
    }

    .hero__container {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .hero__content {
        flex: 1.2;
        text-align: left;
    }

    .hero__subtitle {
        margin-left: 0;
    }

    .hero__image {
        flex: 1;
        display: block;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .features__grid,
    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .service-card--large {
        grid-column: span 2;
    }

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

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .cookie-popup {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        left: 20px;
        transform: none;
    }
}

@media (min-width: 1024px) {
    .nav__list {
        display: flex;
        gap: 30px;
    }

    .burger {
        display: none;
    }

    .nav {
        display: block !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .nav__link:hover {
        color: var(--primary-color);
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}