/* --- CSS KODLARI --- */

:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #0A84FF;
    --text-color: #EAEAEA;
    --secondary-text-color: #A0A0A0;
    --border-color: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* El Yazısı Sınıfı */
.brand-name {
    font-family: 'WindSong', cursive;
    font-weight: 500;
    letter-spacing: -1px;
    /* Tighter spacing for signature look */
    font-size: 1.6em;
    /* WindSong tends to be smaller */
    transform: rotate(-3deg);
    /* Slight tilt for handwriting effect */
    display: inline-block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

p {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #3c9dff;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem 0;
    /* Reduced padding significantly */
    z-index: 1000;
    background: rgba(18, 18, 18, 0.85);
    /* Slightly more opaque for better contrast */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 980px;
    /* Limits width to keep it centered and compact like Apple */
}

.logo {
    font-size: 1.1rem;
    /* Smaller, more elegant logo size */
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.9;
}

.main-nav a {
    color: #d1d1d1;
    text-decoration: none;
    margin: 0 1.2rem;
    /* More spacing between items */
    font-size: 0.75rem;
    /* Small, minimalist font size */
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #fff;
}

/* Header specific button adjustment */
.main-header .btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    background-color: #fff;
    color: #000;
    border-radius: 12px;
}

.main-header .btn:hover {
    background-color: #e0e0e0;
    transform: none;
    /* Subtler hover for header */
}

/* Video Arka Plan */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sticky container içinde tam boy */
    overflow: hidden;
    z-index: 0;
}

/* Video üzerine gradyan ekleyerek alt kısmı karartma (Garanti Yöntem) */
.video-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tüm ekranı kapsayacak şekilde gradyan */
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, rgba(18, 18, 18, 0.7) 50%, rgba(18, 18, 18, 1) 80%);
    z-index: 1;
    pointer-events: none;
}

/* Arka planı yöneten katman (Video karartma ve siyaha geçiş için) */
.hero-background-handler {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1;
    opacity: 0.4;
    /* Başlangıçta video karartma efekti */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Bölümü - GÜNCELLENDİ */
#hero {
    height: 600vh;
    /* Yeni animasyon için kaydırma mesafesi artırıldı */
    padding: 0;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
}

/* Hero Metin Alanı */
#hero-text {
    position: absolute;
    top: 75%;
    /* Metni daha da aşağıya kaydırdık */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

#hero-text h1 {
    max-width: 900px;
    margin: 0 auto;
}

#hero-text .subtitle {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    color: var(--secondary-text-color);
}

/* YENİ: Parallax Metin Alanı */
#hero-parallax-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 15;
    /* hero-text (10) ve hero-device (20) arasında */
    opacity: 0;
    /* Başlangıçta gizli */
    pointer-events: none;
}

#hero-parallax-text h2 {
    font-size: 3rem;
    /* Ana başlığa yakın bir boyut */
    letter-spacing: -1px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

/* YENİ: Harf animasyonu için stil */
#hero-parallax-text .char {
    display: inline-block;
    /* Animasyon stilleri JS tarafından yönetilecek */
}

/* Hero Cihaz Alanı */
#hero-device {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    /* Başlangıçta gizli */
    pointer-events: none;
    z-index: 20;
}

/* Cihaz Çerçevesi (iPad Görünümü) */
.device-frame {
    margin-top: 0;
    /* Absolute positioning içinde margin gerekmez */
    max-width: 90%;
    width: 1000px;
    /* Daha geniş (landscape) görünüm için artırıldı */
    height: 645px;
    /* Explicit height for smooth morphing */
    border: 20px solid #4a4a4a;
    /* Çerçeve rengini açtık ki arka plandan ayrılsın */
    border-radius: 32px;
    /* Köşeler çerçeveye uygun hale getirildi */
    background-color: #1e1e1e;
    /* Ekran arka planıyla aynı renk (kusursuz geçiş için) */
    box-shadow: 0 0 0 2px #222, 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    /* Dışına ince bir kontür ekledik */
    overflow: hidden;
    position: relative;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* Animasyonu hızlandırdık */
    transform: translateZ(0);
    /* Animasyon sırasında taşmaları engeller */
    margin-left: auto;
    margin-right: auto;
    /* aspect-ratio kaldırıldı, height ile yönetilecek */
    will-change: width, height, border-radius, border-width;
    /* Performans optimizasyonu */
}

/* Kamera Detayı */
.device-frame::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
    left: 50%;
    top: -14px;
    /* Çerçevenin içine (üst kısma) yerleştir */
    transform: translateX(-50%);
    z-index: 10;
    transition: all 1.2s ease;
}

/* Cihaz Varyasyonları */
.device-frame.mobile {
    width: 360px;
    height: 780px;
    border-width: 12px;
    border-radius: 40px;
}

.device-frame.mac {
    width: 1100px;
    height: 620px;
    border-width: 16px;
    border-bottom-width: 60px;
    /* iMac alt çenesi */
    border-radius: 16px;
}

/* Mobil Modunda Kamera (Dynamic Island) */
.device-frame.mobile::after {
    width: 80px;
    height: 20px;
    border-radius: 12px;
    background-color: #000;
    top: 15px;
    /* Ekranın içine al */
}

.device-frame.windows {
    width: 1100px;
    border-width: 10px;
    border-bottom-width: 25px;
    /* Monitör alt çerçevesi */
    border-radius: 4px;
    /* Daha keskin köşeler */
    height: 620px;
}

/* Windows Modunda Kamera Gizle */
.device-frame.windows::after {
    opacity: 0;
}

#hero .hero-image {
    width: 100%;
    height: 100%;
    /* Çerçeveyi tam doldurması için */
    object-fit: fill;
    /* ÖNEMLİ: Görsel çerçeveyle birlikte esnesin/büzülsün */
    display: block;
    /* Eski stilleri sıfırlıyoruz */
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    transition: all 3s ease;
    /* Görsel de çerçeveyle aynı sürede şekil alsın */
}

/* Bildirim Katmanı Stilleri */
.device-notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), #000);
    z-index: 20;
    transform: translateY(-100%);
    /* REMOVED flex properties that mess up the large child */
    overflow: hidden;
    will-change: transform;
    backdrop-filter: blur(10px);
}

/* SUPER RES WRAPPER: 10x Scale Trick */
.super-res-wrapper {
    position: absolute;
    /* Force it to start at 0,0 */
    top: 0;
    left: 0;
    width: 1000%;
    height: 1000%;
    transform: scale(0.1);
    transform-origin: top left;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* layout stuff */
}

/* Status Bar (Values x10) */
.status-bar {
    width: 100%;
    padding: 150px 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 140px;
    font-weight: 600;
    margin-top: 100px;
}

.status-icons {
    display: flex;
    gap: 60px;
    font-size: 160px;
}

.notification-content {
    width: 88%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 400px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lock-header {
    text-align: center;
    margin-bottom: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Use system fonts to match Apple look perfectly */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Sahlter shadow from image */
}

.lock-icon {
    font-size: 8rem;
    margin-bottom: 30px;
    opacity: 1;
    /* Solid like image */
}

/* New Order Styling */
.notification-content .date {
    font-size: 13rem;
    font-weight: 500;
    /* Regular/Medium weight */
    margin-bottom: 0px;
    opacity: 0.9;
    /* Brighter */
    color: #efefef;
    letter-spacing: 0px;
}

.notification-content .time {
    font-size: 60rem;
    /* Reduced size */
    font-weight: 600;
    /* Semi-Bold */
    letter-spacing: 0px;
    line-height: 1;
    /* Subtle modern gradient or solid white with heavy shadow */
    color: #fff;
    margin-top: -10px;
    /* Reference doesn't show heavy drop shadow, cleaner look */
    filter: none;
}

.lock-widgets {
    display: flex;
    gap: 100px;
    margin-top: 40px;
    opacity: 0.9;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13rem;
    font-weight: 500;
}

.widget-item i {
    font-size: 16rem;
}

/* Realistik Notification Card (Values x10) */
.notification-card {
    width: 100%;
    max-width: 3000px;
    /* Even slimmer width */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(250px);
    -webkit-backdrop-filter: blur(250px);
    padding: 0;
    border-radius: 180px;
    box-shadow: 0 40px 300px rgba(0, 0, 0, 0.15);
    border: 10px solid rgba(255, 255, 255, 0.08);
    /* thicker border */
    overflow: hidden;
    transition: transform 0.2s ease;
}

.notification-card:active {
    transform: scale(0.98);
}

.notif-header {
    padding: 50px 80px 20px 80px;
    /* Much tighter top/bottom */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-source {
    display: flex;
    align-items: center;
    gap: 60px;
}

.app-icon-small {
    width: 180px;
    /* Smaller icon */
    height: 180px;
    background: var(--primary-color);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    color: white;
}

.app-name {
    font-size: 7.5rem;
    /* Smaller text */
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 4px;
}

.notif-time {
    font-size: 7rem;
    opacity: 0.6;
}

.notif-body {
    padding: 0px 80px 60px 80px;
    /* Reduced bottom padding significantly */
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Tighter text gap */
}

.notification-card .title {
    font-weight: 600;
    font-size: 9.5rem;
    color: #fff;
}

.notification-card .desc {
    font-size: 9rem;
    line-height: 1.3;
    opacity: 0.9;
    color: #efefef;
}

.bottom-handle {
    position: absolute;
    bottom: 80px;
    width: 1400px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    left: 50%;
    transform: translateX(-50%);
}

/* Platform Butonları */
.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--secondary-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.platform-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.platform-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

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

.feature-card {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Showcase */
#showcase {
    text-align: center;
}

#showcase .showcase-image {
    max-width: 100%;
    width: 900px;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Final CTA */
#final-cta {
    background-color: var(--surface-color);
    text-align: center;
    border-radius: 20px;
    padding: 5rem 2rem;
}

#final-cta h2 {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links a {
    color: var(--secondary-text-color);
    text-decoration: none;
    margin: 0 1rem;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--secondary-text-color);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

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

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

/* Mobil Uyum */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    #hero-parallax-text h2 {
        font-size: 2.2rem;
    }

    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    #hero {
        height: 600vh;
        /* Mobilde de kaydırma efekti devam etsin */
    }
}
