﻿/* ============================================================
   SITE.CSS - ANA İSKELET
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #4a6cf7;
    --primary-dark: #3a5cdb;
    --secondary: #1a1a2e;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --footer-height: 56px;
}

[data-theme="dark"] {
    --bg: #030712;
    --card-bg: rgba(11,19,41,0.6);
    --text: #ffffff;
    --text-light: #d1d5db;
    --border: rgba(255,255,255,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --primary: #06b6d4;
    --primary-dark: #0e7490;
    --primary-light: #a5f3fc;
    --purple: #8b5cf6;
    --bg-dark: #030712;
    --bg-darker: #02050e;
    --text-gray: #d1d5db;
    --text-muted: #9ca3af;
    --border-light: rgba(255,255,255,0.05);
    --border-hover: rgba(255,255,255,0.1);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: all var(--transition);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; 
}

[data-theme="dark"] body {
    background-color: #030712;
    background-image: radial-gradient(at 0% 0%, rgba(59,130,246,0.05) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(139,92,246,0.05) 0px, transparent 50%),
                      radial-gradient(at 50% 50%, rgba(6,182,212,0.03) 0px, transparent 50%);
    background-attachment: fixed;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #030712; border-radius: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    border-radius: 10px;
    border: 1px solid rgba(6,182,212,0.3);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    box-shadow: 0 0 8px rgba(6,182,212,0.5);
}
[data-theme="dark"] * { scrollbar-width: thin; scrollbar-color: #06b6d4 #030712; }

/* ============================================================
   HEADER
   ============================================================ */

.app-header {
    height: var(--header-height);
    min-height: var(--header-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    gap: 16px;
}

.app-header .brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    height: 80px;
}

.app-header .brand img {
    height: 60px;
    width: 150px;
    object-fit: contain;
    display: block;
}

.app-header .brand .logo-fallback {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: none;
}

.app-header .desktop-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    margin: 0 16px;
}

.app-header .desktop-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    font-family: inherit;
    position: relative;
}

.app-header .desktop-menu .menu-item i { font-size: 14px; }
.app-header .desktop-menu .menu-item:hover { background: var(--bg); color: var(--text); }
.app-header .desktop-menu .menu-item.active { color: var(--primary); background: var(--bg); }

.app-header .desktop-menu .menu-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.header-btn:hover { background: var(--bg); color: var(--primary); }
.header-btn:active { transform: scale(0.92); }
.menu-toggle-mobile { display: none; }

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu-dropdown { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--card-bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 0; z-index: 99; animation: slideDown 0.25s ease; }
.mobile-menu-dropdown.active { display: block; }
@keyframes slideDown 
  {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
  }
.mobile-menu-dropdown .menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: none; background: var(--bg); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; width: 100%; text-align: left; transition: all var(--transition); font-family: inherit; }
.mobile-menu-dropdown .menu-item:hover { background: var(--secondary); color: var(--primary); }
.mobile-menu-dropdown .menu-item i { width: 20px; text-align: center; color: var(--primary); }
.mobile-menu-dropdown .menu-item.active { color: var(--primary); background: var(--bg); }

.lang-selector { position: relative; display: inline-block; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--transition); font-family: inherit; }
.lang-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.lang-btn .flag { font-size: 18px; }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 160px; padding: 4px 0; z-index: 1000; animation: slideDown 0.2s ease; margin-top: 4px; }
.lang-dropdown.active { display: block; }
.lang-dropdown .lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: none; background: transparent; color: var(--text); font-size: 13px; cursor: pointer; width: 100%; text-align: left; transition: all var(--transition); font-family: inherit; }
.lang-dropdown .lang-item:hover { background: var(--bg); color: var(--primary); }
.lang-dropdown .lang-item.active { background: var(--bg); color: var(--primary); font-weight: 600; }
.lang-dropdown .lang-item .flag { font-size: 18px; }
.app-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px; background: var(--bg); transition: all var(--transition); scroll-behavior: smooth; min-height: 0; height: 100%; }
.app-content .section-page { display: none; animation: fadeSlide 0.3s ease; }
.app-content .section-page.active { display: block; }

@keyframes fadeSlide 
  {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
  }

.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; color: var(--text-light); }
.loading-state .spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-hero { background: var(--card-bg); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); transition: all var(--transition); }
.page-hero h1 { font-size: 24px; margin-bottom: 8px; color: var(--text); }
.page-hero p { color: var(--text-light); font-size: 15px; }
.page-hero img { width: 100%; height: 512px; border-radius: var(--radius-sm); margin-top: 12px; max-height: 512px; object-fit: cover; }
.page-hero .hero-btn { display: inline-block; margin-top: 12px; padding: 10px 24px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; font-size: 14px; }
.page-hero .hero-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74,108,247,0.3); }
.content-list { background: var(--card-bg); border-radius: var(--radius-sm); padding: 16px 20px; margin: 8px 0; box-shadow: var(--shadow); border: 1px solid var(--border); }
.content-list ul { list-style: none; padding: 0; }
.content-list ul li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.content-list ul li:last-child { border-bottom: none; }
.content-list ul li::before { content: '▸'; color: var(--primary); font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin: 12px 0; }
.stat-grid .stat-item { background: var(--card-bg); border-radius: var(--radius-sm); padding: 16px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-grid .stat-item .number { font-size: 28px; font-weight: 700; color: var(--primary); display: block; }
.stat-grid .stat-item .label { font-size: 13px; color: var(--text-light); }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin: 12px 0; }
.contact-info-grid .contact-item { background: var(--card-bg); border-radius: var(--radius-sm); padding: 14px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-info-grid .contact-item i { font-size: 24px; color: var(--primary); margin-bottom: 4px; }
.contact-info-grid .contact-item .label { font-size: 11px; color: var(--text-light); display: block; }
.contact-info-grid .contact-item .value { font-size: 13px; font-weight: 500; color: var(--text); }
.form-container { background: var(--card-bg); border-radius: var(--radius-sm); padding: 20px; margin: 12px 0; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.form-container .form-group { margin-bottom: 14px; }
.form-container .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.form-container .form-group input, .form-container .form-group textarea, .form-container .form-group select { width: 100% !important; max-width: 100% !important; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 14px; transition: all var(--transition); font-family: inherit; box-sizing: border-box !important; display: block; }
.form-container .form-group input:focus, .form-container .form-group textarea:focus, .form-container .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1); }
.form-container .form-group textarea { min-height: 80px; resize: vertical; }
.form-container .form-group select { appearance: auto; cursor: pointer; }
.form-container .form-group select option { background: var(--card-bg); color: var(--text); padding: 8px; }
.form-container .form-submit { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; cursor: pointer; transition: all var(--transition); box-sizing: border-box; }
.form-container .form-submit:hover { background: var(--primary-dark); }
[data-theme="dark"] .form-container .form-group select { background: var(--bg); color: var(--text); }
[data-theme="dark"] .form-container .form-group select option { background: var(--card-bg); color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */

.app-footer {
    height: var(--footer-height);
    min-height: var(--footer-height);
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    bottom: 0;
    z-index: 100;
    transition: all var(--transition);
    gap: 12px;
}

.app-footer .footer-text {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-footer .footer-social { display: flex; align-items: center; gap: 8px; }

.app-footer .footer-social a {
    color: var(--text-light);
    font-size: 16px;
    transition: all var(--transition);
    text-decoration: none;
}

.app-footer .footer-social a:hover { color: var(--primary); transform: translateY(-2px); }

.app-footer .footer-actions { display: flex; align-items: center; gap: 8px; }

.app-footer .footer-btn {
    padding: 4px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.app-footer .footer-btn:hover { background: var(--primary); color: white; transform: translateY(-1px); }

/* ============================================================
   TOAST
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.toast {
    background: var(--card-bg);
    color: var(--text);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    width: 100%;
    font-size: 14px;
}

.toast.hide { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(16px); }
}

.toast .toast-icon { font-size: 18px; flex-shrink: 0; }
.toast .toast-icon.success { color: #10b981; }
.toast .toast-icon.error { color: #ef4444; }
.toast .toast-icon.warning { color: #f59e0b; }
.toast .toast-icon.info { color: var(--primary); }

.toast .toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

[data-theme="dark"] .modal-overlay {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    animation: modalIn 0.3s ease;
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal .modal-title i { color: var(--primary); font-size: 22px; }

.modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    transition: all var(--transition);
}

.modal .modal-close:hover { color: var(--text); transform: rotate(90deg); }

.modal .modal-body { color: var(--text); font-size: 15px; line-height: 1.8; }

.modal .modal-body ul {
    list-style: none;
    padding: 0;
}

.modal .modal-body ul li {
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.modal .modal-body ul li:last-child { border-bottom: none; }

.modal .modal-body img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.modal .modal-body .blog-detail-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text);
}

.modal .modal-body .blog-detail-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.modal .modal-body .blog-detail-meta .category-badge {
    background: var(--primary);
    color: white;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.modal .modal-body .blog-detail-meta .date-text {
    color: var(--text-light);
    font-size: 13px;
}

.modal .modal-body .blog-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.modal .modal-body .blog-detail-content ul li {
    padding: 6px 0 6px 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
    color: var(--text);
}

.modal .modal-body .blog-detail-content ul li:last-child { border-bottom: none; }

.modal .modal-body .blog-detail-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.modal .modal-body .blog-detail-content p {
    margin: 8px 0;
    color: var(--text);
    line-height: 1.8;
}

.modal .modal-body .blog-detail-content strong { color: var(--text); }

.modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.modal .modal-actions button {
    flex: 1;
    min-width: 80px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.modal .modal-actions button:hover { transform: translateY(-1px); }
.modal .modal-actions button:active { transform: scale(0.97); }

.modal .modal-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.modal .modal-actions .btn-primary:hover { background: var(--primary-dark); }

.modal .modal-actions .btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.modal .modal-actions .btn-secondary:hover { background: var(--border); }

.modal .modal-actions .btn-danger {
    background: #ef4444;
    color: white;
}

.modal .modal-actions .btn-danger:hover { background: #dc2626; }

.modal .modal-actions .btn-success {
    background: #10b981;
    color: white;
}

.modal .modal-actions .btn-success:hover { background: #059669; }

/* ============================================================
   BRAND CAROUSEL
   ============================================================ */

.brand-carousel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.brand-carousel .carousel-header {
    text-align: center;
    margin-bottom: 24px;
}

.brand-carousel .carousel-header h3 {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 4px;
}

.brand-carousel .carousel-header p {
    font-size: 14px;
    color: var(--text-light);
}

.brand-carousel .carousel-track-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brand-carousel .carousel-track {
    display: flex;
    gap: 10px;
    animation: scrollBrands var(--duration, 30s) linear infinite;
    width: max-content;
}

.brand-carousel .carousel-track.paused { animation-play-state: paused; }

.brand-carousel .brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0px 0px;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    border-radius: 20px;
    opacity: 0.7;
}

.brand-carousel .brand-item:hover {
    opacity: 1;
    transform: scale(1.1);
    background: var(--bg);
}

.brand-carousel .brand-item img {
    max-height: 140px;
    max-width: 260px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all var(--transition);
}

.brand-carousel .brand-item:hover img { filter: grayscale(0%); }

.brand-carousel .brand-item .brand-name {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
}

.brand-carousel .brand-item:hover .brand-name { color: var(--primary); }

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

.brand-carousel .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.brand-carousel .carousel-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.brand-carousel .carousel-controls button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.brand-carousel .toggle-btn {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition);
    font-family: inherit;
}

.brand-carousel .toggle-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .app-header .desktop-menu { display: none; }
    .menu-toggle-mobile { display: flex !important; }
    .mobile-menu-dropdown { display: none; }
    .mobile-menu-dropdown.active { display: block; }
    .projects-grid-4,
    .blog-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) 
  {
  :root { --header-height: 70px; --menu-height: 44px; --footer-height: 48px; }
  .app-header { padding: 0 8px; height: var(--header-height); min-height: var(--header-height); }
  .app-header .brand { height: 70px; }
  .app-header .brand img { height: 60px; width: 150px; }
  .header-btn { width: 36px; height: 36px; font-size: 16px; }
  .lang-btn { font-size: 12px; padding: 4px 8px; }
  .lang-btn .flag { font-size: 14px; }
  .app-content { padding: 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .contact-info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .page-hero h1 { font-size: 20px; }
  .page-hero img { max-height: 150px; }
  .stat-grid .stat-item .number { font-size: 22px; }
  .app-footer .footer-text { font-size: 10px; }
  .app-footer .footer-social a { font-size: 14px; }
  .toast-container { bottom: 60px; width: 95%; }
  .toast { font-size: 13px; padding: 8px 14px; }
  .mobile-menu-dropdown .menu-item { padding: 10px 16px; font-size: 14px; }
  .modal { padding: 20px 16px; margin: 10px; max-width: 100%; }
  .lang-dropdown { right: -10px; min-width: 140px; }
  }

@media (max-width: 640px) 
  {
  #appHeader { padding: 8px 10px !important; display: flex; align-items: center;  justify-content: space-between; gap: 4px; }
  .header-left { display: flex; align-items: center; gap: 4px; flex-shrink: 0; min-width: 0; }
  #logoImage, #logoFallback { width: 100px !important; height: 40px !important; max-width: 100px !important; max-height: 40px !important; object-fit: contain; }
  #brandLink { display: flex; align-items: center; flex-shrink: 0; }
  #menuToggle { padding: 4px 6px !important; font-size: 18px !important; margin-left: 2px; flex-shrink: 0; }
  #desktopMenu { display: none !important; }
  .header-right { display: flex; align-items: center; gap: 4px !important; flex-shrink: 0; margin-left: auto; }
  #themeToggle, .user-btn, .cart-btn { padding: 4px 6px !important; font-size: 16px !important; min-width: 30px !important; width: auto !important; flex-shrink: 0; }
  .lang-selector { flex-shrink: 0; }
  .lang-btn { padding: 2px 4px !important; font-size: 12px !important; gap: 2px !important; }
  .lang-btn .flag { font-size: 14px !important; }
  .lang-btn .code { font-size: 10px !important; }
  .lang-btn i { font-size: 8px !important; margin-left: 0 !important; }
  #mobileMenu { display: block; position: fixed; top: 60px; left: 0; width: 100%; background: var(--bg-color); box-shadow: var(--shadow-lg); transform: translateY(-150%); transition: transform 0.3s ease; z-index: 1000; padding: 10px 0; }
  #mobileMenu.active { transform: translateY(0); }
  }

@media (max-width: 400px) {
    .app-header .brand img { height: 50px; width: 140px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .lang-btn span.label { display: none; }
}

@media (min-width: 993px) {
    .mobile-menu-dropdown { display: none !important; }
}


.hero-melt-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.hero-melt-container div {
    position: absolute;
    overflow: hidden;
}

.hero-melt-container img {
    position: absolute;
    object-fit: cover;
}

.page-hero img {
    width: 100%;
    height: 512px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    max-height: 512px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}










/* Hero 3D Wrapper */
.hero-3d-wrapper {
    position: relative;
    width: 100%;
    height: 512px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    perspective: 800px;
    cursor: pointer;
}

.hero-3d-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    border-radius: var(--radius-sm);
}

.hero-3d-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}

.hero-3d-inner canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: var(--radius-sm);
}









/* 3D Küp */
#hero-cube {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: auto;
}

#hero-cube div {
    backface-visibility: visible !important;
}

#hero-cube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Küp yüzleri - hover efekti */
#hero-cube [id^="cube-face-"]:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.05) !important;
}