:root {
    /* Randomization Palette: British Neo-Tech */
    --primary-color: #0B1E3D;
    /* Deep Royal Navy */
    --secondary-color: #1E3A5F;
    /* Lighter Navy */
    --accent-color: #39FF14;
    /* Neon Lime/Green - High contrast */
    --text-color: #E0E6ED;
    --text-dark: #1A1A1A;
    --bg-dark: #050A14;
    --bg-light: #0F2040;
    --white: #FFFFFF;
    --error: #FF4D4D;

    --font-main: 'Manrope', sans-serif;
    --transition: all 0.3s ease;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    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;
}

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

/* Header */
.header {
    background-color: rgba(11, 30, 61, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
}

.logo img {
    display: block;
}

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger__line {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

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

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

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        font-size: 1.5rem;
    }

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

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

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

    /* Using burger to toggle */
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.9) 0%, rgba(11, 30, 61, 0.7) 100%);
}

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

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__actions {
    margin-top: 20px;
}

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

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

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

.btn--primary:hover {
    background: #32CC12;
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

.section__title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--white);
    text-align: center;
}

.section__subtitle {
    margin-bottom: 50px;
    color: #aaa;
    text-align: center;
}

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

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius);
    border-top: 3px solid var(--accent-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Masonry Services */
.masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.masonry__item {
    flex: 1 1 300px;
    background: var(--primary-color);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.masonry__content {
    padding: 20px;
}

.masonry__content--text-only {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--secondary-color);
}

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

.review-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
}

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

.review-card__avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden;
}

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

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
}

.contact-list li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form__group {
    margin-bottom: 15px;
}

.form__group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form__group input {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #444;
    background: var(--bg-dark);
    color: var(--white);
}

.form__group small {
    font-size: 0.75rem;
    color: #888;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 20px;
    top: 12px;
}

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

.hidden {
    display: none;
}

.form-success {
    text-align: center;
    color: var(--accent-color);
    margin-top: 15px;
}

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

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

/* Footer */
.footer {
    background: #020408;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
    margin-top: 50px;
}

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

.footer__col h4 {
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer__col button {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.footer__col button:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: calc(100% - 60px);
    max-width: 380px;
    background: rgba(15, 32, 64, 0.95);
    color: var(--text-color);
    padding: 25px;
    z-index: 2000;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

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

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-btns {
    display: flex;
    gap: 12px;
}

.cookie-btns .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-light);
    color: var(--text-color);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 30px;
    border-radius: var(--radius);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: var(--transition);
    border: 1px solid var(--secondary-color);
}

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

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

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

.modal__content h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

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