/* Mobile New Design - iPhone SE 375x667px - Pixel Perfect */
/* Tüm telefon modellerinde yanlara sıfırlanmış tasarım */

:root {
    --mobile-font: Arial, Helvetica, sans-serif;
}

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

html {
    font-size: 16px;
    width: 100%;
    font-family: var(--mobile-font);
}

html *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class*="fa-"]) {
    font-family: inherit;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fbfbfb;
}

/* Tüm telefon modelleri için responsive kurallar */
@media screen and (max-width: 480px) {
    body {
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-header,
    .mobile-menu,
    .pull-indicator,
    .mobile-container,
    .mobile-page,
    .text-card,
    .page-3 {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Diğer mobil sayfalardaki ana içerik alanlarını da yanlara yapıştır */
    .faq-section,
    .team-section,
    .contact-section,
    .container {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Subpage fontlarını mobilde küçült (ana landing hariç) */
    .faq-section h1 {
        font-size: 1.6rem;
    }
    .faq-question-text {
        font-size: 0.95rem;
    }
    .faq-answer p {
        font-size: 0.9rem;
    }

    .team-section h1 {
        font-size: 1.8rem;
    }
    .member-name {
        font-size: 1.3rem;
    }
    .member-bio {
        font-size: 0.95rem;
    }

    .contact-section .section-title,
    .contact-section h1 {
        font-size: 1.8rem;
    }
    .contact-section .section-subtitle,
    .contact-section p {
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 1.4rem;
    }
    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* Fixed Header with Menu Button */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 60px;
    background-color: transparent; /* Transparent arka plan */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 34px;
    padding: 3px;
    margin-left: auto;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(145, 121, 110, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mobile-lang-btn {
    border: none;
    background: transparent;
    color: #91796e;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    height: 100%;
    min-width: 34px;
    border-radius: 999px;
    padding: 0 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-lang-btn.active {
    background-color: #91796e;
    color: #ffffff;
}

.mobile-header.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo %15 daha büyük: 32px * 1.15 = 37px */
.logo-img {
    height: 37px;
    width: auto;
}

/* Menu Button - Çizgiler daha küçük */
.menu-btn {
    width: 40px;
    height: 40px;
    background-color: #91796e;
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

/* Çizgiler daha küçük */
.menu-btn span {
    width: 14px;
    height: 1.5px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 350px;
}

.mobile-menu ul {
    list-style: none;
    padding: 16px 16px 16px 16px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.mobile-menu li {
    margin-bottom: 8px;
    display: flex;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
}

/* Menü öğeleri: sağa yaslı, yuvarlak köşeli dikdörtgenler */
.mobile-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: #ffffff;
    background-color: #91796e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 999px;
    transition: background-color 0.25s ease, transform 0.15s ease;
    margin-left: auto;
    margin-right: 0;
    float: right;
    clear: both;
}

.mobile-menu .mobile-menu-app-item {
    margin-top: 2px;
}

.mobile-menu .mobile-menu-app-link {
    background-color: #ffffff;
    color: #91796e;
    font-weight: 700;
    border: 1px solid rgba(145, 121, 110, 0.3);
}

.mobile-menu .mobile-menu-app-link:hover {
    background-color: #f8f5f3;
    color: #91796e;
}

.mobile-menu a:hover {
    background-color: #7a645a;
    transform: translateY(-1px);
}

/* ==================== MENU OPEN EFFECT ==================== */
/* Menü açıkken sayfa efektleri */
body.menu-open .mobile-container {
    filter: blur(8px) brightness(0.7);
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(145, 121, 110, 0.3) 0%, transparent 70%);
    z-index: 998;
    pointer-events: none;
    animation: menuGlow 0.4s ease forwards;
}

@keyframes menuGlow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-container {
    transition: filter 0.4s ease;
}

/* Pull-to-Refresh Indicator */
.pull-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    height: 80px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
}

.pull-indicator.visible {
    transform: translateY(0);
}

.pull-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pull-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Container */
.mobile-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 60px;
    overflow-x: hidden;
    background-color: #fbfbfb;
}

/* Mobile Pages */
.mobile-page {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==================== PAGE 1: Hero Section ==================== */
.page-1 {
    background-color: #ffffff;
    min-height: calc(100vh - 60px);
    min-height: 607px;
    display: flex;
    flex-direction: column;
}

.page-1-content {
    padding: 40px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.cta-button {
    background-color: #91796e;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #7a645a;
}

/* ==================== IMAGES - NO ANIMATION, STACKED ==================== */
.images-overlap-container {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: visible;
}

.overlap-image {
    position: relative;
    width: 100%;
}

/* İlk görsel: üst köşeler yuvarlak - kendi ölçüleri korunur (~4:5 veya 5:5) */
.overlap-image.image-1 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px 24px 0 0;
}

/* İkinci görsel: alt köşeler yuvarlak, arada boş satır efekti */
.overlap-image.image-2 {
    margin-top: 16px; /* Görsel 1 ve 2 arasında boşluk */
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

/* İkinci görsel: kendi ölçüleri korunur (~4:5 veya 5:5) */
.overlap-image.image-2 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 24px 24px;
}

/* ==================== PAGE 2: Text Card Section ==================== */
.page-2 {
    background-color: #fbfbfb;
    min-height: auto;
    padding: 16px 0 0 0; /* Sadece üstte boşluk - yanlarda sıfır */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Yuvarlak köşeli renkli footer kartı */
.text-card {
    background-color: #91796e;
    border-radius: 24px;
    padding: 40px 24px 32px 24px;
    width: 100%;
    max-width: 100%;
    border: none; /* Çizgi yok */
}

/* Kart başlığı - kalın font */
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px; /* 2 satır boşluk */
    text-align: left;
}

.section-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #ffffff;
    text-align: left;
}

.section-text:last-child {
    margin-bottom: 0;
}

.page-3-content {
    flex: 1;
    padding: 24px 0 0 0; /* Text-card içinde ekstra sağ/sol padding'e gerek yok */
    display: flex;
    flex-direction: column;
}

.footer-title-link {
    text-decoration: none;
    display: block;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.footer-title-link + .footer-title-link {
    margin-top: 8px; /* İki başlık arasında boş satır */
    margin-bottom: 16px; /* Mekan sahibi olarak katılım altında boşluk */
}

.footer-title-link:hover .footer-title {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 20px; /* Kolonları biraz daha sola yaklaştır */
    margin-top: 24px;
    margin-bottom: 24px;
    padding-left: 16px;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.link-column a {
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-align: left;
    padding-left: 8px; /* Linkleri biraz daha sağa */
}

.link-column a:hover {
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: auto;
}

.copyright {
    font-size: 14px; /* 2 kat büyütüldü */
    color: #ffffff;
}

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

.social-icon {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-icon i {
    font-size: 14px;
}

/* Spiral toy – back to top button */
.pull-area {
    background-color: #fbfbfb;
    padding: 32px 24px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: none; /* allow custom pull gesture */
    user-select: none;
    -webkit-user-select: none;
}

.pull-area-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
}

.pull-area-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.pull-area-icon.spinning {
    animation: spiralSpin 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes spiralSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    40% {
        transform: rotate(360deg) scale(1.2);
    }
    65% {
        transform: rotate(540deg) scale(0.9);
    }
    85% {
        transform: rotate(680deg) scale(1.05);
    }
    100% {
        transform: rotate(720deg) scale(1);
    }
}

/* ==================== ANIMATIONS ==================== */

/* Page 1 hero image animation */
.overlap-image.image-1 img,
.hero-title,
.hero-subtitle,
.cta-button {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.cta-button {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Page 3 animations */
.page-3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-3.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-3 .footer-title,
.page-3 .link-column a,
.page-3 .footer-bottom,
.page-3 .footer-links,
.page-3 .social-icons,
.page-3 .social-icon {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-3.visible .footer-title,
.page-3.visible .link-column a,
.page-3.visible .footer-bottom,
.page-3.visible .footer-links,
.page-3.visible .social-icons,
.page-3.visible .social-icon {
    opacity: 1;
    transform: translateY(0);
}

.page-3.visible .footer-title:nth-of-type(1) { transition-delay: 0.1s; }
.page-3.visible .footer-title:nth-of-type(2) { transition-delay: 0.15s; }
.page-3.visible .link-column a { transition-delay: 0.2s; }
.page-3.visible .footer-bottom { transition-delay: 0.3s; }

/* Slingshot animation */
.mobile-container.slingshot {
    animation: slingshotUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes slingshotUp {
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(0);
    }
}
