/* THEME: Dark Neon Cyber
   FONT: Outfit
*/

:root {
    /* Color Palette */
    --bg-body: #0B1120;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;

    --primary: #7C3AED;
    /* Neon Purple */
    --primary-hover: #6D28D9;
    --secondary: #2DD4BF;
    /* Bright Teal */

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    --success: #10B981;
    --error: #EF4444;

    /* Spacing & UI */
    --radius-sm: 0.5rem;
    --radius-xl: 1.5rem;
    /* 2xl look */
    --container-width: 1200px;
    --transition: all 0.3s ease;

    /* Font */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.hidden {
    display: none !important;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--secondary);
}

h3 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.btn--text {
    background: transparent;
    color: var(--text-main);
    margin-left: 1rem;
}

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

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

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo__icon {
    flex-shrink: 0;
    display: block;
    transition: var(--transition);
}

.logo:hover .logo__icon {
    transform: scale(1.05);
}

.logo__text {
    display: inline-block;
}

.logo__dot {
    color: var(--secondary);
}

.footer__logo {
    font-size: 1.25rem;
}

/* Nav */
.nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

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

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: var(--transition);
}

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

.burger__line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

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

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: rotate(-45deg);
}

/* Mobile Menu Logic */
@media (max-width: 1024px) {
    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-body);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav.active {
        right: 0;
    }

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

/* Sections General */
.section {
    padding: 4rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-inline: auto;
}

.section__desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
    }
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--secondary);
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.hero__subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero__visual {
    position: relative;
}

.hero__image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero__card-glass {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Services Grid (Masonry-ish) */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
    }

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

    .service-card--wide {
        grid-column: span 3;
    }
}

.service-card {
    background: var(--bg-card);
    padding: 0;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: scale(1.02);
    border-color: rgba(124, 58, 237, 0.3);
}

.service-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card--large .service-card__image {
    height: 300px;
}

.service-card h3,
.service-card p,
.service-card .link-arrow {
    padding: 0 2rem;
}

.service-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-card .link-arrow {
    margin-bottom: 2rem;
}

.link-arrow {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Reviews */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--radius-sm);
}

.review-author {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.stars {
    color: #F59E0B;
    font-size: 0.8rem;
}

/* Contact Form */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.contact__list {
    list-style: none;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact__list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--secondary);
    opacity: 0.9;
}

.contact__form-wrapper {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form__group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form__input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    position: absolute;
    bottom: -1.2rem;
    left: 0;
}

.checkbox-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.link-btn {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

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

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

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

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

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

.footer__col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 0.8rem;
}

.footer__col a,
.footer__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

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

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

/* Modals & Popups */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 400px;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    border: 1px solid var(--secondary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideUp 0.5s ease-out;
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-content .link-btn {
    color: var(--secondary);
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.modal-title {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.75rem;
}

.modal-body {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body ul,
.modal-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.modal-body strong {
    color: var(--text-main);
    font-weight: 600;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}