:root {
    --bg-color: #191825;
    /* User requested Deep Charcoal/Black */
    --text-color: #ffffff;
    --accent-color: #6b4ce6;
    --gradient-main: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    /* Vibrant Blue Gradient */
    --gradient-glow: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-text: linear-gradient(45deg, #4361ee, #b5179e);
    /* Blue to Purple */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-head: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Gradient Overrides */
h1 span,
.text-gradient {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s linear infinite;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    color: #fff;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
}

.section-title {
    text-align: center;
    margin: 3rem auto;
    position: relative;
    width: 100%;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.m-auto {
    margin: 0 auto;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mt-3 {
    margin-top: 3rem;
}

.p-2 {
    padding: 2rem;
}

.p-3 {
    padding: 3rem;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }

    .p-3 {
        padding: 1.5rem;
        /* Reduced from 3rem */
    }

    .glass {
        padding: 1.5rem;
        /* Ensure glass cards are not too bulky */
    }

    .card {
        padding: 1.5rem;
    }
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

.flex-wrap-mobile {
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .flex-wrap-mobile {
        flex-wrap: wrap;
    }
}

.color-accent {
    color: var(--accent-color);
}

.opacity-70 {
    opacity: 0.7;
}

.font-09 {
    font-size: 0.9rem;
}

.font-size-1-1 {
    font-size: 1.1rem;
}

.font-size-1-5 {
    font-size: 1.5rem;
}

/* Enhanced Glassmorphism for Futuristic Look */
.glass {
    background: rgba(18, 18, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-25deg);
    }

    100% {
        transform: translateX(100%) skewX(-25deg);
    }
}

/* Glowing Accents */
.glow-text {
    text-shadow: 0 0 10px rgba(107, 76, 230, 0.5), 0 0 20px rgba(107, 76, 230, 0.3);
}

/* Header & Nav - FIXED */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.7);
    /* More transparent for blur to show */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;

}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links li {
    position: relative;
}

/* Dropdown */
.nav-item-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-expand {
    display: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px;
    transition: transform 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0d0d12;
    /* Fallback */
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    min-width: 220px;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeUp 0.3s ease forwards;
}

.dropdown-content li {
    margin-bottom: 0.8rem;
}

.dropdown-content li:last-child {
    margin-bottom: 0;
}

.dropdown-content a {
    display: block;
    font-size: 0.95rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px;
        /* Larger touch target */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.2rem;
        /* Larger text */
    }

    .nav-links a {
        font-size: 1.3rem;
        /* Larger text for links */
        display: inline-block;
    }

    .nav-item-wrapper {
        justify-content: center;
        width: 100%;
        position: relative;
    }

    .mobile-expand {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.5rem;
        /* Larger icon */
        padding: 1rem;
        /* Large touch area */
        margin-left: 10px;
        color: var(--accent-color);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        z-index: 2000;
        pointer-events: auto;
    }

    .dropdown:hover .dropdown-content {
        display: none;
        /* Disable hover on mobile */
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.3);
        border: none;
        box-shadow: none;
        padding: 1rem 0;
        text-align: center;
        width: 100%;
    }

    .dropdown-content a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        color: #ccc;
    }

    .dropdown.open .dropdown-content {
        display: block !important;
        animation: none;
        /* Remove animation to prevent visibility issues */
        opacity: 1;
        visibility: visible;
    }
}



/* Specific Fixes for Layout */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 95%;
}

.hero-medium {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}



/* Background Beams */
.bg-beam {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.1), transparent 40%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

.bg-beam:nth-child(2) {
    top: -20%;
    left: 20%;
    background: radial-gradient(circle at 50% 50%, rgba(67, 97, 238, 0.08), transparent 30%);
    animation-direction: reverse;
    animation-duration: 25s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/* Grid & Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

.card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: none;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: none;
    /* Disable movement if flat is desired, or keep slight */
    box-shadow: none;
    border: none;
}

.card-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    display: block;
}

.card-price-value {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 1rem 0;
}

.list-check {
    text-align: left;
}

.list-check li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Partners Logos Responsive */
.partners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: rgb(255, 255, 255);
    padding: 2rem;
    border-radius: 12px;
}

.partner-logo {
    max-width: 45%;
    height: auto;
    opacity: 1;
    object-fit: contain;
    /* Ensure they shrink but stay visible */
    min-width: 280px;
}

@media (max-width: 768px) {
    .partners-container {
        flex-direction: column;
        padding: 1rem;
    }

    .partner-logo {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }
}



@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width: 900px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* FAQ Accordion */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

details {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

details:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

summary {
    list-style: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeUp 0.3s ease forwards;
}


/* Tech Badge */
.tech-badge {
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.tech-badge:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}



.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.fade-in {
    transform: translateY(20px);
}

.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Delays */
/* Delays */
.delay-1 {
    transition-delay: 0.3s;
}

.delay-2 {
    transition-delay: 0.6s;
}

.delay-3 {
    transition-delay: 0.9s;
}

/* Code Animation Window */
.code-animation-window {
    background-color: #1e1e3f;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    /* Monospace fallback */
    border: 1px solid rgba(107, 76, 230, 0.3);
    box-shadow: 0 0 30px rgba(107, 76, 230, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.code-window-header {
    background-color: #2a2a50;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-window-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.code-window-dots .dot-1 {
    background-color: #ff5f56;
}

.code-window-dots .dot-2 {
    background-color: #ffbd2e;
}

.code-window-dots .dot-3 {
    background-color: #27c93f;
}

.code-window-body {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #dcdcdc;
}

.code-animation-window .keyword {
    color: #569cd6;
}

/* Blue */
.code-animation-window .string {
    color: #ce9178;
}

/* Orange */
.code-animation-window .property {
    color: #9cdcfe;
}

/* Light Blue */
.code-animation-window .bracket {
    color: #ffd700;
}

/* Yellow */
.code-animation-window .comment {
    color: #6a9955;
}

/* Green */

.code-animation-window .cursor {
    display: inline-block;
    background-color: var(--accent-color);
    width: 8px;
    height: 15px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Typing Cursor Animation */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 4px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    animation: blink 1s step-end infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

/* Premium Glassmorphism Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(var(--accent-rgb), 0.2);
    /* slightly hacky if accent-rgb not defined, falling back to accent-color if needed manually */
}

/* Fallback if accent-rgb isn't var */
.service-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(107, 76, 230, 0.3);
}

.service-card .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(107, 76, 230, 0.5);
    /* fallback color */
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.service-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Optional: Add a subtle glow behind the cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(40px);
}

.service-card:hover::before {
    opacity: 0.15;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 1.5rem;
    }
}

/* Footer link hover */
footer a:hover {
    opacity: 1 !important;
    color: var(--accent-color);
}

/* Moving Beam Border Animation */
.beam-border {
    position: relative;
    /* Ensure z-index context if needed, but usually fine */
}

.beam-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* Border thickness */
    background: linear-gradient(45deg, transparent 40%, var(--accent-color), transparent 60%);
    background-size: 200% 200%;

    /* Create the border mask */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    animation: beam-travel 3s linear infinite;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
}

/* Ensure the keyframe exists or use a local one */
@keyframes beam-travel {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* --- Marquee Animation --- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    /* Larger padding */
    margin-bottom: 0;
    /* Connect to footer if needed */
    background: linear-gradient(to right, transparent, rgba(107, 76, 230, 0.05), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    /* Slower */
}

.marquee-item {
    font-size: 6rem;
    /* Huge text */
    font-weight: 900;
    text-transform: uppercase;
    color: #9e6ae85c;
    margin-right: 4rem;
    white-space: nowrap;
    font-family: var(--font-head);
    transition: all 0.3s ease;
    opacity: 1;
}

.marquee-item:hover {
    color: rgba(141, 159, 255, 0.52);

}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Enhanced Button Styles --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(107, 76, 230, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4361ee, #b5179e, #4361ee);
    background-size: 200% auto;
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
    /* Hidden by default */
    animation: gradient-move 3s linear infinite;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 76, 230, 0.5), 0 0 15px rgba(181, 23, 158, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn:hover::before {
    opacity: 1;
    /* Show gradient on hover */
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* --- Glow Border Utility --- */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--accent-color), #b5179e, #00c6ff);
    background-size: 200% 200%;
    animation: beam-travel 4s linear infinite;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
}

.glow-border:hover::after {
    opacity: 0.6;
}