:root {
    /* Light Theme Variables (Default) */
    --primary-color: #4EAEFF;
    --primary-light: #87CEFA;
    --primary-dark: #1E90FF;
    --secondary-color: #F0F8FF;
    --accent-color: #FF6B6B;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #F0F8FF;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 40px rgba(0,0,0,0.12);
    --border-radius: 20px;
    --white: #fff;
    --gradient: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    --accent-gradient: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    --phone-frame-bg: linear-gradient(45deg, #e6e6e6, #ffffff);
    --phone-frame-notch: #e0e0e0;
    --switcher-bg: rgba(255, 255, 255, 0.9);
}

/* Dark Theme Variables - Safari uyumluluğu için hem data attribute hem de class kullanıyoruz */
[data-theme="dark"],
html.dark-theme {
    --primary-color: #4EAEFF;
    --primary-light: #87CEFA;
    --primary-dark: #1E90FF;
    --secondary-color: #111827;
    --accent-color: #FF6B6B;
    --text-color: #e0e0e0;
    --light-text: #a0a0a0;
    --bg-color: #0F172A;
    --card-bg: rgba(17, 24, 39, 0.8);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.2);
    --hover-shadow: 0 15px 40px rgba(0,0,0,0.25);
    --white: #e0e0e0;
    --gradient: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    --accent-gradient: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    --phone-frame-bg: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    --phone-frame-notch: #444444;
    --switcher-bg: rgba(17, 24, 39, 0.8);
}

/* Safari için özel karanlık mod düzeltmeleri */
@supports (-webkit-touch-callout: none) {
    html.dark-theme {
        background-color: #0F172A;
        color: #e0e0e0;
    }
    
    html.dark-theme .testimonial,
    html.dark-theme .screenshot-nav button,
    html.dark-theme .feature-nav button,
    html.dark-theme .feature-card {
        background-color: rgba(17, 24, 39, 0.8);
        color: #e0e0e0;
    }
    
    html.dark-theme .badge {
        color: #fff;
    }
    
    html.dark-theme .hero-content h2,
    html.dark-theme .section-title {
        color: #e0e0e0;
    }
    
    html.dark-theme .phone-frame {
        background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    }
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    background-image: radial-gradient(circle at top right, rgba(135, 206, 250, 0.1), transparent 70%),
                     radial-gradient(circle at bottom left, rgba(30, 144, 255, 0.08), transparent 70%);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language and Theme Switcher Combined */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    background-color: var(--switcher-bg);
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
    padding: 5px;
    align-items: center;
}

.language-switch button {
    border: none;
    background: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.language-switch button.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 30px;
}

/* Theme Switcher */
.theme-switch {
    display: flex;
    margin-left: 10px;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 10px;
}

.theme-switch button {
    border: none;
    background: none;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    border-radius: 50%;
}

.theme-switch button.active {
    color: var(--white);
    background-color: var(--primary-color);
}

/* Header */
header {
    padding: 70px 0 20px;
    text-align: center;
}

.logo h1 {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 60px 0;
}

.badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-content {
    flex: 1.1;
    text-align: left;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: var(--light-text);
}

.hero-image {
    flex: 0.9;
    text-align: center;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
    z-index: 1;
    display: block;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.phone-frame {
    position: relative;
    display: inline-block;
    border-radius: 40px;
    padding: 8px;
    background: var(--phone-frame-bg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: background 0.3s ease;
}

.phone-frame:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 15px;
    background: var(--phone-frame-notch);
    border-radius: 0 0 10px 10px;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.phone-frame img {
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
}

/* App Download Buttons */
.app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.app-button {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(78, 174, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.app-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.app-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(78, 174, 255, 0.4);
}

.app-button:hover::after {
    transform: translateX(100%);
}

.app-button i {
    margin-right: 12px;
    font-size: 1.4rem;
}

/* Features Section */
.features {
    padding: 90px 0;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin: 50px 0;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.features::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    opacity: 0.05;
    border-radius: 50%;
}

/* Başlık Düzenlemeleri */
.section-title-container {
    text-align: center;
    width: 100%;
    margin-bottom: 50px;
}

.section-title {
    display: inline-block;
    font-size: 2.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 auto;
}

.feature-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feature-grid::-webkit-scrollbar {
    display: none;
}

.feature-card {
    flex: 0 0 300px;
    background-color: var(--white);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: 10px;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    z-index: -1;
    transition: top 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    background-color: var(--primary-dark);
    color: var(--white);
}

.feature-card:hover::before {
    top: 0;
    opacity: 1;
}

.feature-card:hover h3 {
    color: var(--white);
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card:hover .feature-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.7rem;
    box-shadow: 0 8px 20px rgba(78, 174, 255, 0.25);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.feature-card p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Feature Navigation */
.feature-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.feature-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    color: var(--primary-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-nav button:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
}

/* Screenshots Section */
.screenshots {
    padding: 90px 0;
    position: relative;
}

.screenshots::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(240,248,255,0), var(--bg-color));
    pointer-events: none;
    z-index: -1;
    transition: background 0.3s ease;
}

.screenshot-carousel {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 30px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.screenshot-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot {
    flex: 0 0 auto;
    width: 280px;
    text-align: center;
    transition: all 0.4s ease;
}

.screenshot:hover {
    transform: scale(1.05);
}

.screenshot img {
    width: 100%;
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    border: 5px solid var(--white);
    transition: all 0.4s ease;
}

.screenshot img:hover {
    box-shadow: var(--hover-shadow);
}

.screenshot p {
    font-size: 0.95rem;
    color: var(--light-text);
    padding: 0 10px;
}

.screenshot-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.screenshot-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    color: var(--primary-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.screenshot-nav button:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonials {
    padding: 90px 0;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin: 50px 0;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonials::before {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    opacity: 0.05;
    border-radius: 50%;
}

.testimonial-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    padding: 20px;
}

.testimonial {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.testimonial::before {
    content: """;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.testimonial p {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.user-name {
    font-weight: bold;
    color: var(--primary-dark);
    text-align: right;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 0 60px;
    border-radius: 50px 50px 0 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,165.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.4;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.download-section {
    text-align: center;
}

.download-section h3 {
    margin-bottom: 25px;
    font-size: 1.7rem;
    font-weight: 700;
}

.download-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-content .app-buttons {
    justify-content: center;
}

.footer-content .app-button {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.footer-content .app-button:hover {
    background: rgba(255,255,255,0.3);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Media queries for language and theme switchers */
@media (max-width: 480px) {
    .language-switch {
        top: 10px;
        right: 10px;
        padding: 3px;
    }

    .language-switch button {
        padding: 8px 16px;
    }
    
    .theme-switch button {
        padding: 8px;
        width: 36px;
        height: 36px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .app-buttons {
        flex-direction: column;
    }
}

/* Media queries */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .app-buttons {
        justify-content: center;
    }

    .hero-image {
        transform: none;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.9rem;
    }
    
    .testimonial-list {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }
}

/* Make sure transitions are smooth for all elements with color changes */
.feature-card, .screenshot, .app-button, footer, .social-icon, .language-switch button, 
.feature-icon, .hero-content h2, .hero-content p, .section-title, .testimonial p {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Language Classes */
.lang-tr, .lang-en {
    display: none !important;
}

body.tr .lang-tr {
    display: block !important;
}

body.en .lang-en {
    display: block !important;
}

/* Images with language support */
.screenshot img.lang-tr,
.screenshot img.lang-en,
.phone-frame img.lang-tr,
.phone-frame img.lang-en {
    display: none !important;
}

body.tr .screenshot img.lang-tr,
body.tr .phone-frame img.lang-tr {
    display: block !important;
}

body.en .screenshot img.lang-en,
body.en .phone-frame img.lang-en {
    display: block !important;
}

/* Span elements need to be inline-block */
span.lang-tr, 
span.lang-en {
    display: none !important;
}

body.tr span.lang-tr {
    display: inline-block !important;
}

body.en span.lang-en {
    display: inline-block !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .hero-image, .feature-card, .screenshot, .testimonial {
    animation: fadeIn 0.8s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}
.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}
.feature-card:nth-child(4) {
    animation-delay: 0.3s;
} 