/* ============================================
   EBE TECH - Professional Suspension Systems
   ============================================ */

:root {
    /* EBA TECH Logo renk paleti - Logo mavi tonları */
    --color-primary: #2D5AA0;
    --color-primary-dark: #1e3d6e;
    --color-accent: #3B5BFF;
    --color-accent-hover: #5B7BFF;
    --color-surface: #0a0a0f;
    --color-surface-light: #14141f;
    --color-text: #e8edf2;
    --color-text-muted: #94a3b8;
    --color-border: rgba(59, 91, 255, 0.15);
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-surface);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========== Nav Right (Lang + Menu) ========== */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Masaüstü: Eski hali - sağ üstte sabit floating */
@media (min-width: 769px) {
    .nav-right {
        gap: var(--space-xl);
    }
    
    .lang-switcher {
        position: fixed;
        top: var(--space-md);
        right: var(--space-md);
        z-index: 1000;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        background: rgba(45, 90, 160, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 6px 10px;
        border: 1px solid var(--color-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .lang-switcher .lang-btn {
        padding: 6px 12px;
    }
    
    .lang-switcher .lang-img {
        width: 24px;
        height: 24px;
    }
}

/* Mobil: Header içinde, kompakt ve düzenli */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding: 3px 4px;
        gap: 1px;
        order: 1;
    }
    
    .lang-switcher .lang-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        min-height: 36px;
        gap: 5px;
    }
    
    .lang-switcher .lang-img {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        border-radius: 4px;
    }
    
    .lang-switcher .lang-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .lang-switcher .lang-btn {
        padding: 4px 6px;
        gap: 4px;
    }
    
    .lang-switcher .lang-img {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .lang-switcher .lang-label {
        display: none;
    }
}

/* Language Switcher - Profesyonel Bayrak Tasarımı */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--color-border);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
}

.lang-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
    background: rgba(59, 91, 255, 0.25);
    color: var(--color-accent);
    border: 1px solid rgba(59, 91, 255, 0.5);
}

.lang-btn.active .lang-img {
    box-shadow: 0 0 0 2px rgba(59, 91, 255, 0.6);
}

.lang-img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

.lang-label {
    letter-spacing: 0.02em;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

.logo-img {
    height: 54px;
    max-height: 54px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px var(--space-md) var(--space-2xl);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 91, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 91, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 90, 160, 0.5), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(59, 91, 255, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(45, 90, 160, 0.35), transparent);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-title-main {
    display: block;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.hero-desc {
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 91, 255, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ========== Section Common ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ========== Categories ========== */
.categories {
    padding: var(--space-2xl) 0;
    background: var(--color-surface-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background: rgba(45, 90, 160, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 91, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.category-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== About ========== */
.about {
    padding: var(--space-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
}

.about-features {
    list-style: none;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.about-features .check {
    color: var(--color-accent);
    font-weight: 700;
}

.about-card {
    display: flex;
    gap: var(--space-xl);
    background: rgba(45, 90, 160, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.about-stat {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========== Contact ========== */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--color-surface-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-card {
    background: rgba(45, 90, 160, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-base);
}

.contact-card:hover {
    border-color: rgba(59, 91, 255, 0.3);
    transform: translateY(-2px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    color: var(--color-accent);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.contact-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-link {
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-accent-hover);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.map-link-wrap {
    text-align: center;
    padding: var(--space-sm) 0;
}

.map-link {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.map-link:hover {
    color: var(--color-accent-hover);
}

/* ========== Catalog ========== */
.catalog {
    padding: var(--space-2xl) 0;
}

.catalog-content {
    max-width: 500px;
    margin: 0 auto;
}

.catalog-placeholder {
    background: rgba(45, 90, 160, 0.3);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.catalog-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.catalog-placeholder p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* ========== Fixed Action Buttons (FAB) ========== */
.fab {
    position: fixed;
    bottom: var(--space-lg);
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fab svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 2;
}

/* Phone FAB - Sol Alt - Kırmızı Telefon Araması */
.fab-phone {
    left: var(--space-lg);
    bottom: var(--space-lg);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.fab-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 35px rgba(220, 38, 38, 0.6);
}

.fab-phone .fab-ring {
    border-color: #dc2626;
}

/* WhatsApp FAB - Sağ Alt - Dikkat Çekici */
.fab-whatsapp {
    right: var(--space-lg);
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 35px rgba(37, 211, 102, 0.6);
}

.fab-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid #25D366;
    opacity: 0.5;
    animation: fabRing 2s ease-out infinite;
    z-index: 1;
}

@keyframes fabRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ========== Footer ========== */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .footer-logo-wrap {
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

.footer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-right {
        gap: var(--space-sm);
    }
    
    .nav-toggle {
        order: 2;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-surface-light);
        flex-direction: column;
        padding: 80px var(--space-lg) var(--space-lg);
        gap: var(--space-md);
        border-left: 1px solid var(--color-border);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 101;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-card {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 44px;
        max-height: 44px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .fab {
        width: 50px;
        height: 50px;
    }
    
    .fab-phone {
        left: var(--space-md);
        bottom: var(--space-md);
    }
    
    .fab-whatsapp {
        right: var(--space-md);
        bottom: var(--space-md);
    }
    
    .fab svg {
        width: 24px;
        height: 24px;
    }
}
