/* 
 * Cevapp - Modern AI-Powered Education Platform
 * Custom Styles for Landing Page
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors from Cevapp Theme */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #8B5CF6;
    --secondary: #FF6B6B;
    --secondary-dark: #EE5A52;
    --secondary-light: #FF8E8E;
    --accent: #06D6A0;
    --accent-dark: #059669;
    --accent-light: #34D399;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Neutral Colors */
    --background: #FAFBFC;
    --surface: #FFFFFF;
    --surface-variant: #F3F4F6;
    --text-primary: #E2E8F0;
    --text-secondary: #CBD5E0;
    --text-hint: #A0AEC0;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #E2E8F0;
    background-color: var(--background);
    overflow-x: hidden;
}

/* Açık arka planlar için koyu metinler */
.bg-white, .bg-light {
    color: #1A202C !important;
}

.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: #1A202C !important;
}

.bg-white .lead, .bg-light .lead {
    color: #2D3748 !important;
}

.bg-white .text-muted, .bg-light .text-muted {
    color: #4A5568 !important;
}

.bg-white .text-secondary, .bg-light .text-secondary {
    color: #2D3748 !important;
}

/* Feature card metinleri */
.feature-card h4 {
    color: #E2E8F0 !important;
}

.feature-card p {
    color: #E2E8F0 !important;
}

/* Step card metinleri */
.step-card h4 {
    color: #E2E8F0 !important;
}

.step-card p {
    color: #E2E8F0 !important;
}

/* Subject card metinleri */
.subject-card h5 {
    color: #E2E8F0 !important;
}

.subject-card p {
    color: #E2E8F0 !important;
}

/* Contact card metinleri */
.contact-card h5 {
    color: #E2E8F0 !important;
}

.contact-card p {
    color: #E2E8F0 !important;
}

/* Team member card metinleri */
.team-member h5 {
    color: #E2E8F0 !important;
}

.team-member p {
    color: #E2E8F0 !important;
}

.team-member .text-muted {
    color: #CBD5E0 !important;
}

/* Tüm dark background'lu card'lar */
.card.bg-dark h1, .card.bg-dark h2, .card.bg-dark h3, .card.bg-dark h4, .card.bg-dark h5, .card.bg-dark h6 {
    color: #E2E8F0 !important;
}

.card.bg-dark p, .card.bg-dark .lead {
    color: #E2E8F0 !important;
}

/* Dark section'larda genel metin renkleri */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
    color: #E2E8F0 !important;
}

.bg-dark p, .bg-dark .lead {
    color: #E2E8F0 !important;
}

.bg-dark .text-muted {
    color: #CBD5E0 !important;
}

/* Genel section başlıkları - sadece light background'larda dark */
.bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: #1A202C !important;
}

.bg-white .lead, .bg-light .lead {
    color: #2D3748 !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: #CBD5E0 !important;
}

.text-muted {
    color: #CBD5E0 !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
}

/* ===== NAVIGATION ===== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem !important;
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--surface-variant);
}

.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--background) 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    animation: fadeInUp 0.6s ease-out;
}

.display-3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #E2E8F0 !important;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: #E2E8F0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.btn {
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

/* ===== STATS ROW ===== */
.stats-row {
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #E2E8F0;
    font-weight: 600;
}

/* ===== PHONE MOCKUP ===== */
.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    border-radius: 40px;
    padding: 20px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #000, #1a1a1a);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--background), #fff);
    position: relative;
}

.app-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-align: center;
}

.status-bar {
    height: 6px;
    width: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin: 0 auto 10px;
}

.app-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.app-content {
    padding: 30px 20px;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.camera-area {
    background: linear-gradient(145deg, var(--surface-variant), #f8fafc);
    border-radius: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    position: relative;
    margin-bottom: 30px;
    border: 2px dashed var(--border);
}

.scan-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 2s ease-in-out infinite;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-app {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-app.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

/* ===== VIDEO SECTION ===== */
.video-section {
    position: relative;
    overflow: hidden;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    border: 1px solid var(--border-light);
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: var(--border-radius-lg);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-radius: var(--border-radius-lg);
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.video-container:hover .play-button {
    transform: scale(1);
    background: white;
}

.video-caption {
    padding: 1.5rem;
    text-align: center;
    background: var(--surface);
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

.video-caption h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-caption p {
    color: #CBD5E0;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Video responsive aspect ratio */
@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .video-caption {
        padding: 1rem;
    }
    
    .video-caption h4 {
        font-size: 1.25rem;
    }
    
    .video-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .video-container {
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .demo-video,
    .video-overlay,
    .video-caption {
        border-radius: 12px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* ===== STEP CARDS ===== */
.step-card {
    padding: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--surface-variant), #f8fafc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    color: var(--primary);
    font-size: 2.5rem;
    border: 3px solid var(--border);
}

/* ===== SUBJECT CARDS ===== */
.subject-card {
    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.subject-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    padding: 2rem 1.5rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* ===== DOWNLOAD SECTION ===== */
.download-image i {
    font-size: 8rem;
    opacity: 0.1;
    animation: float 4s ease-in-out infinite;
}

/* ===== FOOTER ===== */
footer {
    background: var(--text-primary) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scan {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-icon,
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 12px;
    }
    
    .app-content {
        padding: 20px 15px;
    }
    
    .camera-area {
        height: 120px;
        font-size: 2rem;
    }
    
    .btn-app {
        padding: 12px;
        font-size: 0.8rem;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0D1117;
        --surface: #161B22;
        --surface-variant: #21262D;
        --text-primary: #F0F6FC;
        --text-secondary: #B1BAC4;
        --text-hint: #7D8590;
        --border: #30363D;
        --border-light: #21262D;
    }
    
    .navbar {
        background-color: rgba(22, 27, 34, 0.95) !important;
        border-bottom-color: var(--border);
    }
    
    .hero-section {
        background: linear-gradient(135deg, var(--background) 0%, #161B22 100%);
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}