:root {
    --black: #000;
    --dark-gray: #111;
    --light-gray: #ededed;
    --white: #fff;
    --purple: #a259ff;
    --purple-glow: rgba(162, 89, 255, .6);
    --purple-light: rgba(162, 89, 255, .2)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    background-color: var(--black);
    color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace
}

main {
    flex: 1
}

.terminal-prefix {
    margin-right: 8px
}

.purple-btn {
    color: var(--black)
}




.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, .8);
    backdrop-filter: blur(5px)
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center
}

.nav-link,
.nav-button {
    text-decoration: none;
    letter-spacing: 1px
}

.nav-link {
    position: relative;
    margin: 0 15px;
    font-size: .9rem;
    transition: color .3s;
    color: var(--light-gray);
}

.nav-link:hover,
.terminal-prefix {
    color: var(--purple)
}

.nav-button {
    color: var(--black);
    padding: 10px 20px;
    margin-left: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: var(--purple);
    border-radius: 5px;
    transition: .3s
}

.nav-button:hover {
    box-shadow: 0 0 15px var(--purple-glow);
    transform: translateY(-2px)
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0 20px;
    overflow: hidden;
    margin-bottom: 8rem
}

/* 1. Height Fix: Allow hero to grow */
#hero {
    height: auto;
    min-height: 100vh;
    padding-top: 120px; /* Space for navbar */
    padding-bottom: 60px; /* Bottom spacing */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* 2. Width Fix: Make content wider for video */
    max-width: 960px; 
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

/* 3. New Video Container Styles */
.hero-video-container {
    width: 100%;
    margin-top: 40px;
    border: 1px solid var(--purple-light);
    border-radius: 10px;
    overflow: hidden; /* Clips the Wistia player to the border radius */
    box-shadow: 0 0 25px var(--purple-glow);
    transition: all 0.3s ease;
}

.hero-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--purple-glow);
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: 2px
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 3px
}

.hero-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    /* 4. Button Margin Fix */
    margin-top: 30px; 
}

.hero-button {
    background-color: var(--purple);
    color: var(--black);
    padding: 15px 30px;
    border-radius: 5px;
    letter-spacing: 1px;
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
    margin: 0 auto
}

.hero-button:hover {
    box-shadow: 0 0 20px var(--purple-glow);
    transform: translateY(-3px)
}

.hero-button *,
.nav-button *,
.info-button * {
    color: var(--black) !important
}

.clients h3 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    letter-spacing: 2px
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto
}

.logo-placeholder {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--purple-light);
    color: var(--purple-light);
    font-size: .8rem
}

.about,
.services {
    padding: 100px 20px;
}

.about {
    max-width: 800px;
    margin: 0 auto;
}

.about h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0
}

.about-box {
    background-color: rgba(17, 17, 17, .7);
    border: 1px solid rgba(162, 89, 255, .1);
    border-radius: 10px;
    padding: 30px;
    transition: .5s;
    text-align: left
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(162, 89, 255, .1);
    border-color: var(--purple-light)
}

.about-box h4 {
    margin-bottom: 15px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--light-gray)
}

.about-box p {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--light-gray);
    margin-bottom: 0;
    flex: 1
}

.highlight-box {
    border-color: var(--purple);
    background-color: rgba(162, 89, 255, .05)
}

.highlight-box:hover {
    border-color: var(--purple);
    box-shadow: 0 10px 20px var(--purple-glow)
}

.benefit-list p {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px
}

.benefit-list p::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--purple);
    font-size: .8rem
}

.services {
    text-align: center;
}

.services h3 {
    font-size: 1.5rem;
    margin-bottom: 60px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px
}

.service-card {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    background-color: rgba(17, 17, 17, .7);
    border: 1px solid rgba(162, 89, 255, .1);
    border-radius: 10px;
    padding: 30px;
    transition: .5s;
    opacity: 1;
    max-height: 500px;
    overflow: hidden
}

.service-card.hidden-service {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: 0
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(162, 89, 255, .1);
    border-color: var(--purple-light)
}

.service-icon {
    font-size: 2.5rem;
    color: var(--purple);
    margin-bottom: 20px
}

.service-card h4 {
    margin-bottom: 15px;
    letter-spacing: 1px;
    display: flex;
    justify-content: center
}

.service-card p {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--light-gray)
}

.see-more-button {
    background-color: transparent;
    color: var(--purple);
    padding: 15px 30px;
    border-radius: 5px;
    letter-spacing: 1px;
    transition: .3s;
    display: inline-block;
    border: 1px solid var(--purple);
    cursor: pointer;
    font-size: .9rem;
    font-family: 'JetBrains Mono', monospace
}

.see-more-button:hover {
    background-color: var(--purple-light);
    box-shadow: 0 0 20px var(--purple-glow)
}

.info-box {
    padding: 80px 20px;
    text-align: center;
}

.info-container {
    background-color: var(--dark-gray);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(162, 89, 255, .1);
    max-width: 600px;
    margin: 0 auto
}

.info-container h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    color: var(--light-gray)
}

.info-button {
    background-color: var(--purple);
    color: var(--black);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: .3s;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem
}

.info-button:hover {
    box-shadow: 0 0 20px var(--purple-glow);
    transform: translateY(-2px)
}

.footer {
    background-color: var(--dark-gray);
    padding: 50px 20px 20px;
    position: static;
    width: 100%
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px
}

.footer-link {
    text-decoration: none;
    margin-left: 20px;
    font-size: .9rem;
    letter-spacing: 1px;
    transition: color .3s;
    color: var(--light-gray)
}

.footer-link:hover {
    color: var(--purple)
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    max-width: 1200px;
    margin: 0 auto;
    font-size: .8rem;
    display: flex;
    justify-content: center;
    color: var(--light-gray)
}

.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none
}

body:not(.language-selected) .language-modal {
    display: flex
}

.modal-content {
    background-color: var(--dark-gray);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--purple);
    max-width: 500px;
    width: 90%;
    text-align: center
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px
}

.language-options button {
    background-color: var(--dark-gray);
    border: 1px solid var(--purple);
    color: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: .3s;
    font-family: 'JetBrains Mono', monospace
}

.language-options button:hover {
    background-color: var(--purple-light);
    transform: translateY(-3px)
}

.language-options button img {
    width: 30px;
    height: auto
}

.visible {
    opacity: 1;
    transform: translateY(0)
}

@keyframes pulsate {
    0%,
    100% {
        opacity: 1
    }
    50% {
        opacity: .5
    }
}

.pulsate {
    animation: 2s infinite pulsate
}

@media (max-width:1200px) {
    .about-grid {
        flex-wrap: wrap;
        gap: 25px;
        max-width: 700px
    }
    .about-box {
        flex: 1 1 calc(50% - 12.5px);
        min-width: 300px;
        max-width: none;
        padding: 25px
    }
}

@media (max-width:1024px) {
    .service-card {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px)
    }
}

@media (max-width:768px) {
    /* THIS IS THE ORIGINAL, WORKING MOBILE CODE */
    .navbar {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
}
    .nav-right {
    margin-top: 15px;
    width: 100%;
    justify-content: space-between;
    }       
    /* END OF RESTORED CODE */
    
    .service-card {
        flex: 0 0 100%;
        max-width: 100%
    }
    .footer-content {
        flex-direction: column;
        text-align: center
    }
    .footer-link {
        margin: 10px
    }
    .info-container {
        padding: 30px 20px
    }
    .info-button {
        padding: 12px 20px;
        font-size: .8rem
    }
    .about-grid {
        flex-direction: column;
        gap: 20px;
        margin: 30px auto 0;
        max-width: 500px
    }
    .about-box {
        flex: none;
        min-width: none;
        padding: 25px 20px
    }
    .about-box h4 {
        font-size: .9rem
    }
    .about-box p {
        font-size: .85rem
    }
    .hero-description {
        margin-left: 20px;
        margin-bottom: 30px
    }
    /* 5. Responsive Button Margin Fix */
    .hero-button-container {
        margin-top: 30px;
    }
}

@media (max-width:480px) {
    .client-logos {
        gap: 20px
    }
    .logo-placeholder {
        width: 120px;
        height: 60px
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(162, 89, 255, .1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(162, 89, 255, .08) 0%, transparent 50%), radial-gradient(circle at 40% 80%, rgba(162, 89, 255, .06) 0%, transparent 50%);
    animation: breathingBackground 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1
}

@keyframes breathingBackground {
    0%,
    100% {
        opacity: .5;
        transform: scale(1)
    }
    50% {
        opacity: .8;
        transform: scale(1.1)
    }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--purple);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 15s linear infinite
}

.particle:nth-child(odd) {
    background: rgba(162, 89, 255, .6);
    animation-duration: 12s
}

.particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 18s
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) rotate(0deg)
    }
    10% {
        opacity: 1
    }
    90% {
        opacity: 1
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(100px) rotate(360deg)
    }
}

.hero-button,
.info-button {
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite
}

@keyframes buttonPulse {
    0%,
    100% {
        box-shadow: 0 0 20px var(--purple-glow)
    }
    50% {
        box-shadow: 0 0 40px var(--purple-glow), 0 0 60px rgba(162, 89, 255, .3)
    }
}

.terminal-prefix {
    position: relative;
    animation: glitchPulse 3s ease-in-out infinite
}

@keyframes glitchPulse {
    0%,
    100% {
        color: var(--purple)
    }
    50% {
        color: rgba(162, 89, 255, .8)
    }
}

.service-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all .4s cubic-bezier(.175, .885, .32, 1.275)
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 89, 255, .1), transparent);
    transition: left .6s
}

.service-card:hover::before {
    left: 100%
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(162, 89, 255, .2), 0 0 0 1px rgba(162, 89, 255, .3), inset 0 0 20px rgba(162, 89, 255, .05)
}

.service-icon {
    animation: floatIcon 4s ease-in-out infinite;
    transition: all .3s ease
}

@keyframes floatIcon {
    0%,
    100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-10px)
    }
}

.navbar {
    animation: navbarBreath 6s ease-in-out infinite;
    border-bottom: 1px solid transparent
}

@keyframes navbarBreath {
    0%,
    100% {
        background-color: rgba(0, 0, 0, .8);
        border-bottom-color: rgba(162, 89, 255, .1)
    }
    50% {
        background-color: rgba(0, 0, 0, .9);
        border-bottom-color: rgba(162, 89, 255, .3)
    }
}

.nav-link::after,
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), rgba(162, 89, 255, .5));
    transition: width .3s ease
}

.nav-link:hover::after,
.footer-link:hover::after {
    width: 100%
}

.hero-title .title-text {
    background: linear-gradient(45deg, var(--white), var(--purple), var(--white));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease-in-out infinite;
}

@keyframes shimmerText {
    0%,
    100% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
}


.footer {
    position: relative;
    overflow: hidden
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -50%;
    width: 200%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
    animation: waveMove 3s linear infinite
}

@keyframes waveMove {
    0% {
        transform: translateX(-100%)
    }
    100% {
        transform: translateX(50%)
    }
}

.about-box:nth-child(1) {
    animation-delay: .1s
}

.about-box:nth-child(2) {
    animation-delay: .2s
}

.about-box:nth-child(3) {
    animation-delay: .3s
}

.about-box:nth-child(4) {
    animation-delay: .4s
}

.logo-placeholder {
    transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
    position: relative;
    overflow: hidden
}

.logo-placeholder:hover {
    transform: translateY(-10px) rotateZ(5deg) scale(1.1);
    border-color: var(--purple);
    box-shadow: 0 15px 30px rgba(162, 89, 255, .3)
}

.see-more-button {
    position: relative;
    overflow: hidden;
    animation: buttonFloat 3s ease-in-out infinite
}

@keyframes buttonFloat {
    0%,
    100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-5px)
    }
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none
}

html::-webkit-scrollbar {
    display: none
}

@media (max-width:768px) {
    .service-card:hover {
        transform: translateY(-10px) scale(1.02)
    }
    .particle {
        display: none
    }
    body::before {
        animation-duration: 12s
    }
}

.footer-legal {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
}

.footer-legal .footer-link {
    margin: 0 10px;
    color: var(--light-gray);
}

.footer-legal .legal-separator {
    color: var(--purple-light);
    margin: 0 5px;
}

/* =================================== */
/* FAQ ACCORDION SECTION               */
/* =================================== */

.faq {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq h3 {
    font-size: 1.5rem;
    margin-bottom: 50px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
}

.faq-container {
    text-align: left;
}

.faq-item {
    background-color: var(--dark-gray);
    border: 1px solid rgba(162, 89, 255, .1);
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--purple-light);
}

.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    color: var(--light-gray);
    font-size: 1rem;
    text-align: left;
}

.faq-question:hover span {
    color: var(--purple);
}

.faq-question i {
    color: var(--purple);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(0,0,0,0.2);
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--light-gray);
    opacity: 0.8;
    margin: 0;
}

/* --- Active State --- */
.faq-item.active {
    border-color: var(--purple);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust this value if your answers are longer */
}

/* --- Client Logo Carousel --- */
.clients {
    padding-bottom: 80px; /* Add some space at the bottom */
}

.logo-carousel {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.carousel-track {
    display: flex;
    width: calc(200px * 14); /* 200px per logo, 7 original + 7 duplicate */
    animation: scroll 30s linear infinite;
}

.logo-item {
    width: 200px; /* Set a fixed width for each logo container */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25px; /* Spacing between logos */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    max-width: 150px; /* Control the size of the logo image */
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-200px * 7)); /* Moves the track by the width of the original 7 logos */
    }
}

/* Pause animation on hover */
.logo-carousel:hover .carousel-track {
    animation-play-state: paused;
}


/* --- New 2x2 Services Section Styles --- */

/* New icon style for the boxes */
.service-box-icon {
    font-size: 2.5rem;
    color: var(--purple);
    margin-bottom: 25px;
    display: block; /* Make it a block element for spacing */
}

/* Force the .about-grid to be 2x2 when used in the services section */
#services .about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px; /* Contain the 2x2 grid */
    margin: 40px auto 0;
}

/* * ICON & TEXT CENTERING FIX 
 */

/* 1. Center the icon */
#services .about-box {
    text-align: center;
}

/* 2. Override 'display: flex' on h4 to allow text-align to work */
#services .about-box h4 {
    display: block; /* This is the fix */
    text-align: center;
}

/* 3. Center the paragraph text */
#services .about-box p {
    text-align: center;
}
/* * END CENTERING FIX 
 */

/* Responsive stack for the new grid */
@media (max-width: 768px) {
    #services .about-grid {
        grid-template-columns: 1fr;
    }
}