/* Kod Yazarı: Digitolye */

/* =========================================
   1. GENEL AYARLAR
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #faf9f6;
    --accent-color: #590004; /* Bordo */
    --text-main: #2c2c2c;
    --text-light: #ffffff;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { 
    scroll-behavior: auto; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

body.no-scroll { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. SECTIONS
   ========================================= */
.sticky-section {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 100vh; 
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden; 
    box-shadow: 0 -10px 20px rgba(0,0,0,0.1); 
}

.services-section { 
    position: relative; 
    background-color: var(--bg-color); 
    z-index: 2; 
    padding-top: 150px; 
    padding-bottom: 80px;
    min-height: 100vh;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.1);
}

.contact-section { 
    position: relative;
    background-color: #fff; 
    z-index: 3; 
    padding-top: 80px;
    padding-bottom: 50px;
}

/* =========================================
   3. NAVİGASYON
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.logo {
    display: block; width: 180px; height: auto; transition: var(--transition); cursor: pointer;
}
.logo img { width: 100%; height: auto; display: block; object-fit: contain; }
@media (max-width: 768px) { .logo { width: 140px; } }

.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-link { 
    font-weight: 500; font-size: 0.95rem; color: var(--text-main);
    transition: var(--transition); position: relative; cursor: pointer;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--accent-color);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--accent-color); }

.lang-switcher { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 0.9rem; }
.lang-btn { cursor: pointer; opacity: 0.5; transition: 0.3s; }
.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; color: var(--accent-color); }
.divider { opacity: 0.3; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* =========================================
   4. HERO & CONTENT (VIDEO GÜNCELLEMESİ)
   ========================================= */
.hero-section { color: var(--text-light); z-index: 1; height: 100vh; justify-content: center; padding-top: 0; overflow: hidden; }

.video-wrapper { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; 
}

/* YENİ VIDEO STİLLERİ (IFRAME YERİNE) */
video.desktop-video, video.mobile-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Videoyu ekrana tam doldur, taşanı kes */
    z-index: -1;
}

.overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.3); /* Hafif bir ton (logoyu göstermek için) */
    z-index: 1; 
}

.mobile-video { display: none; } 
.desktop-video { display: block; }

/* İçerik (hero-content) kaldırıldığı için stili silebiliriz, ama yapıyı bozmamak adına boş bırakıyoruz */

.btn-primary { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--text-main); padding: 1.2rem 3rem; border-radius: 50px; font-weight: 600; transition: var(--transition); }
.btn-primary:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* =========================================
   5. HİZMETLER GRID
   ========================================= */
.container { width: 90%; max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-family: var(--font-title); font-size: 3.5rem; margin-bottom: 0.5rem; color: var(--text-main); }
.section-desc { display: none; } 

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-bottom: 2rem; align-items: start; opacity: 1 !important; visibility: visible !important; transform: none !important; }

.service-item { background: #fff; border-radius: 20px; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; transition: var(--transition); border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 10px 30px rgba(0,0,0,0.02); cursor: pointer; height: 100%; opacity: 1 !important; transform: none !important; }
.service-item:hover { transform: translateY(-8px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: rgba(89, 0, 4, 0.2); }
.service-icon { width: 120px; height: 120px; margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.service-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.05)); }
.service-item:hover .service-icon { transform: scale(1.08); }
.service-item h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: #333; line-height: 1.4; max-width: 90%; }

/* =========================================
   6. İLETİŞİM
   ========================================= */
.split-layout { display: flex; gap: 5rem; align-items: center; }
.contact-info, .contact-form-wrapper { flex: 1; }
.contact-details { margin-top: 2rem; }
.contact-details li { margin-bottom: 1.5rem; display: flex; gap: 20px; align-items: center; font-weight: 500; font-size: 1.1rem; }
.contact-details i { color: var(--accent-color); font-size: 1.5rem; width: 30px; text-align: center; }

.contact-link { color: var(--text-main); transition: var(--transition); text-decoration: none; }
.contact-link:hover { color: var(--accent-color); text-decoration: underline; }

.contact-form { background: var(--bg-color); padding: 3rem; border-radius: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; font-family: var(--font-body); font-size: 1rem; transition: var(--transition); outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(89, 0, 4, 0.1); }
.btn-submit { width: 100%; padding: 1rem; background: var(--text-main); color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 1.1rem; transition: var(--transition); }
.btn-submit:hover { background: var(--accent-color); transform: translateY(-2px); }
footer { margin-top: auto; padding: 1.5rem 0; text-align: center; color: #999; font-size: 0.9rem; border-top: 1px solid #f0f0f0; }

/* =========================================
   7. POPUP & SLIDERS (STRICT SNAP)
   ========================================= */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.4s ease; display: flex; align-items: center; justify-content: center; }
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-wrapper { position: relative; width: 95%; max-width: 1100px; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.popup-close { position: absolute; top: -50px; right: 0; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; transition: transform 0.3s ease; z-index: 2100; }
.popup-close:hover { transform: rotate(90deg) scale(1.1); }
.popup-content { width: 100%; display: flex; justify-content: center; align-items: center; animation: popupFadeIn 0.5s ease; }
@keyframes popupFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.text-popup { background: #fff; padding: 3rem; border-radius: 20px; max-width: 600px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.text-popup h2 { font-family: var(--font-title); font-size: 2rem; margin-bottom: 1.5rem; color: var(--accent-color); }
.text-popup p { color: #555; font-size: 1.1rem; line-height: 1.8; }
.text-popup .divider { width: 50px; height: 3px; background: var(--accent-color); margin: 1.5rem auto; border-radius: 5px; opacity: 0.5; }

.slider-wrapper-all { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 20; transition: all 0.3s; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.nav-btn:hover { background: #fff; color: #000; }
.nav-btn.prev { left: -60px; } .nav-btn.next { right: -60px; }

.iphone-frame { position: relative; width: 320px; height: 650px; background: #000; border-radius: 50px; border: 10px solid #222; box-shadow: 0 0 0 2px #444, 0 30px 60px rgba(0,0,0,0.4); overflow: hidden; margin: 0 auto; flex-shrink: 0; }
.dynamic-island { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 90px; height: 28px; background: #000; border-radius: 20px; z-index: 10; }
.iphone-screen { width: 100%; height: 100%; background: #000; border-radius: 38px; overflow: hidden; position: relative; }

.slider-container, .simple-slider, .video-slider { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; width: 100%; scrollbar-width: none; cursor: grab; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.slider-container::-webkit-scrollbar, .simple-slider::-webkit-scrollbar, .video-slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; display: flex; align-items: center; justify-content: center; background: #000; }
.slide img { width: 100%; height: 100%; object-fit: contain; }

.video-slider-wrapper { width: 100%; max-width: 900px; height: 600px; position: relative; overflow: hidden; display: flex; justify-content: center; }
.video-slider { align-items: center; gap: 30px; padding: 0 20px; }
.video-slide.link-mode { flex: 0 0 auto; width: 300px; height: 533px; scroll-snap-align: center; scroll-snap-stop: always; position: relative; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 15px 40px rgba(0,0,0,0.4); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.video-slide.link-mode:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.video-card-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; text-decoration: none; position: relative; background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%); }
.video-card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.5; }
.play-icon-wrapper { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 1.5rem; transition: all 0.3s ease; z-index: 2; }
.video-card-link:hover .play-icon-wrapper { background: #fff; transform: scale(1.1); }
.play-icon-wrapper i { font-size: 1.8rem; color: #fff; margin-left: 4px; transition: color 0.3s; }
.video-card-link:hover .play-icon-wrapper i { color: var(--accent-color); }
.video-info { text-align: center; z-index: 2; padding: 0 1rem; width: 100%; }
.brand-badge { display: inline-block; background: linear-gradient(135deg, #590004 0%, #8a0006 100%); color: #fff; padding: 0.6rem 1.2rem; border-radius: 30px; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 1rem; box-shadow: 0 5px 15px rgba(89, 0, 4, 0.4); border: 1px solid rgba(255,255,255,0.1); width: auto; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-info p { font-size: 1rem; font-weight: 500; line-height: 1.4; opacity: 0.8; }
.instagram-badge { position: absolute; bottom: 30px; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.simple-slider-wrapper { background: transparent; width: 100%; max-width: 800px; height: 500px; overflow: hidden; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.simple-slider { gap: 0; padding-bottom: 0; align-items: center; }
.simple-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.simple-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 1200px) { .services-grid { gap: 1.5rem; } .service-icon { width: 100px; height: 100px; } }
@media (max-width: 1024px) { .main-title { font-size: 3.5rem; } .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .contact-form { padding: 2.5rem; } .split-layout { gap: 3rem; } }
@media (max-width: 768px) {
    /* MOBILE VIDEO GÖSTERİMİ */
    .desktop-video { display: none; } .mobile-video { display: block; }
    
    .navbar { padding: 1rem 1.5rem; background: rgba(255,255,255,0.98); } .menu-toggle { display: block; z-index: 1002; }
    .nav-list { position: fixed; top: 0; right: -100%; height: 100vh; width: 100%; background: #fff; flex-direction: column; justify-content: center; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1001; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    .nav-list.active { right: 0; } .nav-list a { font-size: 1.8rem; margin-bottom: 1.5rem; font-family: var(--font-title); }
    .sticky-section { position: relative; height: auto !important; display: block; padding: 4rem 0; overflow: visible; }
    .hero-section { height: 100vh !important; padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
    .hero-content { margin-top: 0; text-align: center; padding: 0 1.5rem; } .main-title { font-size: 2.8rem; }
    .services-section { padding-top: 5rem; padding-bottom: 2rem; } .section-title { font-size: 2.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .service-item { padding: 1.5rem 0.5rem; border-radius: 16px; }
    .service-icon { width: 70px; height: 70px; margin-bottom: 0.8rem; } .service-item h3 { font-size: 0.9rem; }
    .split-layout { flex-direction: column; gap: 3rem; } .contact-form { padding: 2rem; width: 100%; border-radius: 20px; } .form-group input, .form-group textarea { padding: 1rem; font-size: 16px; }
    .iphone-frame { width: 280px; height: 580px; border-width: 8px; }
    .video-slider-wrapper { max-width: 300px; height: 533px; } .simple-slider-wrapper { height: 300px; }
    .text-popup { padding: 2rem 1.5rem; margin: 0 1rem; } .text-popup h2 { font-size: 1.5rem; }
    .nav-btn.prev { left: -10px; } .nav-btn.next { right: -10px; } .nav-btn { width: 40px; height: 40px; font-size: 1rem; background: rgba(0,0,0,0.5); border: none; }
}