/* Tüm elementlerin genişlik hesaplamasını sabitle (Taşmayı %100 önler) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Özel Webkit Scrollbar Tasarımı - Sadece Masaüstü */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #000000;
    }

    ::-webkit-scrollbar-thumb {
        background: #1a1a1a;
        border-radius: 15px;
        border: 2px solid #000000;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #3e3e3e;
    }
}

/* Mobilde kaydırma çubuğunu tamamen gizle */
@media (max-width: 768px) {
    html,
    body,
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.righteous-font {
    font-family: 'Righteous', cursive;
}

/* --- NAVBAR TASARIMI (SAĞA HİZALI VE MOBİL UYUMLU) --- */
.hype-nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0 12%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 64px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgb(0, 0, 0);
}

.hype-nav.scrolled {
    height: 46px;
    background-color: rgba(0, 0, 0);
    border-bottom: 1px solid rgb(0, 0, 0);
}

.logo-text {
    font-size: 54px;
    display: flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.4s ease;
    margin-top: 0;
}

.hype-nav.scrolled .logo-text {
    font-size: 38px;
    margin-top: 0;
}

.logo-e {
    color: #3b82f6;
}

/* Linkleri sağa sabitlemek için absolute kaldırıldı, flex yapısı kullanıldı */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    /* Yazıları en sağa iter */
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobil Cihazlar İçin Sığdırma Koruması ve Esneklik */
@media (max-width: 768px) {
    .hype-nav {
        padding: 0 5%;
    }

    .logo-text {
        font-size: 38px;
    }

    .hype-nav.scrolled .logo-text {
        font-size: 28px;
    }

    .nav-links {
        gap: 15px;
    }

    /* Mobilde yazılar birbirine çok yapışmasın diye aralık azaltıldı */
    .nav-links a {
        font-size: 12px;
    }

    /* Mobilde taşmayı önlemek için yazı boyutu biraz küçültüldü */
}

@media (max-width: 450px) {
    .hype-nav {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 30px;
    }

    .hype-nav.scrolled .logo-text {
        font-size: 24px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }
}

/* Yukarı Çık Butonu */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hero Düzeni */
.hero-bg {
    background: #000000;
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 130px;
    text-align: center;
}

.hero-logo {
    font-size: 100px;
    letter-spacing: -4px;
    line-height: 0.8;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    margin-bottom: 35px;
    max-width: 90%;
    line-height: 1.4;
    word-break: break-word;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
}

/* Toplam Widget */
.ios-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.section-divider {
    width: 380px;
    max-width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 25px 0 60px 0;
}

/* --- UYGULAMA KARTLARI CAROUSEL (3'LÜ ŞERİT & MOBİL 1'Lİ) --- */
.apps-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1250px;
    margin: 20px auto;
    padding: 0 54px;
    box-sizing: border-box;
}

.apps-carousel-track-wrapper {
    position: relative;
    width: 100%;
}

.apps-carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding-top: 14px;
    padding-bottom: 16px;
    margin-top: -14px;
    margin-bottom: -16px;
    border-radius: 14px;
}

.apps-cards-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.apps-card-item {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    max-width: none !important;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

.apps-card-item:hover {
    transform: translateY(-8px);
}

@media (max-width: 1023px) and (min-width: 641px) {
    .apps-carousel-container {
        padding: 0 48px;
    }

    .apps-card-item {
        flex: 0 0 calc((100% - 24px) / 2);
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 640px) {
    .apps-carousel-container {
        padding: 0 46px;
        max-width: 440px;
        margin: 15px auto;
    }

    .apps-carousel-viewport {
        padding-top: 8px;
        padding-bottom: 12px;
        margin-top: -8px;
        margin-bottom: -12px;
    }

    .apps-cards-track {
        gap: 16px;
    }

    .apps-card-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .apps-nav-arrow {
        width: 36px !important;
        height: 36px !important;
    }

    .apps-nav-arrow.left-arrow {
        left: -42px !important;
    }

    .apps-nav-arrow.right-arrow {
        right: -42px !important;
    }
}

.apps-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.apps-nav-arrow:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: #06b6d4;
    color: #06b6d4;
    transform: translateY(-50%) scale(1.1);
}

.apps-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.apps-nav-arrow.left-arrow {
    left: -48px;
}

.apps-nav-arrow.right-arrow {
    right: -48px;
}

/* HyperAI Geniş İndir Butonu Tasarımı */
.hyperai-download-btn {
    margin-top: 25px;
    width: 320px;
    max-width: 90%;
    background: #111;
    color: white !important;
    text-decoration: none !important;
    padding: 12px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hyperai-download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #00b859, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 600% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    animation: internalGlow 8s ease-in-out infinite;
}

.hyperai-download-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.hyperai-download-btn:hover::before {
    opacity: 1;
}

@keyframes internalGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Kart Ayarları */
.custom-w-400 {
    width: 100%;
    max-width: 380px;
    transition: 0.3s;
    position: relative;
}

.aspect-16\/7 {
    aspect-ratio: 16 / 7;
}

.number-animation {
    transition: all 0.3s ease-out;
}

.custom-w-400:hover {
    transform: translateY(-8px);
}

/* --- HABER GALERİSİ SLIDER --- */
.glass-card {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px auto;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    width: 0%;
    transition: width 0.1s linear;
}

#slides-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
}

.news-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.news-image-container:hover img {
    transform: scale(1.05);
}

/* --- PREMIUM FOOTER TASARIMI --- */
.hype-footer {
    width: 100%;
    background-color: #030303;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 70px 10% 35px 10%;
    margin-top: 80px;
    color: #a1a1aa;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.hype-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), rgba(6, 182, 212, 0.6), transparent);
}

/* Arka plandaki dev watermark yazısı */
.footer-watermark {
    position: absolute;
    bottom: -40px;
    right: -20px;
    font-size: 180px;
    font-weight: 900;
    font-family: 'Righteous', cursive;
    color: rgba(255, 255, 255, 0.018);
    letter-spacing: -5px;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.footer-brand .footer-logo {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 16px;
    color: white;
    letter-spacing: -1px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: #8e8e93;
    max-width: 340px;
    margin-bottom: 24px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 7px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.3px;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

.footer-column h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #3b82f6;
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
    position: relative;
    z-index: 2;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #3b82f6;
}

@media (max-width: 960px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-watermark {
        font-size: 120px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hype-footer {
        padding: 50px 6% 30px 6%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-watermark {
        display: none;
    }
}