/* =========================================
   1. GLOBAL VARIABLES & THEME
   ========================================= */
:root {
    /* Colors based on Flutter App */
    --primary: #6C63FF;
    --primary-light: #9D95FF;
    --primary-dark: #4A41CC;
    
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 18, 26, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    
    --border: rgba(108, 99, 255, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    
    --success: #4CAF50;
    
    /* Typography */
    --font: 'Poppins', sans-serif;
    
    /* Effects */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    
    --glow-primary: 0 0 40px rgba(108, 99, 255, 0.3);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   3. TYPOGRAPHY & UTILITIES
   ========================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-light);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

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

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* =========================================
   7. CSS PHONE MOCKUP
   ========================================= */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 6px #111,
        0 30px 60px rgba(0,0,0,0.6),
        var(--glow-primary);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f4f6f8;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    padding: 50px 16px 20px;
}

/* Mockup İçerik Stilleri (Flutter uygulamasına benzetildi) */
.mockup-header {
    margin-bottom: 24px;
}

.mockup-greeting {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
}

.mockup-sub {
    color: #666;
    font-size: 12px;
}

.mockup-card {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.mockup-card-title {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mockup-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.mockup-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.mockup-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-task {
    background: #fff;
    padding: 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
}

.mockup-task.done .task-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.task-text {
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.mockup-task.done .task-text {
    text-decoration: line-through;
    color: #999;
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}

.fb-1 {
    top: 20%;
    right: -40px;
    animation-delay: 0s;
}

.fb-2 {
    bottom: 20%;
    left: -60px;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

.pulse {
    animation: pulse 3s infinite;
}

/* =========================================
   8. RESPONSIVE DESIGN (Temel)
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        margin-bottom: 60px;
    }
    
    .nav-links {
        display: none; /* Mobilde hamburger eklenebilir */
    }
}

/* =========================================
   9. GLOBAL REUSABLES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   10. FEATURES SECTION
   ========================================= */
.features {
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d14 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--border);
    box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(108, 99, 255, 0.2);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-light);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =========================================
   11. HOW IT WORKS SECTION
   ========================================= */
.how-it-works {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.how-it-works::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    border-radius: 50%;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(108, 99, 255, 0.2);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-item:hover .step-number {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
    box-shadow: var(--glow-primary);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.step-line {
    flex: 0.5;
    height: 2px;
    background: linear-gradient(90deg, var(--border), transparent);
    margin-top: 40px;
    position: relative;
    opacity: 0.5;
}

@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .step-line {
        width: 2px;
        height: 60px;
        background: linear-gradient(180deg, var(--border), transparent);
        margin: 0;
    }
}

/* =========================================
   12. STATS SECTION
   ========================================= */
.stats {
    background: linear-gradient(0deg, var(--bg-dark) 0%, #0d0d14 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   13. SCREENSHOTS SECTION (Showcase)
   ========================================= */
.screenshots {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.showcase-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    perspective: 1500px;
    height: 600px;
}

.showcase-mockup {
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
}

.showcase-mockup .phone-mockup {
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    margin: 0;
    transform: none; /* Hero'daki rotate'i ezmek için */
}

/* Telefon mockuplarını yatay dizme (3D Effect) */
.showcase-mockup.left {
    transform: translateX(-300px) translateZ(-200px) rotateY(20deg);
    z-index: 1;
    opacity: 0.6;
    filter: brightness(0.5);
}

.showcase-mockup.center {
    transform: translateX(0) translateZ(50px);
    z-index: 3;
    box-shadow: 0 40px 80px rgba(108, 99, 255, 0.3);
}

.showcase-mockup.right {
    transform: translateX(300px) translateZ(-200px) rotateY(-20deg);
    z-index: 1;
    opacity: 0.6;
    filter: brightness(0.5);
}

/* Hover Effects */
.showcase-mockup:hover {
    transform: translateY(-20px) translateZ(100px) scale(1.05) rotateY(0deg) !important;
    z-index: 10 !important;
    opacity: 1 !important;
    filter: brightness(1) !important;
}

.showcase-container:hover .showcase-mockup:not(:hover) {
    opacity: 0.3 !important;
    filter: brightness(0.3) !important;
}

@media (max-width: 992px) {
    .showcase-container {
        height: auto;
        flex-direction: column;
        gap: 50px;
        perspective: none;
    }
    
    .showcase-mockup {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        z-index: 1 !important;
    }
}

/* =========================================
   14. BADGES SECTION
   ========================================= */
.badges {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #12121c 100%);
    position: relative;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.badge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.badge-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    box-shadow: var(--shadow-card);
}

.badge-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}

.badge-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.badge-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Shimmer Effect */
.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.badge-card:hover .shimmer {
    left: 150%;
    transition: 0.7s;
}

@media (max-width: 992px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        flex-direction: column;
    }
}

/* =========================================
   15. CTA SECTION
   ========================================= */
.cta {
    background: var(--bg-dark);
}

.cta-card {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(108, 99, 255, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: var(--glow-primary);
}

.cta-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.cta-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .cta-card {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }
    
    .cta-content {
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-visual {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
    }
}

/* =========================================
   16. FOOTER
   ========================================= */
.footer {
    background: #050508;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
