:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #22c55e;
    --font-main: 'Outfit', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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;
    line-height: 1.2;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

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

.btn--outline:hover {
    background: rgba(6, 182, 212, 0.1);
}

.btn--full {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* 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.1);
}

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

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

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

.nav__link {
    color: var(--text-muted);
}

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

.nav__link--cta {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Menu */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: var(--transition);
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    bottom: 0;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

@media (max-width: 1024px) {
    .burger {
        display: block;
    }

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

    .nav.active {
        right: 0;
    }

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), var(--bg-dark));
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, white, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section__subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--bg-card);
    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);
}

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

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

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
}

.service-item--wide {
    grid-column: 1 / -1;
}

.service-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-item:hover .service-item__img {
    transform: scale(1.05);
}

.service-item__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, black, transparent);
}

/* Testimonials */
.testimonials__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.testimonial-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.stars {
    color: #fbbf24;
}

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

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

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

.contact__list {
    margin-top: 30px;
}

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

.contact__list i {
    color: var(--primary);
    width: 24px;
}

.contact__form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

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

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

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

.form-disclaimer a {
    color: var(--secondary);
    text-decoration: underline;
}

.form-success {
    display: none;
    text-align: center;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-success i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: #0b1120;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.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: white;
}

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

.footer__col a {
    color: var(--text-muted);
}

.footer__col a:hover {
    color: var(--secondary);
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal {
    display: none;
    /* Controlled by JS */
    background: var(--bg-card);
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active {
    display: block;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    /* Hidden initially */
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: var(--border-radius);
    z-index: 1500;
    max-width: 500px;
    transition: bottom 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.cookie-popup.show {
    bottom: 20px;
}

.cookie-popup__content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-popup__content a {
    color: var(--secondary);
    text-decoration: underline;
}

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