:root {
    /* Color Palette: Tech/Space Theme */
    /* Primary: Electric Cyan */
    --color-primary: #00d4ff;
    /* Secondary: Deep Violet/Purple */
    --color-secondary: #7f00ff;
    /* Backgrounds */
    --bg-dark: #0b0e14;
    --bg-card: #151a23;
    --bg-overlay: rgba(11, 14, 20, 0.85);
    /* Text */
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    /* Accents */
    --color-success: #00ff88;
    --color-error: #ff4757;
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

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

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

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

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

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

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

/* Section Titles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--color-primary), #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title.text-center {
    display: block;
    text-align: center;
}

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

/* Header */
.header {
    height: var(--header-height);
    background-color: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.logo__icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    /* Uses currentColor in SVG */
}

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

.nav__link {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

.nav__link:hover::after {
    width: 100%;
}

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

.burger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-menu__link {
    font-size: 1.2rem;
    font-weight: 700;
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(11, 14, 20, 0.7) 100%);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero__content {
    max-width: 800px;
}

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

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

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

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

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

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
    border-color: var(--color-primary);
}

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

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

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

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: scale(1.03);
}

.service-card__image {
    height: 180px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-card__image img {
    transform: scale(1.1);
}

.service-card__content {
    padding: 20px;
}

.service-card__content h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.service-card__content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.review-card {
    background: linear-gradient(145deg, #1a202c, #11151d);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__info h4 {
    font-size: 1.1rem;
}

.review-card__info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-card__text {
    font-style: italic;
    color: #ddd;
    margin-bottom: 15px;
}

.review-card__stars {
    color: #ffd700;
    letter-spacing: 2px;
}

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

.contacts__list {
    margin-top: 30px;
}

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

.contacts__list li i {
    color: var(--color-primary);
    font-size: 1.3rem;
}

.contact-form {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.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 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

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

.form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.form-message.error {
    color: var(--color-error);
}

.form-message.success {
    color: var(--color-success);
}

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

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

.footer__desc {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__col h4 {
    margin-bottom: 20px;
    color: #fff;
}

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

.footer__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer__contacts li {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--bg-card);
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal__header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.modal__close {
    background: none;
    color: #aaa;
    font-size: 1.5rem;
    padding: 0;
    line-height: 1;
}

.modal__close:hover {
    color: #fff;
}

.modal__body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #ddd;
}

.modal__body ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.modal__body li {
    margin-bottom: 5px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 350px;
    z-index: 1500;
    border: 1px solid var(--color-primary);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.cookie-popup a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

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

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

    .contacts__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

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

    .header__container {
        padding: 0 15px;
    }
}