/*
 * TALYA DRONE - SİNEMATİK v2.2 - TAM STİL DOSYASI
 */

/* -------------------------
 * Global Ayarlar ve Renkler
 * ------------------------- */
:root {
    --primary-color: #FD4F00;
    /* Logonuzdaki canlı turuncu */
    --dark-bg: #121212;
    /* Ana koyu arka plan */
    --darker-bg: #0a0a0a;
    /* İkincil koyu arka plan */
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
}

html {
    overflow-x: hidden;
    /* Yatay kaymayı burada engelliyoruz */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* -------------------------
 * YENİ: Yandan Açılır Mobil Menü (Off-Canvas)
 * ------------------------- */
.offcanvas {
    background-color: var(--darker-bg);
    /* Sitenizin en koyu rengi */
    color: var(--text-light);
    border-left: 1px solid #333;
}

.offcanvas-header {
    border-bottom: 1px solid #333;
}

/* Başlık (TALYA DRONE) */
.offcanvas-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.offcanvas-title strong {
    color: var(--primary-color);
    /* Turuncu */
}

/* Mobil menü linkleri */
.offcanvas-body .navbar-nav {
    width: 100%;
}

.offcanvas-body .nav-item {
    margin-bottom: 0.5rem;
}

.offcanvas-body .nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.75rem 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* Linklerin üzerine gelince */
.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    color: var(--primary-color);
    transform: translateX(5px);
    /* Hafif sağa kayma efekti */
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.bg-dark-custom {
    background-color: var(--dark-bg);
}

.bg-darker-custom {
    background-color: var(--darker-bg);
}

.bg-black {
    background-color: #000;
}

/* -------------------------
 * Özel Buton Stilleri
 * ------------------------- */
.btn {
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-custom-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-custom-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(253, 79, 0, 0.3);
}

.btn-custom-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-custom-secondary:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* -------------------------
 * Navigasyon Menüsü
 * ------------------------- */
#mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

#mainNav .navbar-brand {
    color: #fff;
    font-size: 1.5rem;
}

#mainNav .navbar-brand strong {
    color: var(--primary-color);
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    margin: 0 0.5rem;
    position: relative;
    padding-bottom: 8px;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #fff;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 50%;
}

.btn-cta-nav {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-cta-nav:hover {
    background-color: var(--primary-color);
    color: #fff;
}

#mainNav.navbar-scrolled {
    background-color: var(--dark-bg);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------
 * Hero (Video Arka Plan)
 * ------------------------- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* -------------------------
 * Akıcı Başlık Animasyonu
 * ------------------------- */
.hero-heading-animated .hero-heading-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
}

.hero-heading-animated .hero-heading-line span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-heading-animated.is-visible .hero-heading-line span {
    transform: translateY(0);
}

.hero-heading-animated.is-visible .hero-heading-line:nth-child(2) span {
    transition-delay: 0.15s;
}

/* -------------------------
 * Hizmet Kartları
 * ------------------------- */
.service-card {
    background-color: var(--darker-bg);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #333;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-description {
    color: var(--text-muted);
}

/* -------------------------
 * Önce/Sonra Slider
 * ------------------------- */
.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    cursor: ew-resize;
    /* Yatay kaydırma imleci */
}

.before-after-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
    /* JS ile değişecek */
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    /* JS ile değişecek */
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-handle:before {
    /* Turuncu daire */
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-arrow {
    position: absolute;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1;
}

.handle-arrow-left {
    left: -20px;
}

.handle-arrow-right {
    right: -20px;
}

/* -------------------------
 * Portfolyo Video
 * ------------------------- */
.portfolio-item-video {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.portfolio-item-video img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.portfolio-item-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 5rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item-video .portfolio-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.portfolio-item-video:hover img {
    transform: scale(1.05);
}

.portfolio-item-video:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%);
    opacity: 1;
}

.portfolio-item-video:hover .play-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.portfolio-item-video:hover .portfolio-title {
    transform: translateY(-10px);
}

/* -------------------------
 * Neden Biz? (Farkımız) Bölümü
 * ------------------------- */
.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.feature-text {
    font-size: 1rem;
    padding: 0 1rem;
}

/* -------------------------
 * CTA (Parallax Efektli)
 * ------------------------- */
#cta {
    position: relative;
    padding: 8rem 0;
    /* Kendi görselinizi buraya ekleyebilirsiniz */
    background: url('https://images.unsplash.com/photo-1508836589308-a906d4e332c8?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* -------------------------
 * Footer
 * ------------------------- */
.footer-section {
    border-top: 1px solid #222;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* -------------------------
 * Sayfa İlerleme Çubuğu
 * ------------------------- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--primary-color);
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* -------------------------
 * Parallax HUD Grafikleri
 * ------------------------- */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out;
}

.hud-item {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    transform: translateZ(0);
}

.hud-top-right {
    top: 40px;
    right: 50px;
    text-align: right;
}

.hud-bottom-left {
    bottom: 40px;
    left: 50px;
}

.hud-bottom-right {
    bottom: 40px;
    right: 50px;
    text-align: right;
}

/* -------------------------
 * Mouseyi Takip Eden 3D Drone
 * ------------------------- */
#drone-perspective-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    perspective: 800px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#drone-perspective-wrapper.is-visible {
    opacity: 1;
}

#mouse-drone {
    width: 60px;
    height: 60px;
    transform-style: preserve-d;
    transform: translate(-50%, -50%);
}

#mouse-drone svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5));
}

/* -------------------------
 * İLETİŞİM SAYFASI STİLLERİ
 * ------------------------- */

/* Diğer sayfalar için genel başlık stili */
.page-header {
    /* Hero görselini biraz koyulaştırarak kullanıyoruz */
    /* Lütfen /videos/ klasörünüzdeki bir görselle değiştirin veya böyle bırakın */
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('https://images.unsplash.com/photo-1508836589308-a906d4e332c8?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax efekti */
    padding: 8rem 0;
    margin-top: 85px;
    /* Navbar'ın yüksekliği (navbar-scrolled halinden biraz fazla) */
}

.page-header .page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
}

.page-header .page-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Tıklanabilir iletişim listesi */
.contact-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-list-item .contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    padding-top: 0.25rem;
}

.contact-list-item .contact-info h5 {
    font-weight: 700;
    color: #fff;
}

.contact-list-item .contact-info .contact-link {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list-item .contact-info .contact-link:hover {
    color: var(--primary-color);
}

/* Harita sarmalayıcısı (temayla uyumlu) */
.map-embed-wrapper {
    border-radius: 10px;
    overflow: hidden;
    /* Köşeleri yuvarlatmak için */
    border: 1px solid #333;
    line-height: 0;
    /* iframe altındaki boşluğu kaldırır */
}

/* -------------------------
 * HİZMETLER SAYFASI STİLLERİ
 * ------------------------- */

.service-detailed-item {
    margin-bottom: 3rem;
    /* Her hizmet arası boşluk */
}

/* Hizmet başlığının üstündeki küçük ikon */
.service-icon-inline {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Hizmetler sayfası için ana başlıktan biraz daha küçük başlık */
.section-heading-small {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Hizmet maddeleri için 'check' listesi */
.service-checklist {
    padding-left: 0;
    margin-top: 1.5rem;
}

.service-checklist li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-checklist li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Hizmetleri ayıran çizgi */
hr.service-divider {
    border-color: #333;
    margin: 4rem 0;
}

/* -------------------------
 * HAKKIMIZDA SAYFASI STİLLERİ
 * ------------------------- */

/* Güven veren istatistikler için */
.stat-item {
    background-color: var(--darker-bg);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    height: 100%;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color) !important;
    /* text-primary'yi ezer */
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}