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

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

.page-content-spacer {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.demo-content-box {
    text-align: center;
    max-width: 800px;
}

.demo-main-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.demo-subtitle-text {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Footer Styles */
.interactive-footer-wrapper {
    margin-top: 100px;
    position: absolute;
    width: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    overflow: hidden;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-wave-divider {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.footer-main-content {
    position: relative;
    z-index: 2;
    max-width: 1800px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}

.footer-interactive-section {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 80px;
}

.footer-signup-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.signup-heading-primary {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.signup-description-para {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.newsletter-form-group {
    display: flex;
    gap: 12px;
}

.email-input-newsletter {
    flex: 1;
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input-newsletter:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.15);
}

.email-input-newsletter::placeholder {
    color: #64748b;
}

.submit-button-newsletter {
    padding: 14px 30px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.submit-button-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.submit-button-newsletter:active {
    transform: translateY(0);
}

/* 3D Keypad Styles */
.keypad-3d-container {
    position: relative;
    width: clamp(280px, 35vw, 400px);
    aspect-ratio: 400 / 310;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.keypad-base-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: transform 0.3s ease;
}

.keypad-base-layer img {
    width: 100%;
}

.key-button-interactive {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transform-style: preserve-3d;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.key-button-interactive:active .key-content-wrapper,
.key-button-interactive[data-pressed='true'] .key-content-wrapper {
    transform: translateY(20%);
}

.key-content-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.15s ease-out;
    position: relative;
}

.key-content-wrapper img {
    width: 100%;
    display: block;
    position: relative;
}

.key-text-label {
    position: absolute;
    z-index: 10;
    color: #f0f0f0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    line-height: 1;
    text-align: center;
}

/* Key Positions and Sizes */
.keypad-single-left {
    width: 40.5%;
    left: 29.3%;
    bottom: 54.2%;
    height: 46%;
}

.keypad-single-left .key-text-label {
    font-size: clamp(24px, 5vw, 48px);
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.keypad-single-right {
    width: 40.5%;
    left: 54%;
    bottom: 36%;
    height: 46%;
}

.keypad-single-right .key-text-label {
    font-size: clamp(24px, 5vw, 48px);
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.keypad-double-key {
    width: 64%;
    height: 65%;
    left: 6%;
    bottom: 17.85%;
}

.keypad-double-key .key-text-label {
    font-size: clamp(20px, 4vw, 40px);
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
}

/* Footer Navigation */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-column-section {
    opacity: 0;
    transform: translateY(20px);
}

.footer-column-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.footer-links-list {
    list-style: none;
}

.footer-link-item {
    margin-bottom: 10px;
}

.footer-link-anchor {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link-anchor:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-notice-text {
    color: #64748b;
}

.social-icons-group {
    display: flex;
    gap: 12px;
}

.social-link-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link-icon:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .footer-interactive-section {
        flex-direction: column;
    }

    .keypad-3d-container {
        order: 2;
    }

    .footer-signup-container {
        order: 1;
        text-align: center;
    }

    .newsletter-form-group {
        flex-direction: column;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }

    .keypad-single-left .key-text-label,
    .keypad-single-right .key-text-label {
        font-size: 28px;
    }

    .keypad-double-key .key-text-label {
        font-size: 24px;
    }

    .interactive-footer-wrapper {
        margin-top: 150px;
    }
}

/* Audio Feedback */
.key-button-interactive::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
    transparent 0 5px,
    rgba(59, 130, 246, 0.1) 5px 6px);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 30;
    border-radius: 8px;
}

.key-button-interactive:active::after,
.key-button-interactive[data-pressed='true']::after {
    opacity: 1;
}


/* 'ok' Tuşu Yazısı */
.keypad-single-left .key-text-label {
    /* Mevcut translateX(-50%)'yi koruyarak perspektif ekliyoruz */
    transform: translateX(-50%) translateY(-15%) rotateX(50deg) rotateZ(45deg) skewX(2deg);
    top: 13%;
    /* Dikey konumu biraz ayarlıyoruz */
}

/* 'go' Tuşu Yazısı */
.keypad-single-right .key-text-label {
    /* Mevcut translateX(-50%)'yi koruyarak perspektif ekliyoruz */
    transform: translateX(-50%) translateY(-15%) rotateX(50deg) rotateZ(45deg) skewX(2deg);
    top: 15%;
    /* Dikey konumu biraz ayarlıyoruz */
}

/* 'create.' Tuşu Yazısı */
.keypad-double-key .key-text-label {
    /* Mevcut translateX(-50%)'yi koruyarak perspektif ekliyoruz */
    transform: translateX(-50%) translateY(-5%) rotateX(55deg) rotateZ(41deg) skewY(5deg);
    top: 20%;
    /* Dikey konumu biraz ayarlıyoruz */
}

/* === VİDEO İLE İLGİLİ ESKİ CSS'İ BUNUNLA DEĞİŞTİRİN === */

/* LÜTFEN MEVCUT KODLARI BU BLOK İLE DEĞİŞTİRİN */

.footer-lower-section {
    position: relative;
    overflow: hidden;
    padding: 1px 0;
}

/* Video Arka Plan Kapsayıcısı */
.footer-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* DEĞİŞİKLİK: Sabit genişlik yerine %100 kullanıldı */
    height: 50%;
    margin-top: 45%;
    /* DEĞİŞİKLİK: Yüksekliğin tamamını kaplaması sağlandı */
    overflow: hidden;
    z-index: 0;
    /* DEĞİŞİKLİK: Soruna yol açan margin-top kaldırıldı */
}

/* Video Elementi - BU KOD DOĞRU, DEĞİŞTİRMEYİN */
.footer-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
}

/* Karartma Efekti */
.footer-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.85);
}

/* İçeriğin Üstte Kalması */
.footer-nav-grid,
.footer-bottom-bar {
    position: relative;
    z-index: 1;
}


/* === VİDEO MOBIL UYUMLU GÜNCELLEMELER === */

.footer-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.footer-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    margin-top: 40%;
    width: auto;
    height: auto;
    object-fit: cover; /* ← BUNU EKLE */
}

.footer-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 14%;
    background-color: rgba(2, 6, 23, 0.85);
    z-index: 1000000; /* ← BUNU EKLE */
}

/* Mobil için ek optimizasyon */
@media (max-width: 768px) {
    .footer-video-background video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .footer-video-background {
        display: none;
    }
    .footer-interactive-section {
        margin-top: 150px
    }
}

/* Çok küçük ekranlar için video'yu gizle (performans) */
@media (max-width: 480px) {
    .footer-video-background video {
        display: none; /* Video yerine arka plan göster */
    }

    .footer-video-background {
        background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    }

}
