@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Roboto:wght@400;500;700&display=swap');

body, h1, h2, h3, h4, p, a, button, input, label, .subtitle, .small-text {
    font-family: 'Product Sans', 'Roboto', system-ui, -apple-system, sans-serif !important;
}

.hero h1 {
    font-family: 'Product Sans', 'Montserrat', sans-serif;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: #f8f9fa;
    color: #222;
    line-height: 1.6;
}

/* ====================== UMUMIY INPUT STILI ====================== */
.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Ism va telefon polyalari uchun BIR XIL stil */
.form-group input {
    width: 100%;
    padding: 16px 18px;
    font-size: 1.25rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #aaa;
    opacity: 1;
}

.form-group input:focus {
    border-color: #e63946;
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}

/* intl-tel-input kutubxonasi uchun qo‘shimcha moslashtirish (telefon polyasi) */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding-left: 12px;
}

.iti__selected-flag {
    background: transparent !important;
}

.iti__country-list {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ====================== HERO – Instagram bilan ====================== */
.hero {
    background: linear-gradient(135deg, #0f2027 0%, #1a3c4f 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;  /* O'rtaga chiqarish */
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: 1400px;
    padding: 0 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 400px;
    max-width: 550px;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    object-fit: cover;
    border: 8px solid rgba(255,255,255,0.1);
    transition: transform 0.4s;
}

.profile-img:hover {
    transform: scale(1.02);
}

.hero-text {
    flex: 1;
    min-width: 400px;
    text-align: left;
}

.hero h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    text-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 1.6rem;
    margin-bottom: 50px;
    opacity: 0.95;
}

.hero .btn-primary {
    display: inline-block;
    margin: 0;
    font-size: 1.8rem;
    padding: 20px 70px;
}

.hero .small-text {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.9;
}

/* Ro'yxatdan o'tish tugmasi - premium glow + animatsiya */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* matn va o'q orasidagi masofa */
    background: linear-gradient(135deg, #ff6b6b, #ff8e53); /* yumshoq gradient */
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 20px 60px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin: 30px auto;
}

/* Hover effekt + glow */
.btn-primary:hover {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.5);
}

/* O'q animatsiyasi */
.btn-primary .arrow {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(8px); /* o'q o'ngga siljiydi */
}

/* Glow effekti (yorqinlik) */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Instagram logo va link */
.social {
    margin-top: 40px;
}

.insta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.insta-link i {
    font-size: 2.2rem;
    color: #e1306c; /* Instagram rangi */
}

.insta-link:hover {
    color: #e1306c;
    transform: scale(1.05);
}

/* Mobil moslashuv */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .hero h1 {
        font-size: 4rem;
    }
}

/* Mobil moslashuv */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .hero h1 {
        font-size: 4rem;
    }
}

/* ====================== BENEFITS ====================== */
.benefits {
    padding: 100px 20px;
    background: white;
}

.benefits h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: #0f2027;
    margin-bottom: 60px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px; /* Tugma bilan oraliq */
}

.card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    font-size: 1.25rem;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 55px rgba(0,0,0,0.12);
    border-color: #e63946;
}

.card::before {
    content: '★';
    display: block;
    font-size: 3.2rem;
    color: #e63946;
    margin-bottom: 20px;
}

/* Tugmani o'rtaga joylash (chapda emas!) */
.benefits .btn-primary {
    display: block !important; /* block qilib markazlashtirish */
    width: fit-content;
    margin: 0 auto; /* o'rtaga olib chiqarish */
    background: #e63946;
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    padding: 18px 60px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(230,57,70,0.4);
    transition: all 0.35s ease;
}

.benefits .btn-primary:hover {
    background: #c5303a;
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(230,57,70,0.5);
}

/* ====================== TEACHER ====================== */
.teacher {
    padding: 100px 20px;
    background: #f8f9fa;
    text-align: center;
}

.teacher h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    color: #0f2027;
    margin-bottom: 40px;
}

.teacher ul {
    list-style: none;
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: left;
}

.teacher li {
    font-size: 1.35rem;
    margin: 20px 0;
    padding-left: 45px;
    position: relative;
}

.teacher li::before {
    content: '✓';
    color: #e63946;
    position: absolute;
    left: 0;
    font-size: 1.8rem;
}

/* ====================== FORM ====================== */
.form-section {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.form-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.form-section form {
    max-width: 580px;
    margin: 0 auto;
}

.form-section input {
    width: 100%;
    padding: 18px;
    margin: 18px 0;
    border: none;
    border-radius: 12px;
    font-size: 1.25rem;
    background: rgba(255,255,255,0.18);
    color: white;
}

.form-section input::placeholder {
    color: rgba(255,255,255,0.75);
}

.form-section button {
    width: 100%;
    background: #e63946;
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(230,57,70,0.4);
    transition: all 0.35s;
}

.form-section button:hover {
    background: #c5303a;
    transform: translateY(-5px);
}

/* ====================== FOOTER ====================== */
footer {
    background: #0a0e17;
    color: #bbb;
    text-align: center;
    padding: 50px 20px;
    font-size: 1rem;
}

/* ====================== MODAL ====================== */
.btn-submit {
    width: 100%;
    background: #e63946;
    color: white !important;
    border: none;
    padding: 20px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(230,57,70,0.4);
    transition: all 0.35s;
    margin-top: 20px;
    display: block; /* tugma ko'rinishi uchun majburiy */
}

.btn-submit:hover {
    background: #c5303a;
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(230,57,70,0.5);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 35px;
    border-radius: 18px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 36px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #e63946;
}

.modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #0f2027;
    text-align: center;
    margin-bottom: 30px;
}

/* ====================== MOBIL MOSLASHUV ====================== */
@media (max-width: 768px) {
    .hero { padding: 80px 15px 60px; }
    .hero h1 { font-size: 3.5rem; }
    .hero .subtitle { font-size: 1.3rem; }
    .btn-primary { padding: 16px 50px; font-size: 1.4rem; }
    .benefits h2, .form-section h2 { font-size: 2.4rem; }
    .image-box { height: 280px; max-width: 600px; }
}