/* ============================================
   İmaj Oto Tuning — Digital Business Card
   Premium Dark Automotive Theme
   ============================================ */

:root {
    --bg: #08080a;
    --card: #111114;
    --card-elevated: #18181c;
    --surface: #1e1e23;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f0f0f2;
    --text-secondary: #8b8b96;
    --text-muted: #56565f;

    --accent: #7c5cfc;
    --accent-soft: rgba(124, 92, 252, 0.12);
    --accent-glow: rgba(124, 92, 252, 0.25);

    --green: #22c55e;
    --whatsapp: #25d366;
    --red: #ef4444;
    --yellow: #f59e0b;
    --instagram-from: #f09433;
    --instagram-to: #e6683c;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --font: 'Outfit', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* IBAN numaraları seçilebilir kalsın */
.iban-number {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ---- Card Container ---- */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 0 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: var(--card);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

@media (min-width: 520px) {
    body { padding: 24px; }
    .card {
        min-height: auto;
        border-radius: var(--radius-xl);
        border: 1px solid var(--border);
        box-shadow:
            0 0 0 1px var(--border),
            0 24px 80px rgba(0,0,0,0.6);
        margin: auto;
    }
}

/* ---- Hero / Profile ---- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 48px;
}

.logo-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.7s ease-out both;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    margin-top: 20px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    animation: fadeUp 0.7s 0.1s ease-out both;
}

.tagline {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: fadeUp 0.7s 0.2s ease-out both;
}

.accent-line {
    margin-top: 20px;
    width: 40px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), #e6683c);
    animation: fadeUp 0.7s 0.3s ease-out both;
}

/* ---- Action Grid ---- */
.actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    animation: fadeUp 0.7s 0.35s ease-out both;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: transform 0.2s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.action-card:active {
    transform: scale(0.96);
}

.action-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.25s, background 0.25s;
}

.action-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s;
}

/* Action Colors */
[data-color="green"] .action-icon { background: rgba(34,197,94,0.12); color: var(--green); }
[data-color="whatsapp"] .action-icon { background: rgba(37,211,102,0.12); color: var(--whatsapp); }
[data-color="instagram"] .action-icon { background: linear-gradient(135deg, rgba(240,148,51,0.15), rgba(225,48,108,0.15)); color: #e1306c; }
[data-color="red"] .action-icon { background: rgba(239,68,68,0.12); color: var(--red); }
[data-color="yellow"] .action-icon { background: rgba(245,158,11,0.12); color: var(--yellow); }
[data-color="purple"] .action-icon { background: var(--accent-soft); color: var(--accent); }

.action-card:hover {
    border-color: var(--border-hover);
    background: var(--card-elevated);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.action-card:hover .action-icon { transform: scale(1.1); }
.action-card:hover .action-label { color: var(--text-primary); }

/* ---- Services ---- */
.services-section {
    animation: fadeUp 0.7s 0.45s ease-out both;
}

.section-header {
    margin-bottom: 16px;
}

.section-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.service-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: default;
}

.service-chip i {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.service-chip:hover {
    background: var(--accent-soft);
    border-color: rgba(124, 92, 252, 0.2);
    color: var(--text-primary);
}
.service-chip:hover i {
    opacity: 1;
}

/* ---- Website CTA ---- */
.cta-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s 0.55s ease-out both;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

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

.cta-globe {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.7;
}

.cta-small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.cta-big {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-top: 2px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.25s;
}

.cta-btn:hover {
    background: #6b4ce6;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.cta-btn:active {
    transform: scale(0.97);
}

.cta-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}
.cta-btn:hover i {
    transform: translateX(3px);
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fadeUp 0.7s 0.6s ease-out both;
}

.copyright {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dev-credit {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dev-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.dev-credit a:hover {
    color: var(--text-primary);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal-card {
    background: var(--card-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(124, 92, 252, 0.2);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-title i {
    color: var(--accent);
}

.iban-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.iban-bank {
    margin-bottom: 8px;
}

.bank-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 6px;
}

.bank-badge.akbank {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}
.bank-badge.isbank {
    background: rgba(59,130,246,0.12);
    color: #60a5fa;
}

.iban-holder {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.iban-number {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    word-break: break-all;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-soft);
    border-color: rgba(124, 92, 252, 0.2);
    color: var(--accent);
}

.copy-btn.copied {
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.25);
    color: var(--green);
}

.modal-hint {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Focus Accessibility ---- */
.action-card:focus-visible,
.cta-btn:focus-visible,
.copy-btn:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 380px) {
    .card { padding: 0 16px 32px; }
    .brand-name { font-size: 1.5rem; }
    .actions { gap: 8px; }
    .action-card { padding: 14px 6px; }
    .action-icon { width: 36px; height: 36px; font-size: 15px; }
    .action-label { font-size: 0.65rem; }
    .service-chip { font-size: 0.75rem; padding: 12px 12px; }
}
