/* Variables & Reset */
:root {
    --primary-color: #6366f1;
    /* Indigo */
    --primary-dark: #4338ca;
    --accent-color: #10b981;
    /* Emerald */
    --bg-color: #0f172a;
    /* Slate 900 */
    --card-bg: #1e293b;
    /* Slate 800 */
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav__list {
    display: flex;
    gap: 30px;
}

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

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

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        padding: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        font-size: 1.5rem;
    }

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

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

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

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: no-repeat center/cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: white;
}

.btn--outline:hover {
    border-color: white;
}

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

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

/* Features Grid */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Services Masonry/Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-item {
    height: 300px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    transition: var(--transition);
}

.service-item:hover::before {
    background: rgba(99, 102, 241, 0.8);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.service-content h3 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.service-content p {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-banner {
    text-align: center;
    background: linear-gradient(90deg, #1e293b, #0f172a);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    margin-top: 40px;
}

.cta-banner p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.quote {
    font-style: italic;
    margin-bottom: 10px;
    color: var(--text-muted);
}

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

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

/* Contact Form */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

.contact__list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: var(--card-bg);
    padding: 0 5px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.captcha-question {
    font-weight: bold;
    font-size: 1.2rem;
}

.captcha-group input {
    width: 80px;
    padding: 10px;
    border-radius: 8px;
    border: none;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

/* Footer */
.footer {
    background: #020617;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 40px;
    border-radius: var(--border-radius);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    z-index: 1500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    transform: translateY(150%);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

@media(max-width: 500px) {
    .cookie-popup {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

.hidden {
    display: none;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}