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

:root {
    --bg-color: #020205;
    --primary: #8b5cf6;
    --secondary: #6366f1;
    --accent: #ff2a5f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Nav Pill Background */
    --nav-bg: rgba(255, 255, 255, 0.05);
    --nav-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed header */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Arc */
.bg-arc {
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 100vh;
    background: radial-gradient(ellipse at bottom, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 150px 80px rgba(99, 102, 241, 0.1);
    z-index: -1;
    pointer-events: none;
}

/* Base Glassmorphism Class - retained for compatibility with other elements like project cards */
.glass {
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--nav-border);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    transform: translateZ(0); /* Hardware Acceleration */
}

/* Navbar */
nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    background: rgba(2, 2, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    color: var(--text-main);
}

.pill-menu {
    display: flex;
    align-items: center;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    padding: 10px 25px;
    gap: 30px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    transform: translateZ(0);
}

.pill-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.3s;
}

.pill-menu a:hover {
    color: var(--accent);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.lang-btn:hover {
    color: var(--text-main);
}

.btn-outline-glow {
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-outline-glow:hover {
    background: var(--primary);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

/* Sections */
section {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    content-visibility: auto;
}

/* Hero Section */
#hero {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 100px;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-outline {
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-main {
    border-color: var(--primary);
    box-shadow: none;
    padding: 12px 30px;
}
.btn-main:hover {
    background: transparent;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.6;
    animation: bounce 2s infinite;
    pointer-events: none;
    z-index: 5;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--text-muted);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

.btn-solid {
    padding: 15px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px -10px var(--accent);
}

.btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px var(--accent);
}

/* Client Banner */
.client-banner {
    width: 100%;
    background: linear-gradient(90deg, #ff2a5f, #8b5cf6, #6366f1);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    margin-top: 50px;
    margin-bottom: 60px;
}

.logo-track {
    display: flex;
    width: calc(200px * 14);
    animation: scroll 25s linear infinite;
    will-change: transform;
}

.logo-track img {
    width: 200px;
    padding: 0 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.service-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(255, 42, 95, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

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

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.project-img {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    object-fit: contain;
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Contact Form */
.contact-container {
    width: 100%;
    max-width: 600px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

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

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: white;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .services-grid, .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        top: 15px;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        height: auto;
    }

    .pill-menu {
        position: static !important;
        transform: none !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 12px 20px;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-social {
        align-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .logo-track img {
        width: 150px;
    }

    .logo img {
        height: 55px !important;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .pill-menu {
        gap: 10px;
        font-size: 13px;
    }
    
    .pill-menu a {
        font-size: 13px;
    }
}

/* ==========================================
   YENİ BÖLÜMLER: STATS, PROCESS, FAQ
   ========================================== */

/* Stats Grid */
.stats-grid .stat-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stats-grid .stat-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--primary);
}
.stats-grid .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    margin-bottom: 2px;
}
.stats-grid .stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}
.process-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.process-card .step-num {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}
.process-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}
.faq-answer {
    max-height: 0;
    padding: 0 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}
.faq-item.active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.03);
}
.faq-toggle-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important;
    }
    .process-grid {
        grid-template-columns: 1fr !important;
    }
    .process-card .step-num { font-size: 3.5rem; }
    
    .faq-answer { font-size: 0.85rem; }
    .faq-question { padding: 15px 20px; font-size: 0.9rem; }
}
