:root {
    --primary-color: #00F0FF;
    --secondary-color: #7000FF;
    --bg-color: #0B0C15;
    --bg-card: #151621;
    --text-color: #E0E1EA;
    --text-muted: #9fa0b5;
    --white: #ffffff;
    --font-main: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    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;
}

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

ul {
    list-style: none;
}

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

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 10px auto 0;
}

.section-title--left {
    text-align: left;
}

.section-title--left::after {
    margin: 10px 0 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

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

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 12, 21, 0.9);
    backdrop-filter: blur(10px);
    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;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav__list {
    display: none;
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1001;
}

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

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__close {
    display: none;
    /* Hidden because we use animated burger */
}

.mobile-menu__list li {
    margin: 20px 0;
    text-align: center;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
}

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

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 21, 0.7);
    background: linear-gradient(180deg, rgba(11, 12, 21, 0.8) 0%, rgba(11, 12, 21, 0.6) 50%, var(--bg-color) 100%);
}

.hero__container {
    position: relative;
    z-index: 2;
}

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

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

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

.feature-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: -webkit-linear-gradient(var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    height: 250px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--primary-color);
}

.service-item__content {
    padding: 20px;
    z-index: 2;
}

.service-item__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

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

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

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

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

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

.review-card__name {
    font-size: 1.1rem;
    color: var(--white);
}

.review-card__role {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.review-card__text {
    font-style: italic;
    color: var(--text-muted);
}

/* Contacts */
.contacts__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

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

.contacts__list i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.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: 5px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.form-message.error {
    color: #ff4757;
}

.form-message.success {
    color: #2ed573;
}

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

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile default */
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo .logo__text {
    font-size: 1.2rem;
}

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

.footer__title {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer__links a,
.footer__links button {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

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

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

/* Modals */
.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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

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

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

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--white);
}

.modal__content {
    color: var(--text-color);
}

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

.modal__content p {
    margin-bottom: 15px;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    z-index: 1500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    max-width: 500px;
    margin: 0 auto;
    /* Center on mobile if full width */
}

@media (min-width: 768px) {
    .cookie-popup {
        margin: 0;
        right: auto;
    }
}

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

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

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

/* Media Queries */
@media (min-width: 768px) {
    .nav__list {
        display: flex;
        gap: 30px;
    }

    .nav__link {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-color);
        text-transform: uppercase;
        position: relative;
    }

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

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

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

    .burger {
        display: none;
    }

    .hero__title {
        font-size: 4rem;
    }

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

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

    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}