/* --- General Styles & Variables --- */
:root {
    --brand-color: #073dff;
    --dark-bg: #000000;
    --text-light: #ffffff;
    --text-grey: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: filter 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

/* --- Typography --- */
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--text-grey);
    font-size: 1.1rem;
    line-height: 1.6;
}

.highlight {
    color: var(--brand-color);
}

.highlight-alt {
    background: linear-gradient(90deg, var(--brand-color), #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--brand-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: 1px solid var(--brand-color);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(7, 61, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* --- Header --- */
header {
    padding: 20px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 0 30px -15px rgba(7, 61, 255, 0.5);
    width: 100%;
}

nav .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-right: auto; /* THIS IS THE KEY DESKTOP FIX */
}

nav ul li a {
    color: var(--text-grey);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -10px;
    margin-bottom: 20px;
}

.reviews img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--dark-bg);
    margin-left: -15px;
}

.reviews img:first-child {
    margin-left: 0;
}

.reviews p {
    margin-left: 20px;
    font-size: 1rem;
}

.hero .subtitle {
    max-width: 600px;
    margin: 20px auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Clients Section --- */
.clients {
    margin-top: -100px;
    position: relative;
    z-index: 5;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.client-logos span,
.client-logos a {
    font-size: 1.2rem;
    color: var(--text-grey);
    opacity: 0.7;
    transition: opacity 0.3s;
    text-decoration: none;
}

.client-logos span:hover,
.client-logos a:hover {
    opacity: 1;
}

.client-logos i {
    margin-right: 10px;
    color: var(--brand-color);
}


/* --- Main Centered Sections --- */
.clients,
.work,
.services,
.pricing,
.faq,
.about,
footer {
    padding: 100px 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.work-header {
    margin-bottom: 50px;
}

.work-header p:first-child {
    font-weight: 600;
    color: var(--brand-color);
}

.work-header h2 {
    margin: 10px 0;
}

/* --- Pricing Section --- */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(7, 61, 255, 0.2);
}

.pricing-card.popular {
    border: 2px solid var(--brand-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(7, 61, 255, 0.3), 0 0 50px rgba(7, 61, 255, 0.3);
}

.popular-tag {
    background-color: var(--brand-color);
    color: var(--text-light);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 20px 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-grey);
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
}

.pricing-card ul li {
    margin-bottom: 15px;
    color: var(--text-grey);
}

.pricing-card ul li i {
    margin-right: 15px;
    color: var(--brand-color);
}

.pricing-card ul li .fa-check {
    font-size: 1.1rem;
    vertical-align: middle;
}

.fa-check {
    color: var(--brand-color);
}

.fa-times {
    color: #555;
}

.pricing-card .btn-secondary,
.pricing-card .btn-primary {
    width: 100%;
    text-align: center;
}

/* --- ALL OTHER STYLES --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
}

.video-item iframe {
    width: 100%;
    height: 100%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.image-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
    transition: transform 0.3s;
}

.image-item:hover {
    transform: scale(1.03);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    padding: 80px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(7, 61, 255, 0.2), transparent 70%);
    z-index: 0;
    opacity: 0.8;
}

.about h2,
.about a {
    position: relative;
    z-index: 1;
}

.about h2 {
    max-width: 900px;
    margin: 0 auto 30px;
}

.about .btn-primary i {
    margin-left: 10px;
    transition: transform 0.2s;
}

.about .btn-primary:hover i {
    transform: translateX(5px);
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.service-card {
    background: linear-gradient(135deg, rgba(7, 61, 255, 0.1), rgba(7, 61, 255, 0.05));
    border: 1px solid rgba(7, 61, 255, 0.3);
    padding: 40px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(7, 61, 255, 0.2), 0 0 25px rgba(7, 61, 255, 0.2);
    background: linear-gradient(135deg, rgba(7, 61, 255, 0.2), rgba(7, 61, 255, 0.1));
}

.service-card.full-width {
    grid-column: 1 / -1;
}

.service-card h3 {
    margin-bottom: 15px;
}

footer {
    border-top: 1px solid var(--border-color);
}

footer h2 {
    max-width: 700px;
    margin: 0 auto 30px;
}

footer .btn-primary {
    margin-bottom: 50px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.testimonials {
    padding: 100px 0;
    text-align: center;
    overflow-x: hidden;
}

.testimonial-scroll-container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    position: relative;
    padding: 0 5%;
    box-sizing: border-box;
}

.testimonial-scroll {
    display: flex;
    width: calc(400px * 8);
    animation: scroll 40s linear infinite;
}

.testimonial-item {
    width: 380px;
    height: auto;
    margin: 0 10px;
    flex-shrink: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.testimonial-scroll img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    object-fit: cover;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 4));
    }
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 25px 0;
}

.faq-question p {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.faq-question i {
    color: var(--brand-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 0;
    color: var(--text-grey);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 25px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-question i::before {
    content: "\f068";
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(-45deg, #0a0a14, #052a99, #0a0a14, #073dff);
    background-size: 400% 400%;
    margin: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 60px -20px rgba(7, 61, 255, 0.6);
    animation: fadeInScaleUp 0.4s ease-out forwards, moveGradient 15s ease infinite;
}

.modal-close-btn {
    color: var(--text-grey);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: var(--text-light);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.modal-content .contact-details {
    margin-top: 20px;
}

.modal-content .contact-details p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

@keyframes fadeInScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

a {
    text-decoration: none;
}

.video-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    object-position: center center;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 20px;
        gap: 15px;
    }
    nav .logo {
        order: 1;
    }
    nav > .btn-primary {
        order: 2;
    }
    nav ul {
        order: 3;
        width: 100%;
        margin-right: 0; /* Undo the desktop margin rule */
        margin-top: 8px;
        justify-content: space-around;
    }
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .video-grid,
    .image-grid {
        grid-template-columns: 1fr;
    }
    .about {
        padding: 40px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
}