@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    --color-accent: #8B0000;
    --color-accent-light: #A30000;
    --color-text-dark: #1a1a1a;
    --color-text-muted: #6c757d;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar Tasarımı */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
html.dark ::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-light);
}

/* Glassmorphism Navbar */
.nav-transparent {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s ease;
}
html.dark .nav-transparent {
    background: rgba(10, 10, 10, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
}
html.dark .nav-scrolled {
    background: rgba(10, 10, 10, 0.75);
    border-bottom: 1px solid rgba(139, 0, 0, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* Tipografi Efektleri */
.text-metallic-dynamic {
    background: linear-gradient(to bottom right, #4a4a4a 0%, #1a1a1a 50%, #333333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    display: inline-block;
    transition: all 0.5s ease;
}
html.dark .text-metallic-dynamic {
    background: linear-gradient(to bottom right, #ffffff 0%, #b0b0b0 50%, #707070 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.text-soft-red-dynamic {
    color: var(--color-accent);
    text-shadow: 0 2px 10px rgba(139, 0, 0, 0.2);
    display: inline-block;
    transition: all 0.5s ease;
}
html.dark .text-soft-red-dynamic {
    color: #ffffff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--color-accent), 0 0 40px var(--color-accent), 0 0 80px var(--color-accent);
}

/* Premium Buton (Solid Red -> Gradient Neon in Dark) */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: var(--color-accent);
    text-transform: uppercase;
    transition: all 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    border: 1px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
    z-index: 1;
}

.btn-premium:hover {
    background-color: var(--color-accent-light);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
    transform: translateY(-2px);
    letter-spacing: 1px;
}

/* Dark mode button additions */
html.dark .btn-premium {
    background-color: transparent;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.2);
}
html.dark .btn-premium::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--color-accent), #330000, var(--color-accent-light));
    transition: all 0.5s ease;
}
html.dark .btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.95);
    border-radius: inherit;
    z-index: -1;
    transition: all 0.5s ease;
}
html.dark .btn-premium:hover::after {
    background-color: transparent; /* İçerik kırmızı gradient ile dolar */
}
html.dark .btn-premium:hover {
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6), 0 0 40px rgba(163, 0, 0, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    letter-spacing: 2px;
}

/* Hizmet Kartları 3D Hover & Apple Soft Shadow */
.service-card {
    background-color: var(--color-bg-white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(0,0,0,0.02);
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(3deg) rotateY(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 15px rgba(139, 0, 0, 0.05);
    z-index: 10;
}

html.dark .service-card {
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}
html.dark .service-card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg) rotateY(2deg);
    border-color: var(--color-accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 0, 0, 0.4);
}

.service-card .icon-wrapper {
    transition: all 0.4s ease;
    color: var(--color-text-muted);
}
.service-card:hover .icon-wrapper {
    transform: translateZ(25px);
    color: var(--color-accent);
}
html.dark .service-card:hover .icon-wrapper {
    color: var(--color-accent-light);
    text-shadow: 0 0 15px var(--color-accent);
}

.service-card h3 {
    color: var(--color-text-dark);
    transition: all 0.4s ease;
}
.service-card:hover h3 {
    transform: translateZ(15px);
    color: var(--color-accent);
}
html.dark .service-card h3 {
    color: #ffffff;
}
html.dark .service-card:hover h3 {
    color: var(--color-accent-light);
}

.service-card p {
    color: var(--color-text-muted);
    transition: all 0.4s ease;
}
.service-card:hover p {
    transform: translateZ(10px);
}
html.dark .service-card p {
    color: #a0a0a0;
}

/* Hero Section Base */
.hero-section {
    min-height: 100vh;
    background: #ffffff; /* Tam Apple Beyazı */
    transition: background 0.5s ease;
}
html.dark .hero-section {
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

/* Navbar Logo Işık Geçişleri (Shine) */
@keyframes nav-shine {
    0% { transform: translateX(-150%) skewX(-25deg); }
    15% { transform: translateX(250%) skewX(-25deg); }
    100% { transform: translateX(250%) skewX(-25deg); }
}
.animate-nav-shine {
    animation: nav-shine 5s ease-in-out infinite;
}

.shine-text {
    background: linear-gradient(120deg, #1a1a1a 0%, #1a1a1a 40%, #8B0000 50%, #1a1a1a 60%, #1a1a1a 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine-text-anim 5s linear infinite;
}
html.dark .shine-text {
    background: linear-gradient(120deg, #ffffff 0%, #ffffff 40%, #ff4d4d 50%, #ffffff 60%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
@keyframes shine-text-anim {
    0% { background-position: 200% center; }
    20% { background-position: -100% center; }
    100% { background-position: -100% center; }
}

/* Chat Sistemi */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: pulse-red-light 2s infinite;
}
html.dark .chat-button {
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
    animation: pulse-red-dark 2s infinite;
}

.chat-button:hover {
    transform: scale(1.1);
    background-color: var(--color-accent-light);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 400px;
    background-color: var(--color-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
html.dark .chat-window {
    background-color: #121212;
    border: 1px solid rgba(139, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background-color: var(--color-accent);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: white;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.chat-message.customer {
    align-self: flex-end;
    background-color: var(--color-accent);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-message.support {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: var(--color-text-dark);
    border-bottom-left-radius: 2px;
    transition: all 0.3s ease;
}
html.dark .chat-message.support {
    background-color: #222;
    color: white;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
}
html.dark .chat-input-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: transparent;
}

.chat-input {
    flex: 1;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--color-text-dark);
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
html.dark .chat-input {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: white;
}

.chat-input:focus {
    border-color: var(--color-accent);
}

.chat-send {
    background-color: var(--color-accent);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.chat-send:hover {
    background-color: var(--color-accent-light);
}

@keyframes pulse-red-light {
    0% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(139, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
}

@keyframes pulse-red-dark {
    0% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(139, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
}

/* ===== Premium Footer Hologram Animasyonu ===== */
.footer-hologram-logo {
    display: inline-block;
    perspective: 1000px;
}

.footer-letter {
    display: inline-block;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255,255,255,0.1);
    animation: footer-letter-glow 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
    transition: all 0.3s ease;
}

.footer-letter.footer-red {
    color: #8B0000;
    text-shadow: 0 0 5px rgba(139,0,0,0.3);
    animation: footer-letter-glow-red 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

.footer-letter.footer-space {
    animation: none;
}

/* Beyaz harfler için dalga animasyonu */
@keyframes footer-letter-glow {
    0%, 100% {
        color: #c0c0c0;
        text-shadow: 0 0 5px rgba(255,255,255,0.1);
        transform: translateY(0) rotateY(0deg) scale(1);
        filter: brightness(1);
    }
    15% {
        color: #ffffff;
        text-shadow: 0 0 15px rgba(255,255,255,0.8), 0 0 30px rgba(255,0,0,0.4), 0 0 50px rgba(255,0,0,0.2);
        transform: translateY(-8px) rotateY(360deg) scale(1.15);
        filter: brightness(1.5);
    }
    30% {
        color: #c0c0c0;
        text-shadow: 0 0 5px rgba(255,255,255,0.1);
        transform: translateY(0) rotateY(360deg) scale(1);
        filter: brightness(1);
    }
}

/* Kırmızı harfler için dalga animasyonu */
@keyframes footer-letter-glow-red {
    0%, 100% {
        color: #8B0000;
        text-shadow: 0 0 5px rgba(139,0,0,0.3);
        transform: translateY(0) rotateY(0deg) scale(1);
        filter: brightness(1);
    }
    15% {
        color: #ff3333;
        text-shadow: 0 0 20px rgba(255,0,0,1), 0 0 40px rgba(255,0,0,0.7), 0 0 60px rgba(255,0,0,0.4), 0 0 80px rgba(255,0,0,0.2);
        transform: translateY(-8px) rotateY(360deg) scale(1.15);
        filter: brightness(1.8);
    }
    30% {
        color: #8B0000;
        text-shadow: 0 0 5px rgba(139,0,0,0.3);
        transform: translateY(0) rotateY(360deg) scale(1);
        filter: brightness(1);
    }
}
