/* 
   CYBER HORIZON THEME
   - Primary: Electric Purple (#9d50bb)
   - Accent: Neon Cyan (#00f2fe)
   - Background: Deep Navy (#0a0e17)
*/

:root {
    --bg-color: #0a0e17;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #9d50bb;
    --primary-glow: rgba(157, 80, 187, 0.5);
    --secondary-color: #6e7ff3;
    --accent-color: #00f2fe;
    --accent-glow: rgba(0, 242, 254, 0.5);
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(10, 14, 23, 0.85);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-2xl: 1.5rem;
    --font-main: 'Montserrat', 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 {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.btn--outline:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

.btn--small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo__img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo__accent {
    color: var(--accent-color);
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--text-color);
}

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

.nav__link--cta {
    background: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
}

.nav__close {
    display: none;
}

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

.burger span {
    width: 30px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

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

/* Low-class blur placeholder */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 13, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, var(--bg-color));
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.hero__actions {
    display: flex;
    gap: 1.5rem;
}

.hero__disclaimer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* --- Hero Visuals --- */
.hero__visuals {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__main-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

.hero__circle-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero__image-sphere {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 50px var(--accent-glow);
    overflow: hidden;
}

.hero__image-sphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.3;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card__icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.floating-card__info {
    display: flex;
    flex-direction: column;
}

.floating-card__value {
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.floating-card__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.floating-card--1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card--2 {
    top: 50%;
    right: -15%;
    animation-delay: 1s;
}

.floating-card--3 {
    bottom: 10%;
    left: 0;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

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

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(157, 80, 187, 0.05);
}

.feature-card__icon {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.service-card {
    background: var(--card-bg);
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 40px 10px 40px 10px;
    /* Unique shape */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: var(--transition);
}

.service-card__icon svg {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-card__icon {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: rotate(10deg);
}

.service-card__content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.service-card__content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-card .btn {
    align-self: flex-start;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    position: relative;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card__text {
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.author-info strong {
    display: block;
    color: white;
}

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

/* --- Contacts --- */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: var(--radius-2xl);
}

.contacts__list {
    margin-top: 2rem;
}

.contacts__list li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.85rem;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: underline;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    color: #00ff88;
}

.form-status.error {
    color: #ff4444;
}

.hidden {
    display: none !important;
}

.btn__loader {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* --- Footer --- */
.footer {
    padding: 6rem 0 2rem;
    background: #05070a;
    border-top: 1px solid var(--glass-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer__logo {
    margin-bottom: 1.5rem;
    display: block;
}

.footer__col h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

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

.footer__links a:hover {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 15px;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-popup.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-2xl);
    position: relative;
    padding: 3rem;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.modal__content h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.modal__content p {
    margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .container {
        padding: 0 1rem;
    }

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

@media (max-width: 1024px) {

    /* Mobile Menu as Modal */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #0a0e17 !important;
        /* Solid background - no transparency */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100000;
        overflow-y: auto;
        /* Allow scrolling if menu is tall */
        padding: 60px 20px;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        /* Reduced gap */
        width: 100%;
    }

    .nav__item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav__link {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 1px;
        padding: 1rem;
        display: block;
        width: auto;
    }

    .nav__link--cta {
        width: 100%;
        max-width: 300px;
        font-size: 1.5rem;
        padding: 1.2rem 2rem;
        margin-top: 1rem;
    }

    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--glass-border);
        border-radius: 50%;
        color: white;
        cursor: pointer;
        z-index: 10000;
        transition: var(--transition);
    }

    .nav__close:active {
        transform: scale(0.9);
    }

    .burger {
        display: flex;
        z-index: 1002;
    }

    /* Layout Adjustments */
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 4rem;
    }

    .hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero__visuals {
        height: 350px;
    }

    .hero__main-visual {
        width: 250px;
        height: 250px;
    }

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --radius-2xl: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__actions .btn {
        width: 100%;
    }

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

    .contacts__wrapper {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__logo {
        margin-left: 0;
    }

    .floating-card {
        padding: 0.8rem 1rem;
    }

    .floating-card__icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .floating-card--2 {
        right: -5%;
    }
}

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

    .hero__visuals {
        height: 300px;
    }

    .hero__main-visual {
        width: 200px;
        height: 200px;
    }

    .logo {
        font-size: 1.2rem;
    }
}