/* ============================================
   ELYASOFT - Public Site CSS
   Koyu hero + video bg + sağda form
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --color-bg: #0a0b0e;
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.72);
    --color-text-muted: rgba(255, 255, 255, 0.52);
    --color-accent: #4F7EFF;
    --color-accent-hover: #6b94ff;
    --color-primary: #673DE6;
    --color-primary-hover: #7b54eb;
    --color-yellow: #FFC531;
    --color-whatsapp: #25D366;
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-strong: rgba(255, 255, 255, 0.24);
    --card-bg: #ffffff;
    --card-text: #0f1115;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --font-display: 'Syne', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* Mobilde URL bar'ı hesaba katar */
    display: flex;
    flex-direction: column;
    padding: 20px 32px 40px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Video yüklenene kadar görünür arka plan */
    background: #0a0b0e;
}

.hero__video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Video'yu her zaman cover gibi davran - hiçbir taraf boş kalmasın */
    width: max(100vw, calc(100vh * 16 / 9));
    height: max(100vh, calc(100vw * 9 / 16));
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* ============ NAV ============ */
.nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 0 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.nav__logo-mark {
    width: 32px; height: 32px;
    color: var(--color-text);
    display: inline-flex;
}
.nav__logo-mark svg,
.nav__logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__logo-text { line-height: 1; }
.nav__logo-accent { color: var(--color-yellow); }

/* Sadece görsel logo (metin yok) varyantı */
.nav__brand--image { height: 40px; }
.nav__brand--image img {
    height: 100%;
    width: auto;
    display: block;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-dim);
    transition: color .2s;
    position: relative;
}
.nav__link:hover { color: var(--color-text); }
.nav__link--active { color: var(--color-yellow); }

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

.nav__cta {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}
.nav__cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}
.lang-switch__btn {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all .15s;
    text-transform: uppercase;
}
.lang-switch__btn:hover {
    color: var(--color-text);
}
.lang-switch__btn--active {
    color: var(--color-yellow);
    background: rgba(255, 197, 49, 0.08);
}
.lang-switch__sep {
    color: var(--color-border-strong);
    font-size: 12px;
    line-height: 1;
}

/* ============ HERO WRAP ============ */
.hero__wrap {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 48px;
    align-items: center;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 0;
}

.hero__content { max-width: 640px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    animation: fadeInUp .8s ease-out;
}
.hero__badge-pill {
    background: var(--color-accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
}
.hero__badge-text {
    font-size: 13px;
    color: var(--color-text-dim);
    letter-spacing: 0.02em;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    animation: fadeInUp 1s ease-out .1s backwards;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, #cfddff 0%, #ffffff 60%, #cfddff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__features {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out .2s backwards;
}
.hero__feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}
.hero__feature svg { width: 22px; height: 22px; }

.hero__cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out .3s backwards;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: 0;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn--ghost {
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    backdrop-filter: blur(10px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.btn--whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1fb855; transform: translateY(-1px); }

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(103, 61, 230, 0.35);
}

.btn--block { width: 100%; }
.btn__icon { transition: transform .2s; }
.btn:hover .btn__icon { transform: translateX(3px); }

/* ============ FORM ============ */
.hero__form-wrap { animation: fadeInUp 1s ease-out .4s backwards; }

.contact-card {
    background: var(--card-bg);
    color: var(--card-text);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.2);
}

.contact-card__head { margin-bottom: 24px; }

.contact-card__title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.contact-card__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

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

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.field__optional { color: #9ca3af; font-weight: 400; }

.field__input, .field__textarea {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: #0f1115;
    transition: all .15s;
    width: 100%;
}

.field__input:focus, .field__textarea:focus {
    outline: 0;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.12);
}

.field__textarea { resize: vertical; min-height: 100px; }
.field__input--error { border-color: #ef4444; background: #fef2f2; }
.field__error { font-size: 12px; color: #dc2626; margin-top: 2px; }

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-form__foot {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}
.contact-form__foot a { color: var(--color-primary); }

/* ============ ALERTS ============ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============ MODAL ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .2s ease-out;
}
.modal[hidden] { display: none; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    background: #fff;
    color: var(--card-text);
    padding: 40px 32px 32px;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: scaleIn .25s ease-out;
}

.modal__close {
    position: absolute;
    top: 12px; right: 16px;
    background: transparent;
    border: 0;
    font-size: 28px;
    color: #9ca3af;
    line-height: 1;
    padding: 4px 8px;
}
.modal__close:hover { color: #0f1115; }

.modal__icon { margin-bottom: 16px; display: flex; justify-content: center; }
.modal__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}
.modal__text {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 24px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero__wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero__form-wrap { max-width: 500px; width: 100%; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero { padding: 12px 20px 24px; }
    .nav { padding: 0 0 16px; flex-wrap: wrap; gap: 12px; }
    .nav__menu { display: none; }
    .nav__actions { gap: 8px; }
    .nav__cta { padding: 8px 14px; font-size: 13px; }
    .lang-switch { padding: 3px 6px; }
    .lang-switch__btn { padding: 3px 6px; font-size: 11px; }
    .hero__wrap { padding: 4px 0; gap: 24px; }
    .hero__title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 20px;
    }
    .hero__badge { margin-bottom: 16px; }
    .hero__features { gap: 16px; margin-bottom: 24px; }
    .contact-card { padding: 24px 20px; }
    .hero__cta-row { flex-direction: column; }
    .hero__cta-row .btn { width: 100%; }
}

@media (max-width: 480px) {
    .hero { padding: 8px 16px 20px; }
    .nav { padding: 0 0 12px; }
    .nav__brand { font-size: 18px; }
    .nav__logo-mark { width: 26px; height: 26px; }
    .nav__brand--image { height: 32px; }
    .hero__title { font-size: 32px; margin-bottom: 16px; }
    .hero__wrap { padding: 0; gap: 20px; }
    .contact-card { padding: 20px 16px; border-radius: 16px; }
    .contact-card__title { font-size: 22px; }
    .modal__dialog { padding: 32px 24px 24px; }
}
