/* Google Fonts: Varela Round */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #0a58ca;
    --accent-color: #0d6efd;
    --dark-bg: #343a40;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #6c757d;
    --gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #0d6efd 100%);
    --shadow: 0 20px 25px -5px rgba(13, 110, 253, 0.15), 0 10px 10px -5px rgba(13, 110, 253, 0.1);
    --font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 37px;
    width: auto;
}

.nav-brand .lms {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 1rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248, 249, 250, 1) 0%, rgba(233, 236, 239, 0.5) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-doodle {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.05));
}


.hero-text {
    text-align: left;
}

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

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Animations */
.fade-in { animation: fadeIn 1s ease-out; }
.fade-in-delay { animation: fadeIn 1s ease-out 0.3s backwards; }
.fade-in-delay-2 { animation: fadeIn 1s ease-out 0.6s backwards; }

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

/* Features Section */
.features {
    padding: 6rem 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* How It Works (Demo) */
.demo {
    padding: 6rem 0;
    background: var(--light-bg);
}

.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center; /* Numarayı metinle dikey ortala */
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.step-number {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1; /* Rakamın daire içinde daha iyi ortalanması için */
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    flex: 1;
    padding-right: 140px; /* Doodle için yer ayır */
}

.step-doodle {
    width: auto;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    flex-shrink: 0;
    align-self: stretch;
    position: absolute;
    right: 1.5rem;
    top: 0;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 4rem 0 2rem;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand .logo .lms {
    color: var(--primary-color);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
        min-height: 60px; /* Minimum yükseklik belirgin şekilde artırıldı */
    }

    .navbar .container {
        padding: 0.8rem 15px; /* Dikey boşluk (padding) daha belirgin şekilde artırıldı */
    }

    .nav-brand img {
        height: 29px;
    }

    .nav-toggle {
        display: flex;
        padding: 5px; /* Daha az padding */
        gap: 4px; /* Çizgiler arası daha az boşluk */
    }

    .nav-toggle span {
        width: 22px; /* Daha kısa çizgiler */
        height: 2px; /* Daha ince çizgiler */
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 0.8rem 0;
        font-size: 0.95rem; /* Menü font boyutu biraz küçüldü */
    }

    .language-switcher {
        margin: 0.5rem 0 0.5rem auto; /* Sağ margin kaldırıldı, tam sağa yaslandı */
        gap: 0.3rem;
        justify-content: flex-end; /* İçeriği sağa yasla */
    }

    .lang-btn {
        padding: 0.3rem 0.6rem; /* Dil butonları daha küçük */
        font-size: 0.8rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding-bottom: 5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 0;
        overflow: visible; /* Mobilde taşmayı önlemek yerine içeriğe göre büyümesini sağla */
    }

    .step-content {
        padding-right: 0; /* Mobilde yan padding'e gerek yok */
    }

    .step-number {
        margin-bottom: 1.5rem; /* Numara ile içerik arasındaki boşluğu korumak için */
    }

    .step-doodle {
        display: block;
        position: static;
        width: 160px;
        height: 160px;
        margin: 0 auto; /* Alttaki margin sıfırlandı */
        order: -1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
}
