/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f8f7fc;
    --color-bg-alt: #efedf6;
    --color-surface: #ffffff;
    --color-surface-hover: #f3f1fa;
    --color-primary: #7c5cbf;
    --color-primary-light: #a78bdb;
    --color-primary-dark: #5a3d9e;
    --color-accent: #5bbcd6;
    --color-accent-light: #8dd3e6;
    --color-text: #2d2a3e;
    --color-text-muted: #6b6780;
    --color-text-light: #9691a8;
    --color-border: #e2dff0;
    --color-gradient-start: #7c5cbf;
    --color-gradient-mid: #5bbcd6;
    --color-gradient-end: #a78bdb;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(124, 92, 191, 0.06);
    --shadow-md: 0 4px 20px rgba(124, 92, 191, 0.08);
    --shadow-lg: 0 8px 40px rgba(124, 92, 191, 0.12);
    --shadow-glow: 0 0 60px rgba(124, 92, 191, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== CANVAS BACKGROUND ===== */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 247, 252, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo img {
    height: 123px;
    width: auto;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: var(--color-surface-hover);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    padding: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.lang-flag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.lang-flag:hover {
    color: var(--color-primary);
}

.lang-flag.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.lang-flag .flag-icon {
    display: block;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 92, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 92, 191, 0.4);
}

.btn-outline {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 100px;
    padding-top: 72px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 24px;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--color-text);
    min-height: 2.3em;
}

.hero-subtitle {
    min-height: 5em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(124, 92, 191, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.image-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--color-primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: spin-slow 20s linear infinite;
    border-top-color: transparent;
    border-left-color: transparent;
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.card-1 {
    top: 10%;
    right: -10px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -10px;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-light);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.5;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-text-light);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.1), rgba(91, 188, 214, 0.1));
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.1), rgba(91, 188, 214, 0.08));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    padding: 4px 12px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ===== SOFTWARE ===== */
.software-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    min-height: 130px;
}

.feature-item:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.feature-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Code Window */
.code-window {
    background: #1e1b2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff6b6b; }
.code-dots span:nth-child(2) { background: #ffd93d; }
.code-dots span:nth-child(3) { background: #6bcb77; }

.code-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-body pre {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #c4b5fd;
}

.code-keyword { color: #c084fc; }
.code-class { color: #67e8f9; }
.code-func { color: #86efac; }
.code-string { color: #fbbf24; }

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tech-badge {
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.tech-badge:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

/* ===== CONTACT ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.1), rgba(91, 188, 214, 0.08));
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-text);
}

.contact-card a,
.contact-card span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--color-primary);
}

/* Form */
.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--color-text);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 48px 0 24px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

/* ===== REVEAL ANIMATION ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .image-frame {
        width: 280px;
        height: 280px;
    }

    .software-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 247, 252, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 24px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .image-frame {
        width: 240px;
        height: 240px;
    }

    .floating-card {
        display: none;
    }

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

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

    .software-visual {
        order: -1;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

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

    .section {
        padding: 60px 0;
    }

    .service-card {
        padding: 24px;
    }

    .feature-item {
        padding: 16px;
    }

    .contact-form {
        padding: 24px;
    }
}
