:root {
    --primary: #00E5FF;
    --primary-hover: #00b8cc;
    --secondary: #7000FF;
    --bg-dark: #0B0B15;
    --bg-card: #151525;
    --text-main: #E0E0E0;
    --text-muted: #A0A0B0;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    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 {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

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

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

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

.btn--text {
    background: none;
    padding: 0;
    color: var(--primary);
    text-transform: none;
    font-weight: 600;
}

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 11, 21, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
}

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

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

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

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

.nav__close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

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

.burger span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

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

/* Fix for fixed header overlap if content needs it, but Hero usually wants to be behind header or full screen. 
   Let's keep it simple: Hero is full screen, header overlays it. */

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 11, 21, 0.9) 0%, rgba(11, 11, 21, 0.6) 100%);
}

.hero__container {
    position: relative;
    z-index: 2;
    padding-top: var(--header-height);
    /* Ensure content isn't hidden behind header */
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

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

/* Features Section */
.features {
    padding: 100px 0;
}

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

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

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

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

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

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

/* Services Section */
.services {
    padding: 100px 0;
    background: #0f0f1a;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--secondary);
}

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

.service-card__content {
    padding: 30px;
}

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

/* Reviews Section */
.reviews {
    padding: 100px 0;
}

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

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

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

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

.review-card__name {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

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

.review-card__text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
}

.review-card__rating {
    color: #FFD700;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #0B0B15 100%);
}

.contacts__container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contacts__info {
    flex: 1;
    min-width: 300px;
}

.contacts__list {
    margin-top: 30px;
}

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

.contacts__list i {
    color: var(--primary);
    margin-top: 5px;
}

.contacts__form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form__title {
    text-align: center;
    margin-bottom: 30px;
}

.form__group {
    margin-bottom: 20px;
}

.form__input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

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

.captcha-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.captcha-label {
    white-space: nowrap;
}

/* Footer */
.footer {
    background: #05050A;
    padding: 80px 0 20px;
    border-top: 1px solid var(--glass-border);
}

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

.footer__title {
    margin-bottom: 25px;
    color: var(--white);
}

.footer__menu li,
.footer__contacts li {
    margin-bottom: 15px;
}

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

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

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

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    border: 1px solid var(--glass-border);
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

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

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

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

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--bg-card);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal__content {
    transform: scale(1);
}

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

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

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

.modal__body p,
.modal__body li {
    margin-bottom: 10px;
    color: var(--text-main);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .header__container {
        padding: 0 20px;
    }

    .burger {
        display: flex;
        z-index: 1001;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .burger.active {
        opacity: 0;
        visibility: hidden;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 11, 21, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

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

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2.5rem;
        color: var(--primary);
    }
}

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

    .hero__title {
        font-size: 2.5rem;
    }

    .contacts__container {
        flex-direction: column;
    }

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