:root {
    --primary: #0071C5;
    --primary-light: #00A6DA;
    --dark: #05070A;
    --dark-secondary: #0D1117;
    --dark-accent: #001E3C;
    --text: #FFFFFF;
    --text-dim: #A0ABBA;
    --accent: #FF3E3E;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(5, 7, 10, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.logo-icon {
    color: var(--primary);
    background: var(--dark-accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 113, 197, 0.3);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 113, 197, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--text-dim);
}

.btn-secondary {
    background: var(--dark-accent);
    color: white;
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 113, 197, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 70% 30%, var(--dark-accent) 0%, var(--dark) 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 113, 197, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(0, 113, 197, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-visual {
    position: relative;
}

.visual-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.visual-container:hover .hero-img {
    transform: scale(1.05);
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 113, 197, 0.2), transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--dark-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dim);
}

/* Code Preview */
.code-preview {
    margin: 4rem auto;
    background: #011627;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.code-header {
    background: #010e1a;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
    background: #011627;
    padding: 0.5rem 1rem;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid var(--primary);
}

.code-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    overflow-x: auto;
}

.token.keyword {
    color: #c792ea;
}

.token.function {
    color: #82aaff;
}

.token.comment {
    color: #637777;
    font-style: italic;
}

.token.string {
    color: #c3e88d;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-dim);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--text-dim);
    text-decoration: none;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        display: flex !important;
        /* Force flex but keep it off-screen */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-cta {
        margin-right: 3rem;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 2rem;
        z-index: 1000;
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Language & Theme Switcher */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}





/* Blue & Red Theme (Crimson Blue) */
body.blue-red-theme {
    --primary: #0088ff;
    --primary-light: #44aaff;
    --dark: #020408;
    --dark-secondary: #06080c;
    --dark-accent: #150000;
    /* Deep red tint */
    --text: #ffffff;
    --text-dim: #b0c4de;
    --accent: #ff2a2a;
    --glass: rgba(0, 136, 255, 0.05);
    --glass-border: rgba(255, 42, 42, 0.2);
    position: relative;
}

body.blue-red-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 136, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 42, 42, 0.08) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

body.blue-red-theme .hero {
    background: radial-gradient(circle at 70% 30%, #150000 0%, #020408 100%) !important;
}

body.blue-red-theme h1,
body.blue-red-theme h2,
body.blue-red-theme h3 {
    text-shadow: 0 0 20px rgba(0, 136, 255, 0.2);
}

body.blue-red-theme .hero-content h1 span {
    background: linear-gradient(90deg, #0088ff, #ff2a2a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.3));
}

body.blue-red-theme .btn-primary {
    background: linear-gradient(135deg, #0088ff, #ff2a2a);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.blue-red-theme .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 136, 255, 0.4), 0 10px 25px rgba(255, 42, 42, 0.4);
}

body.blue-red-theme .product-card,
body.blue-red-theme .feature-card,
body.blue-red-theme .expertise-card,
body.blue-red-theme .software-item {
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid rgba(0, 136, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    color: inherit;
    display: block;
}

body.blue-red-theme .product-card:hover,
body.blue-red-theme .feature-card:hover,
body.blue-red-theme .expertise-card:hover {
    border-color: #ff2a2a;
    box-shadow: 0 0 40px rgba(255, 42, 42, 0.15);
    transform: translateY(-5px);
}

body.blue-red-theme pre,
body.blue-red-theme code {
    background: #04060b !important;
    border-left: 3px solid #ff2a2a;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

body.blue-red-theme .logo-icon {
    background: #020408;
    border-color: #0088ff;
    color: #ff2a2a;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
}

body.blue-red-theme .logo-text span {
    color: #ff2a2a;
}

body.blue-red-theme .badge {
    background: rgba(0, 136, 255, 0.15);
    color: #44aaff;
    border: 1px solid rgba(0, 136, 255, 0.4);
    backdrop-filter: blur(5px);
}

body.blue-red-theme .card-icon {
    color: #0088ff;
    filter: drop-shadow(0 0 8px rgba(0, 136, 255, 0.5));
}

body.blue-red-theme .footer-links a:hover,
body.blue-red-theme .nav-links a:hover {
    color: #ff2a2a;
}

body.blue-red-theme footer {
    border-top: 1px solid rgba(255, 42, 42, 0.1);
}




/* Contact Form Enhancements */
#form-status {
    animation: formStatusFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
}

@keyframes formStatusFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    filter: grayscale(0.5);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#contact-form .visual-field,
#contact-form .visual-area {
    margin-bottom: 0.5rem;
}

.security-note i {
    color: var(--primary-light);
}

/* Hero Static Grid */
.logo-carousel-container {
    text-align: center;
    width: 100%;
}

.featured-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.logo-carousel {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem;
}

.carousel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 140px;
    text-decoration: none;
    color: inherit;
}

.carousel-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.carousel-card span {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.carousel-card:hover img {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary);
    background: rgba(0, 113, 197, 0.1);
    box-shadow: 0 0 30px rgba(0, 113, 197, 0.3);
}

.carousel-card:hover span {
    color: white;
    text-shadow: 0 0 10px var(--primary-light);
}

/* Ensure container fits */
.visual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Dark background behind logos */
    background: var(--dark-secondary);
    min-height: 450px;
}