:root {
    --background-color: #121212;
    --card-color: rgba(255, 255, 255, 0.05);
    --primary-coffee: #8B4513;
    --primary-cream: #D2B48C;
    --text-color: #E5E7EB;
    --text-muted: #9CA3AF;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
}

#vanta-background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Language Modal Styles */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.language-modal-content {
    background: linear-gradient(135deg, var(--card-color) 0%, rgba(210, 180, 140, 0.15) 100%);
    border: 2px solid var(--primary-cream);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.language-modal-content h3 {
    color: var(--primary-cream);
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.language-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    border: 2px solid var(--primary-cream);
    border-radius: 12px;
    background: rgba(210, 180, 140, 0.15);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    width: 100%;
    gap: 15px;
}

.lang-btn:hover {
    background: rgba(210, 180, 140, 0.3);
    color: var(--primary-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 180, 140, 0.2);
    border-color: var(--primary-cream);
}

.lang-btn .flag {
    font-size: 1.5rem;
}

.lang-btn .lang-name {
    font-size: 1.1rem;
}

/* RTL Support for Arabic */
.rtl {
    direction: rtl;
}

.rtl .language-modal-content {
    text-align: right;
}

.rtl .lang-btn {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .language-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .language-modal-content h3 {
        font-size: 1.3rem;
    }
    
    .lang-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    padding: 1.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.cta-button {
    background-color: var(--primary-cream);
    color: var(--background-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-cream);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-cream);
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Animate hamburger to X */
.mobile-menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-nav.is-active {
    transform: translateY(0);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.mobile-nav a.cta-button {
    color: var(--background-color);
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .highlight {
    color: var(--primary-cream);
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.highlight-subtle {
    color: var(--text-color);
    font-weight: 700;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.app-button {
    background-color: var(--card-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.app-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.store-badge img {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-badge:hover img {
    transform: scale(1.05);
}

.hero-images {
    position: relative;
    height: 498px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrapper {
    position: absolute;
    height: 100%;
    width: 230px;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out;
    opacity: 0; /* Başlangıçta görünmez */
    will-change: transform, opacity; /* Animasyon performansını iyileştirir */
}

.pos-1 {
    background-image: url('assets/s2.png');
    /* Başlangıç pozisyonu */
    transform: translateY(20px) scale(0.98) rotate(-5deg);
    z-index: 1;
}
.pos-2 {
    background-image: url('assets/s1.png');
    /* Başlangıç pozisyonu */
    transform: translateY(20px) scale(1);
    z-index: 2;
}
.pos-3 {
    background-image: url('assets/s3.png');
    /* Başlangıç pozisyonu */
    transform: translateY(20px) scale(0.98) rotate(5deg);
    z-index: 1;
}

/* JavaScript ile .anim-start sınıfı eklendiğinde hedeflenen son pozisyonlar */
.hero-images.anim-start .pos-1 {
    opacity: 1;
    transform: translateX(-35%) rotate(-12deg);
}
.hero-images.anim-start .pos-2 {
    opacity: 1;
    transform: scale(1.05);
}
.hero-images.anim-start .pos-3 {
    opacity: 1;
    transform: translateX(35%) rotate(12deg);
}


/* Features Section */
.features-section {
    padding: 6rem 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.feature-card {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    color: var(--primary-cream);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    text-align: center;
}
.testimonials-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.testimonial-card {
    background-color: var(--card-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.testimonial-card.wide {
    grid-column: span 2;
}
.testimonial-quote-icon {
    color: var(--primary-cream);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}
.testimonial-author img,
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(210, 180, 140, 0.1);
    border: 2px solid var(--primary-cream);
}
.author-name {
    display: block;
    font-weight: 700;
}
.author-title {
    color: var(--primary-cream);
    font-size: 0.875rem;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Final CTA Section */
.final-cta-section {
    padding: 6rem 0;
    text-align: center;
}
.final-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.final-cta-section > p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.final-cta-section .app-buttons {
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-nav-links {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
}
.footer-nav-links a:hover {
    color: var(--text-color);
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--primary-cream);
}
.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.hero-text, .features-grid, .testimonials-grid, .final-cta-section .app-buttons, footer {
    position: relative;
    z-index: 1;
}

.features-section h2, .testimonials-section h2, .final-cta-section h2, .final-cta-section > p {
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    color: var(--primary-cream);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

.testimonial-card {
    background-color: var(--card-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.testimonial-card.wide {
    grid-column: span 2;
}
.testimonial-quote-icon {
    color: var(--primary-cream);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}
.testimonial-author img,
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(210, 180, 140, 0.1);
    border: 2px solid var(--primary-cream);
}
.author-name {
    display: block;
    font-weight: 700;
}
.author-title {
    color: var(--primary-cream);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .app-buttons {
        justify-content: center;
    }
    .hero-images {
        margin-top: 3rem;
        height: 400px;
    }
    .hero-img-wrapper {
        width: 184px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card.wide {
        grid-column: span 1;
    }
    .premium-features-card ul {
        grid-template-columns: 1fr;
        padding-left: 2rem; /* Indent for better readability */
    }
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    header nav .nav-links, header nav .cta-button {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card.wide {
        grid-column: span 1;
    }
    .premium-features-card ul {
        grid-template-columns: 1fr;
        padding-left: 2rem; /* Indent for better readability */
    }
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}