:root {
    /* Randomization: Midnight Navy / Electric Cyan / Soft Violet */
    --bg-color: #0B1120;
    --bg-secondary: #151E32;
    --primary-color: #00E5FF;
    /* Cyan */
    --accent-color: #7C4DFF;
    /* Violet */
    --text-color: #E2E8F0;
    --text-muted: #94A3B8;
    --white: #FFFFFF;
    --danger: #FF5252;
    --success: #69F0AE;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
}

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

.btn--primary:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

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

.btn--outline:hover {
    background-color: var(--white);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

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

.full-width {
    width: 100%;
}

/* Header */
.header {
    background-color: rgba(11, 17, 32, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.logo:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.logo:hover svg {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav__link {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

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

    .nav.active {
        right: 0;
    }

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

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

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

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

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    transition: var(--transition);
}

.badge:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.hero__title {
    font-size: 3rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.section__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.15);
    background: rgba(21, 30, 50, 0.8);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

/* Services Masonry */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.service-item.large {
    grid-column: span 1;
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        height: 350px;
    }
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.7) 50%, transparent 100%);
    text-align: center;
    transition: var(--transition);
}

.service-item:hover .service-content {
    background: linear-gradient(to top, rgba(11, 17, 32, 0.98) 0%, rgba(11, 17, 32, 0.85) 50%, transparent 100%);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 700;
    transition: var(--transition);
}

.service-item:hover .service-content h3 {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.service-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    transition: var(--transition);
}

.service-item:hover .service-content p {
    color: var(--text-color);
}

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

.review-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    font-style: italic;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.15);
    background: rgba(21, 30, 50, 0.8);
}

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

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.review-card:hover .review-avatar {
    border-color: var(--white);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    transform: scale(1.05);
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.author-name {
    font-style: normal;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.review-card p {
    margin: 0;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-color);
}

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

.author {
    margin-top: 20px;
    font-style: normal;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

/* Contact */
.contact__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact__info,
.contact__form {
    flex: 1;
    min-width: 300px;
}

.contact__form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__info i {
    color: var(--primary-color);
    width: 25px;
    margin-right: 10px;
    transition: var(--transition);
}

.contact__info p {
    transition: var(--transition);
}

.contact__info p:hover {
    color: var(--white);
    transform: translateX(5px);
}

.contact__info p:hover i {
    color: var(--white);
    transform: scale(1.2);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

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

.captcha-group span {
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
}

.form-message {
    margin-bottom: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

.error {
    color: var(--danger);
}

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

/* Footer */
.footer {
    background-color: #050a14;
    padding: 60px 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.logo--footer {
    margin-bottom: 15px;
}

.footer__col ul {
    list-style: none;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a {
    transition: var(--transition);
    display: inline-block;
}

.footer__col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer__col h4 {
    transition: var(--transition);
}

.footer__col:hover h4 {
    color: var(--primary-color);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--primary-color);
    padding: 15px 0;
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 8px;
    position: relative;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-content {
    padding: 30px;
    overflow-y: auto;
    color: var(--text-muted);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content h4 {
    color: var(--white);
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-content ul,
.modal-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 10px;
}

.modal-content ul li,
.modal-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal-content a:hover {
    color: var(--white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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