:root {
    --primary: #5C4EE5;
    --primary-light: #7E74F1;
    --secondary: #29B6F6;
    --accent: #0D1B3E;
    --bg-dark: #0D1B3E;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --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: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--primary);
}

.lang-btn:hover:not(.active) {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at 90% 10%, rgba(41, 182, 246, 0.1), transparent),
                radial-gradient(circle at 10% 90%, rgba(92, 78, 229, 0.1), transparent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.gradient-text {
    font-size: 4rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary-large {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(92, 78, 229, 0.2);
}

.btn-secondary-large {
    background: var(--white);
    color: var(--accent);
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #E2E8F0;
    transition: var(--transition);
}

.btn-primary-large:hover, .btn-secondary-large:hover {
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
}

.glass-card {
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

code {
    color: #E2E8F0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
}

.keyword { color: #C678DD; }
.string { color: #98C379; }
.function { color: #61AFEF; }

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.service-card {
    padding: 3rem;
    border-radius: 24px;
    background: var(--bg-light);
    border: 1px solid #F1F5F9;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 30px rgba(92, 78, 229, 0.2));
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.benefits {
    list-style: none;
    margin-top: 2rem;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefits li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--bg-dark);
    color: var(--white);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-info h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94A3B8;
}

input, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    width: 100%;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: var(--bg-dark);
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    height: 30px;
}

.footer-logo span {
    color: var(--white);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .contact-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-flex {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-card {
        padding: 2rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .gradient-text {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .about-image img {
        max-width: 100%;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .glass-card {
        padding: 1rem;
        width: 100%;
        overflow: hidden;
    }

    code {
        font-size: 0.85rem;
        white-space: pre;
        display: block;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        text-align: left;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }

    #contact-form {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
        margin: 0;
    }

    input, textarea {
        width: 100% !important;
        max-width: 100%;
        margin: 0;
    }

    .cf-turnstile {
        transform: scale(0.85); /* Ensure it fits perfectly on small mobile screens */
        transform-origin: center;
        margin: 0.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
