:root {
    --primary: #0a192f;
    --accent: #64ffda;
    --purple: #8a2be2;
    --neon-blue: #00f7ff;
    --text-color: white;
    --text-muted: rgba(255, 255, 255, 0.6);
    --header-bg: rgba(10, 25, 47, 0.9);
    --hero-bg: radial-gradient(circle at center, #1a1a2e 0%, #0a192f 100%);
    --gradient: linear-gradient(45deg, var(--purple), var(--neon-blue));
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --tech-bg: rgba(255, 255, 255, 0.02);
    --footer-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.05);
    --fade-bg: rgba(10, 25, 47, 0.9);
    --success: #64ffda;
    --error: #ff6b6b;
}

[data-theme="light"] {
    --primary: #ffffff;
    --accent: #00796b;
    --purple: #6a1b9a;
    --neon-blue: #00bcd4;
    --text-color: #0a192f;
    --text-muted: rgba(10, 25, 47, 0.6);
    --header-bg: rgba(255, 255, 255, 0.95);
    --hero-bg: radial-gradient(circle at center, #f0f4f8 0%, #ffffff 100%);
    --gradient: linear-gradient(45deg, var(--purple), var(--neon-blue));
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-border: rgba(0, 0, 0, 0.08);
    --tech-bg: rgba(0, 0, 0, 0.02);
    --footer-bg: rgba(0, 0, 0, 0.03);
    --input-bg: rgba(0, 0, 0, 0.03);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(5px);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.05rem;
    font-weight: bold;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    height: 1.6em;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: center;
    transform: translate(0%, 05%);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover,
.lang-btn.open {
    border-color: var(--purple);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.1);
}

.lang-btn .lang-flag {
    height: 1.1rem;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.lang-btn .lang-code {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-btn .lang-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.lang-btn.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: var(--header-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 2000;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-align: left;
}

.lang-option:hover {
    background: rgba(138, 43, 226, 0.12);
    color: var(--text-color);
}

.lang-option.active {
    color: var(--text-color);
    background: rgba(138, 43, 226, 0.15);
}

.lang-option.active::after {
    content: '\f00c';
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-option .opt-flag {
    height: 1.2rem;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.lang-option .opt-label {
    font-weight: 500;
}

/* Divider between options */
.lang-option + .lang-option {
    border-top: 1px solid var(--card-border);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-bg);
    padding: 2rem;
    overflow: hidden;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button {
    border: none;
    outline: none;
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background: var(--gradient);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--purple);
}

.cta-button:focus {
    box-shadow: 0 0 20px var(--purple);
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== SECTION COMMON STYLES ===== */
.section-title {
    position: relative;
    font-size: 2rem;
    margin-bottom: 3rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--tech-bg);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 5rem 0;
    overflow: hidden;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--purple);
    border-color: var(--purple);
}

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

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ===== TECH SECTION ===== */
.tech-section {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    width: 100vw;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}

.tech-grid {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    transition: 0.3s;
    background: var(--card-bg);
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 180px;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--purple);
    border-color: var(--purple);
}

.tech-item i {
    font-size: 1.8rem;
}

.tech-item span {
    font-size: 1.1rem;
}

/* ===== FAQ SECTION ===== */
.faqs-section {
    background: var(--tech-bg);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 5rem 0;
    overflow: hidden;
}

.faqs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faqs-container details {
    -webkit-tap-highlight-color: transparent;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    transition: 0.3s;
    cursor: pointer;
}

.faqs-container details[open] {
    box-shadow: 0 0 20px var(--purple);
    border-color: var(--purple);
}

.faqs-container summary {
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.faqs-container summary::-webkit-details-marker {
    display: none;
}

.faqs-container summary:before {
    content: "\f107";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.faqs-container details[open] summary:before {
    transform: rotate(180deg);
}

.faqs-container .answer {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== CONTACT FORM ===== */
.form-container {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    max-height: 600px;
}

.contact input:focus,
.contact textarea:focus {
    border: 1px solid var(--purple);
    box-shadow: 0 0 20px var(--purple);
}

.contact input::placeholder,
.contact textarea::placeholder {
    color: var(--text-muted);
}

.contact label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--card-border);
    background: var(--footer-bg);
    padding: 4rem 4rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.company-info h3 {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
    display: inline-block;
}

.company-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-icons a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.contact-icons a:hover {
    color: var(--text-color);
}

.footer-links h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.links-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.links-column ul {
    list-style: none;
    padding: 0;
}

.links-column li {
    margin-bottom: 0.8rem;
}

.links-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.links-column a:hover {
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    margin-top: 3rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.scroller {
    display: flex;
    width: fit-content;
    animation: scroll 60s linear infinite;
    padding: 1.5rem 0;
    transform: translate3d(0,0,0);
}

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

.fade-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 2;
}

.fade-left {
    left: 0;
    background: linear-gradient(90deg, var(--fade-bg), transparent);
}

.fade-right {
    right: 0;
    background: linear-gradient(90deg, transparent, var(--fade-bg));
}

/* ===== RECAPTCHA ===== */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.recaptcha-notice a {
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

.recaptcha-notice a:hover {
    color: var(--text-color);
}

/* ===== ALERT BOX ===== */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alert-box {
    background: var(--primary);
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-overlay.active .alert-box {
    transform: translateY(0);
    opacity: 1;
}

.alert-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.alert-icon.success {
    color: var(--success);
}

.alert-icon.error {
    color: var(--error);
}

.alert-message {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== MEDIA QUERIES ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-content, .scroller {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--primary);
        width: 100%;
        padding: 2rem;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    /* On mobile, language selector moves inside mobile menu */
    .nav-links .lang-selector {
        width: 100%;
    }

    .nav-links .lang-btn {
        width: 100%;
        justify-content: center;
        border-radius: 10px;
        padding: 0.6rem 1rem;
    }

    .nav-links .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 10px;
        margin-top: 0.5rem;
        display: none;
    }

    .nav-links .lang-dropdown.open {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: left;
    }

    .contact-icons {
        justify-content: center;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .scroller {
        animation-duration: 120s;
    }

    .tech-grid {
        gap: 1.5rem;
    }

    .tech-item {
        padding: 0.8rem 1.5rem;
        min-width: 160px;
    }

    .tech-item i {
        font-size: 1.5rem;
    }

    .tech-item span {
        font-size: 1rem;
    }

    .fade-overlay {
        width: 80px;
    }

    .form-container {
        width: 100%;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: left;
    }

    .contact-icons {
        justify-content: center;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .links-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .links-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .scroller {
        animation-duration: 120s;
    }

    .tech-item {
        padding: 0.7rem 1.2rem;
        min-width: 140px;
    }

    .tech-item i {
        font-size: 1.3rem;
    }

    .fade-overlay {
        width: 60px;
    }
}