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

:root {
    --bg-dark: #050508; /* Daha derin bir siyah */
    --bg-card: rgba(15, 23, 42, 0.4); /* Daha şeffaf cam efekti */
    --bg-glass: rgba(255, 255, 255, 0.04);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.6);
    --secondary: #a855f7; /* Daha modern bir mor */
    --secondary-glow: rgba(168, 85, 247, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #2563eb;
    --secondary: #9333ea;
    --border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glows */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
}

body::before {
    top: -200px;
    left: -200px;
    background: var(--primary);
}

body::after {
    bottom: -200px;
    right: -200px;
    background: var(--secondary);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

/* Header & Navbar */
body > header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Section */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.card:hover::after {
    left: 150%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
    background: rgba(7, 9, 15, 0.8);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* AI Chat Interface */
.ai-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    z-index: 1000;
    transition: var(--transition);
}

.ai-chat-btn:hover {
    transform: scale(1.1);
}

.ai-chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
    overflow: hidden;
}

.ai-chat-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.chat-close {
    cursor: pointer;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.ai {
    background: var(--bg-glass);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    outline: none;
}

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

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border-radius: 12px;
    align-self: flex-start;
    width: fit-content;
    display: none;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: white;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

.notification.success {
    border-color: #10b981;
}

.notification.error {
    border-color: #ef4444;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ai-chat-box {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* WhatsApp Button */
.whatsapp-btn { position: fixed; bottom: 105px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: white; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; cursor: pointer; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 999; transition: var(--transition); text-decoration: none; }
.whatsapp-btn:hover { transform: scale(1.1) translateY(-5px); color: white; }

/* CORPORATE AGENCY BLOCKS */

/* Marquee / Infinite Scroll */
.marquee-container { width: 100%; overflow: hidden; background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 0; position: relative; }
.marquee-container::before, .marquee-container::after { content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; }
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
.marquee-content { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.marquee-item { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); margin: 0 3rem; display: flex; align-items: center; gap: 1rem; opacity: 0.5; transition: var(--transition); }
.marquee-item:hover { opacity: 1; color: var(--text-main); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Stats Counter */
.stats-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 4rem 2rem; text-align: center; }
.stat-box .stat-number { font-size: 3.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 0.5rem; }
.stat-box .stat-label { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }

/* Portfolio / Showcase */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.portfolio-item { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-glass); border: 1px solid var(--border); group; }
.portfolio-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.1); transition: var(--transition); background: linear-gradient(45deg, rgba(15,23,42,0.8), rgba(15,23,42,0.2)); }
.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; opacity: 0.9; }
.portfolio-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-cat { color: var(--primary); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Tech Stack */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.tech-item { width: 100px; height: 100px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; transition: var(--transition); }
.tech-item:hover { transform: translateY(-5px) rotate(5deg); border-color: var(--primary); color: var(--primary); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }
.tech-item i { font-size: 2.5rem; }
.tech-item span { font-size: 0.8rem; font-weight: 600; }

/* Testimonials */
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); padding: 3rem 2rem; border-radius: 20px; position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 1rem; left: 1.5rem; font-size: 6rem; color: rgba(255,255,255,0.05); font-family: serif; line-height: 1; }
.testimonial-text { font-size: 1.1rem; font-style: italic; color: var(--text-muted); margin-bottom: 2rem; position: relative; z-index: 1; }
.client-info { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.client-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: bold; }
.client-name { font-weight: 700; display: block; }
.client-role { color: var(--primary); font-size: 0.85rem; }

/* FAQ (Sıkça Sorulan Sorular) */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: var(--transition); }
.faq-question { padding: 1.5rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.faq-question i { color: var(--primary); transition: var(--transition); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: all 0.3s ease-in-out; color: var(--text-muted); line-height: 1.6; }
/* Pricing Tables */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 3rem 2rem; position: relative; transition: var(--transition); text-align: center; }
.pricing-card.popular { border-color: var(--primary); transform: translateY(-10px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2); }
.pricing-card.popular::before { content: 'En Çok Tercih Edilen'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: white; padding: 0.5rem 1.5rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pricing-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-main); }
.pricing-price { font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--primary); }
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.pricing-features li { margin-bottom: 1rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.8rem; }
.pricing-features li i { color: #10b981; }
.pricing-card:hover { transform: translateY(-15px); }

/* Theme Toggle Button */
.theme-toggle { background: transparent; border: 1px solid var(--border); color: var(--text-main); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); font-family: 'Outfit', sans-serif; font-size: 0.9rem; }
.theme-toggle:hover { background: var(--bg-glass); border-color: var(--primary); }
body.light-mode .portfolio-item .portfolio-overlay { background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
body.light-mode .portfolio-item .portfolio-img { background: linear-gradient(45deg, rgba(15,23,42,0.1), rgba(15,23,42,0.05)); color: rgba(0,0,0,0.1); }

/* Premium Payment Logos Styling */
.payment-logos-img {
    max-height: 45px;
    width: auto;
    opacity: 1 !important;
    filter: none !important;
    transition: var(--transition);
}
.payment-logos-img:hover {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.04);
}

/* Premium Logo Image Styling (Screen blending removes black background, invert makes it white-on-transparent) */
.logo-img {
    height: 40px !important;
    width: auto !important;
    mix-blend-mode: screen;
    filter: invert(1) brightness(1.2) contrast(1.2); /* Inverts black-on-white to white-on-black, screen blends away black */
    margin: 0 !important;
    transition: var(--transition);
    display: inline-block;
    vertical-align: middle;
}

.logo-img:hover {
    transform: scale(1.03);
    filter: invert(1) brightness(1.4) contrast(1.2) drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}
