/* --- TEMEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    --bg-color: #0A0914;
    --primary-blue: #4F46E5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --primary-purple: #2b074b;
    --text-light: #F9FAFB;
    --text-normal: #E5E7EB;
    --text-muted: #9CA3AF;
    --glass-bg: rgba(17, 24, 39, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--text-light); font-family: 'Inter', sans-serif; line-height: 1.7; overflow-x: hidden; position: relative; overflow-y: hidden; /* Preloader aktifken kaydırmayı engelle */ }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- YENİ: AÇILIŞ ANİMASYONU --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}
.preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-logo { width: 150px; animation: pulse 2s infinite ease-in-out; }
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- CANLI ARKA PLAN --- */
.aurora-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, var(--primary-blue), transparent 30%), radial-gradient(circle at 80% 70%, var(--primary-purple), transparent 30%); background-blend-mode: screen; opacity: 0.1; filter: blur(100px); z-index: -1; animation: rotateAurora 40s infinite linear alternate; }
@keyframes rotateAurora { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- HEADER --- */
.main-header { position: sticky; top: 0; z-index: 1000; padding: 20px 0; transition: all 0.4s ease; }
.main-header.is-scrolled { background-color: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); padding: 15px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo-img { height: 28px; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; position: relative; padding: 4px 0; }
.main-nav a.new-indicator::after { content: ''; position: absolute; top: 0; right: -10px; width: 6px; height: 6px; background-color: #FF3B30; border-radius: 50%; box-shadow: 0 0 5px #FF3B30; transition: opacity 0.3s ease, transform 0.3s ease; }
.main-nav a.new-indicator.dot-hidden::after { opacity: 0; transform: scale(0); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { background: #fff; color: var(--primary-blue); padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.header-cta:hover { background: var(--text-normal); transform: translateY(-2px); }

/* --- HERO BÖLÜMÜ --- */
.hero { padding: 100px 20px; text-align: center; }
.hero-title { font-size: 4rem; font-weight: 700; line-height: 1.1; letter-spacing: -2px; background: linear-gradient(120deg, var(--text-light), var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: fadeInUp 1s backwards; }
.hero-subtitle { max-width: 600px; margin: 24px auto 32px; font-size: 1.1rem; color: var(--text-muted); animation: fadeInUp 1s 0.2s backwards; }
.hero-cta-group { display: flex; justify-content: center; gap: 16px; animation: fadeInUp 1s 0.4s backwards; }
.cta-button { padding: 14px 28px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: 1px solid transparent; }
.cta-button.primary { background: var(--primary-blue); color: #fff; box-shadow: 0 0 20px rgba(79, 70, 229, 0.3); }
.cta-button.primary:hover { background: #6D28D9; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4); }
.cta-button.secondary { color: var(--text-muted); border-color: var(--glass-border); }
.cta-button.secondary:hover { color: var(--text-light); background: var(--glass-border); }
.hero-visual { margin-top: 80px; position: relative; animation: fadeInUp 1.2s 0.6s backwards; display: flex; align-items: center; justify-content: center; }
.hero-visual-glow { position: absolute; width: 50%; height: 50%; background: var(--primary-glow); filter: blur(100px); border-radius: 50%; z-index: 0; }
.hero-grid-bg { position: absolute; z-index: 1; max-width: 1000px; opacity: 0.15 }
.hero-phone-img { position: relative; z-index: 2; max-width: 350px; }
@keyframes slowRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- GENEL BÖLÜM STİLLERİ --- */
.trusted-by, .scrolly-section, .bento-section, .team-section, .success-story-section, .careers-section, .faq-section, .contact-section { padding: 120px 20px; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 60px; line-height: 1.2; }
.section-subtitle { max-width: 600px; margin: -40px auto 40px; color: var(--text-muted); font-size: 1.1rem; text-align: center; }

/* --- TRUSTED BY --- */
.trusted-by { padding: 0 20px 120px; }
.trusted-by p { font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 30px; text-align: center; }
.logo-slider { width: 100%; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.logos-track { display: flex; width: calc(250px * 10); animation: scrollLogos 40s linear infinite; }
.logo-slider:hover .logos-track { animation-play-state: paused; }
.logo-item { width: 250px; display: flex; align-items: center; justify-content: center; padding: 0 40px; transition: transform 0.3s ease; }
.logo-item:hover { transform: scale(1.1); }
.logo-item img { max-height: 40px; width: auto; max-width: 100%; filter: brightness(0) invert(1); opacity: 0.6; transition: all 0.4s ease; }
.logo-item:hover img { opacity: 1; }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- SCROLLYTELLING SECTION --- */
.scrolly-section { padding: 100px 0; }
.scrolly-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: flex-start; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sticky-visual { position: sticky; top: 150px; height: 70vh; }
.visual-wrapper { width: 100%; height: 100%; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.visual-placeholder { position: absolute; inset: 20px; opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease, transform 0.6s ease; }
.visual-placeholder.active { opacity: 1; transform: scale(1); }
.visual-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.scroll-content { display: flex; flex-direction: column; }
.step { padding: 15vh 0; border-left: 2px solid var(--glass-border); padding-left: 30px; opacity: 0.4; transition: opacity 0.4s, border-left-color 0.4s; }
.step.active { opacity: 1; border-left-color: var(--primary-blue); }
.step h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-light); }
.step p { color: var(--text-muted); }

/* --- BENTO GRID SECTION --- */
.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); gap: 20px; }
.bento-item { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 30px; border-radius: 24px; transition: background-color 0.3s, transform 0.3s; }
.bento-item:hover { background-color: rgba(17, 24, 39, 0.7); transform: translateY(-5px); }
.bento-icon { color: var(--primary-blue); margin-bottom: 20px; }
.bento-icon svg { width: 28px; height: 28px; }
.bento-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.bento-item p { font-size: 0.9rem; color: var(--text-muted); }
.item-large { grid-column: span 2; }
.testimonial-author { font-size: 0.8rem !important; font-style: italic; margin-top: 15px; }

/* --- TEAM SECTION --- */
.team-members { display: flex; justify-content: center; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.team-member { text-align: center; position: relative; }
.team-member-photo { width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--glass-border); margin: 0 auto 20px auto; object-fit: cover; transition: all 0.4s ease; }
.team-member:hover .team-member-photo { transform: scale(1.05); box-shadow: 0 0 30px var(--primary-glow); }
.team-member h3 { font-size: 1.4rem; margin-bottom: 5px; }
.team-member p { font-weight: 500; margin-bottom: 15px; color: var(--text-muted); }
.team-socials { display: flex; justify-content: center; gap: 15px; opacity: 0; transform: translateY(10px); transition: opacity 0.3s 0.1s, transform 0.3s 0.1s; }
.team-member:hover .team-socials { opacity: 1; transform: translateY(0); }
.team-socials a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.team-socials a:hover { color: var(--primary-blue); }

/* --- SUCCESS STORY --- */
.success-story-section { padding: 0 20px 120px; }
.story-content { text-align: center; max-width: 800px; margin: 0 auto; }
.story-tagline { font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; color: var(--primary-blue); margin-bottom: 16px; }
.story-content h3 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 20px; }
.story-description { color: var(--text-muted); font-style: italic; margin-bottom: 40px; }
.story-metrics { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.metric-item strong { display: block; font-size: 2rem; color: var(--text-light); }
.metric-item span { font-size: 0.9rem; color: var(--text-muted); }

/* --- CAREERS SECTION --- */
.careers-section { text-align: center; background: radial-gradient(ellipse at top, rgba(79, 70, 229, 0.1), transparent 70%); }

/* --- FAQ SECTION --- */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; transition: background-color 0.3s; }
.faq-item.active { background-color: rgba(17, 24, 39, 0.7); }
.faq-question { width: 100%; text-align: left; padding: 20px; background: none; border: none; color: var(--text-light); font-weight: 600; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 20px 20px; color: var(--text-muted); }

/* --- CONTACT / SCRATCH CARD --- */
.contact-header { text-align: center; }
.contact-header .contact-sub-title { color: var(--primary-blue); font-weight: 600; margin-bottom: 20px; display: block; text-transform: uppercase; letter-spacing: 1.5px; }
.contact-header .section-title { margin-bottom: 20px; }
.contact-header .section-subtitle { margin-top: 0; margin-bottom: 60px; }
.scratch-card-container { width: 100%; max-width: 480px; height: 270px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 0 80px var(--primary-glow); border: 1px solid var(--primary-blue); position: relative; background-color: var(--glass-bg); }
.contact-info { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; z-index: 1; text-align: center; }
.contact-info h4 { font-size: 1.5rem; color: var(--text-light); margin-bottom: 15px; }
.contact-info p { font-size: 1.1rem; color: var(--text-muted); margin: 10px 0; }
.contact-info i { color: var(--primary-blue); margin-right: 15px; font-size: 1.2rem; }
#scratch-canvas { position: absolute; top:0; left:0; width:100%; height:100%; z-index:2; cursor: cell; }

/* --- SERVICES SECTION --- */
.services-section { padding: 120px 20px; background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.05), transparent 70%); }
.services-header { text-align: center; margin-bottom: 70px; }
.services-header .section-sub-title { color: var(--primary-blue); font-weight: 600; margin-bottom: 20px; display: block; text-transform: uppercase; letter-spacing: 1.5px; }
.services-header .section-title { margin-bottom: 20px; }
.services-header .section-subtitle { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 40px 30px; border-radius: 16px; text-align: center; transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); background-color: rgba(25, 35, 50, 0.5); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.service-icon { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 25px; display: inline-block; }
.service-card h3 { font-size: 1.3rem; color: var(--text-light); margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- FOOTER --- */
.main-footer-bottom { padding: 50px 20px 20px 20px; color: var(--text-muted); background-color: rgba(10, 9, 20, 0.5); border-top: 1px solid var(--glass-border); }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin: 0 auto; }
.footer-right a { color: var(--text-muted); text-decoration: none; margin-left: 20px; transition: color 0.3s ease; }
.copyright { text-align: center; margin-top: 40px; font-size: 0.9rem; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ====================================================== */
/* ============= RESPONSIVE STYLES START HERE ============= */
/* ====================================================== */

/* --- HAMBURGER MENU --- */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1011; /* Above header */
}
.hamburger-bar {
    width: 2rem;
    height: 0.2rem;
    background: var(--text-light);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    transform-origin: 1px;
}
/* Hamburger "X" animation */
.hamburger-menu.is-open .hamburger-bar:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.is-open .hamburger-bar:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.hamburger-menu.is-open .hamburger-bar:nth-child(3) { transform: rotate(-45deg); }

/* --- Tablet and Smaller Desktop --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .scrolly-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* --- Mobile Menu Breakpoint & General Tablet --- */
@media (max-width: 850px) {
    .header-container { justify-content: space-between; }
    .nav-wrapper {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(10, 9, 20, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-wrapper.is-open { max-height: 100vh; }
    .nav-wrapper .main-nav, .nav-wrapper .header-actions { display: flex; flex-direction: column; width: 100%; text-align: center; }
    .nav-wrapper .main-nav { padding: 20px 0; gap: 0; }
    .nav-wrapper .main-nav a { padding: 15px 20px; font-size: 1rem; color: var(--text-normal); }
    .main-nav a.new-indicator::after { right: calc(50% - 40px); }
    .nav-wrapper .header-actions { padding: 20px; border-top: 1px solid var(--glass-border); }
    .nav-wrapper .header-cta { display: block; width: 100%; text-align: center; }
    .hamburger-menu { display: flex; }
    .scrolly-container { grid-template-columns: 1fr; }
    .sticky-visual { position: relative; top: 0; height: 300px; margin-bottom: 50px; }
}

/* --- General Mobile Devices --- */
@media (max-width: 768px) {
    body { line-height: 1.6; }
    .hero { padding: 80px 20px 60px; }
    .hero-title { font-size: 2.8rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1rem; }
    .hero-phone-img { max-width: 280px; }
    .trusted-by, .scrolly-section, .bento-section, .success-story-section, .careers-section, .faq-section, .contact-section, .services-section { padding: 80px 20px; }
    .section-title { font-size: 2rem; margin-bottom: 40px; }
    .section-subtitle { font-size: 1rem; }
    .logo-item { width: 200px; padding: 0 20px; }
    .logos-track { width: calc(200px * 10); }
    .bento-grid { grid-template-columns: 1fr; }
    .item-large { grid-column: span 1; }
    .services-grid { grid-template-columns: 1fr; }
    .story-metrics { flex-direction: column; gap: 30px; align-items: center; }
    .footer-container { text-align: center; flex-direction: column; }
    .footer-right a { margin: 0 10px; }
}

/* --- Small Mobile Devices --- */
@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-cta-group { flex-direction: column; align-items: stretch; }
    .cta-button { width: 100%; }
    .scratch-card-container { height: auto; aspect-ratio: 16 / 9; max-width: 100%; }
    .contact-info h4 { font-size: 1.2rem; }
    .contact-info p { font-size: 1rem; }
    .scrolly-section { padding: 60px 0; }
    .step { padding: 10vh 0 10vh 20px; }
    .step h3 { font-size: 1.5rem; }
    .team-members { gap: 30px; }
}