:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --primary: #6C63FF;
    /* Vivid Indigo */
    --secondary: #FF6584;
    /* Soft Red/Pink */
    --accent: #43D9AD;
    /* Mint Green */
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --container-width: 1200px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Glow Effect */
.glow-on-hover:hover {
    box-shadow: 0 0 20px var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Comfortaa', cursive;
    display: flex;
    align-items: center;
    gap: 0.5px;
}

.logo-black {
    font-weight: 700;
    /* Heavy */
}

.logo-swan {
    font-weight: 300;
    /* Thin */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Jumbotron */
.jumbotron {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    height: 100%;
    max-width: 600px;
}

/* Services */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.3s;
}

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

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

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
}

/* Apps Section */
.app-showcase {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 100px;
}

.app-showcase.reverse {
    flex-direction: row-reverse;
}

.app-content {
    flex: 1;
}

.app-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.app-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.app-visual {
    flex: 1;
}

.mockup {
    height: 300px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--primary), transparent 70%);
    opacity: 0.2;
}

/* Contact */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.address-box {
    margin-top: 40px;
    padding: 30px;
    display: inline-block;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .app-showcase {
        flex-direction: column;
    }

    .app-showcase.reverse {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        /* Implement mobile menu JS later if needed, simple hide for now */
    }
}

/* Process/How We Work Section */
.process-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 40px;
    position: relative;
    padding-bottom: 60px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.2);
    z-index: 2;
    background-color: var(--bg-dark);
    /* Cover the line */
}

.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    margin-top: 20px;
    margin-bottom: -40px;
    /* Extend to next marker */
    z-index: 1;
    opacity: 0.3;
}

.process-step:last-child .step-line {
    display: none;
}

.step-content {
    flex: 1;
    padding: 30px;
    position: relative;
    top: -10px;
    /* Align with marker */
    transition: transform 0.3s ease;
}

.step-content:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.1);
}

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

.step-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .process-step {
        gap: 20px;
    }

    .step-marker {
        width: 40px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Technologies Section */
.technologies {
    overflow: hidden;
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -40px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fade masks for smooth edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
    padding: 20px 0;
}

.tech-scroller:hover .tech-track {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.3s;
}

.tech-item:hover {
    transform: translateY(-5px);
    color: var(--text-main);
}

.tech-item i {
    font-size: 4rem;
    transition: filter 0.3s;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Specific icon coloring overrides if needed to fit dark mode */
.tech-item .colored-icon {
    color: var(--primary);
}

.tech-item .white-icon {
    color: white;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 30px));
        /* Move half of track width minus half gap? No, standard logic: -50% assumes track contains 2 identical sets */
    }
}

/* Note: The calc for 100% depends on track content. 
   Since we duplicated the items exactly once, and there is a gap, 
   we need to shift by exactly half the total width (including gaps).
   However, gap is between items. 
   Calculation: 
   Total width = (ItemWidth * N) + (Gap * (N-1))
   Duplicated = (ItemWidth * 2N) + (Gap * (2N-1))
   Standard technique: translateX(-50%) works if the container is exactly double.
   Let's refine:
   We have gap: 60px.
   If we use gap in flex container, 
   100% translation should be -50% of the track width IF the gap was consistent around the wrap point.
   Actually, translateX(-50%) on the track itself works perfectly if the track contains two identical sets of items.
   The gap logic holds up.
*/

@media (max-width: 768px) {
    .tech-item i {
        font-size: 3rem;
    }

    .tech-track {
        gap: 40px;
    }
}

/* Why Choose Us Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
    height: 100%;
}

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

.check-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.benefit-card p {
    color: var(--text-muted);
}

.why-us-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.why-us-footer h3 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Call to Action Section */
.cta-container {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(67, 217, 173, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cta-btn {
    position: relative;
    font-size: 1.2rem;
    padding: 15px 40px;
    z-index: 1;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-btn:hover::after {
    left: 100%;
    transition: 0.5s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(108, 99, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
}

/* Burger Menu (Default Hidden) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Footer Navigation */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        /* Cover entire screen */
        background-color: var(--bg-card);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Center items vertically */
        width: 100%;
        /* Full width */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 998;
        /* Below burger button z-index */
        gap: 40px;
        /* Space out links */
        border-left: 1px solid var(--glass-border);
    }

    .nav-links li {
        opacity: 0;
        /* For animation */
    }

    .burger {
        display: block;
        z-index: 999;
        /* Above the menu overlay */
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}