:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --secondary-color: #0284c7;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    padding: 8px 5%;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-info i {
    color: var(--primary-color);
}

/* Header / Navbar */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

.btn-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
    transition: var(--transition);
}

.btn-header:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Slider Section */
.hero {
    width: 100%;
    height: 82vh;
    min-height: 520px;
    position: relative;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 850px;
    padding: 0 20px;
}

.slide-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.slide-content .slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 32px;
    color: #e2e8f0;
    font-weight: 300;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: #d97706;
}

/* Section Styling */
.section {
    padding: 90px 8%;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 14px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 15px;
}

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

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary-color);
}

.stat-card h4 {
    font-size: 28px;
    color: var(--primary-dark);
}

.stat-card p {
    font-size: 12px;
    margin-bottom: 0;
    color: var(--text-gray);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

.course-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.course-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-body h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.course-body p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-features {
    list-style: none;
    margin-bottom: 25px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.course-features li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-features li i {
    color: var(--primary-color);
}

/* Registration Form Section */
.registration-container {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

select.form-control {
    appearance: none;
    background: #f8fafc url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 15px center;
}

/* POP-UP MODAL STYLES */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-box {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.popup-close:hover {
    background: #ef4444;
    color: var(--white);
}

.popup-box h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    text-align: center;
}

.popup-box p {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 25px;
}

/* SEO Text Block */
.seo-keywords-block {
    background: #f1f5f9;
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
}

.seo-keywords-block h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: var(--white);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #cbd5e1;
}

/* Floating Contact Buttons */
.floating-contacts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.15);
}

.float-btn.telegram { background-color: #0088cc; }
.float-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.float-btn.phone { background-color: #10b981; }
.float-btn.location { background-color: #ef4444; }

/* Pulse Animation for Phone & Telegram */
.float-btn.pulse {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 8% 30px;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p, .footer-col li {
    font-size: 14px;
    line-height: 2;
}

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

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-links { display: none; }
    .slide-content .slide-title { font-size: 32px; }
    .slide-content p { font-size: 15px; }
    .registration-container { padding: 30px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .floating-contacts { bottom: 20px; right: 20px; }
    .float-btn { width: 48px; height: 48px; font-size: 20px; }
}

/* ---- Icons (inline SVG sprite) ---- */
.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; flex-shrink: 0; }
.float-btn .i { width: 26px; height: 26px; }
.popup-close .i { width: 16px; height: 16px; }

/* ---- Hero slider (vanilla JS) ---- */
.slider { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0f172a; }
.swiper-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.swiper-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 50px; height: 50px; border: 0; border-radius: 50%; color: var(--white); background: rgba(255,255,255,.2); backdrop-filter: blur(5px); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.slider-btn:hover { background: var(--primary-color); }
.slider-btn.prev { left: 18px; } .slider-btn.next { right: 18px; }
.slider-btn .i { width: 22px; height: 22px; }
.slider-dots { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border: 0; border-radius: 5px; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: var(--transition); }
.slider-dots button.is-active { width: 24px; background: var(--accent-color); }

/* ---- Scroll reveal (replaces AOS) ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .swiper-slide { transition: none; } html { scroll-behavior: auto; } }

/* ---- Images in cards / about ---- */
.course-img-wrapper picture, .about-img picture { display: block; width: 100%; height: 100%; }
.about-img img { aspect-ratio: 960 / 707; object-fit: cover; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: #e2e8f0; }
.gallery-item picture, .gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span { position: absolute; left: 12px; bottom: 12px; background: rgba(15,23,42,.75); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

/* ---- Form helpers ---- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: 14px; display: none; }
.form-status.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.btn-primary[disabled] { opacity: .7; cursor: wait; transform: none; }
.logo .i { color: var(--accent-color); width: 1.2em; height: 1.2em; }
.top-bar-info .i, .footer-col .i { color: var(--primary-color); }
.course-features li .i { color: var(--primary-color); }
@media (max-width: 768px) { .slider-btn { display: none; } }

/* ---- Til almashtirgich + yangi sinflar ---- */
.section-alt { background: #f1f5f9; }
.course-num { display: none; }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1.5px solid #cbd5e1; border-radius: 30px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang-switch a { padding: 7px 13px; text-decoration: none; color: var(--text-dark); transition: var(--transition); }
.lang-switch a:hover { background: #f1f5f9; }
.lang-switch a.is-active { background: var(--primary-color); color: var(--white); }
@media (max-width: 480px) { .btn-header { display: none; } }
