/* --- Variables & Reset --- */
:root {
    --bg-dark: #0b1120;
    /* Deepest Blue */
    --bg-card: #151e32;
    --primary: #00f0ff;
    /* Neon Cyan */
    --secondary: #7000ff;
    /* Electric Purple */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --font-main: 'Chakra Petch', sans-serif;
    --transition: all 0.3s ease;
    --nav-height: 70px;
}

* {
    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-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;
}

/* --- UI Components --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn--primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn--primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

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

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

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

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

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition);
}

.link-btn:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

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

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

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.burger:hover span {
    background: var(--primary);
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
}

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

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

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        z-index: 1001;
        /* Above header */
    }

    .nav.active {
        right: 0;
    }

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

    .nav__close {
        display: block;
    }

    /* Show close button on mobile */
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.8) 0%, rgba(11, 17, 32, 0.95) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

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

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

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

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

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Services Masonry */
.services-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

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

.service-content {
    padding: 20px;
}

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

.service-content h3:hover {
    color: var(--white);
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

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

.review-card {
    background: linear-gradient(135deg, var(--bg-card), #1a2542);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Contact Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

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

.contact-info {
    padding-top: 40px;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    transition: var(--transition);
}

.contact-list li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

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

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 25px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 4px;
    font-family: inherit;
    margin-top: 20px;
    transition: var(--transition);
}

.form-group input:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.form-policy {
    font-size: 0.8rem;
    margin-top: 15px;
    text-align: center;
    color: var(--text-muted);
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.captcha-group input {
    width: auto;
    flex: 1;
    margin-top: 0;
}

.captcha-question {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

.hidden {
    display: none;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

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

/* --- Footer --- */
.footer {
    background: #05080f;
    padding: 60px 0 20px;
    margin-top: 80px;
    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;
}

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

.footer__col .logo--small {
    display: block;
    margin-bottom: 15px;
}

.footer__col .logo--small .logo__text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.footer__col .logo--small:hover .logo__text {
    color: var(--white);
    text-decoration: none;
}

.footer__col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
}

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

.footer__col a,
.footer__col p,
.footer__col .link-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer__col a:hover,
.footer__col .link-btn:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer__col .link-btn {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

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

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

.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(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

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

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

.modal-content p,
.modal-content ul,
.modal-content ol {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-content ul {
    padding-left: 20px;
    list-style: disc;
}

.modal-content ol {
    padding-left: 20px;
    list-style: decimal;
}

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

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