* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    animation: logoGlow 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
}

.nav-brand:hover .logo {
    transform: rotate(360deg) scale(1.1);
}

.brand-text {
    font-size: 1rem;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    width: 0;
    color: var(--primary);

    animation:
        typingEffect 4s steps(13) infinite,
        blinkCursor .8s infinite;
}

@keyframes typingEffect {
    0% {
        width: 0;
    }

    40% {
        width: 120px;
    }

    60% {
        width: 120px;
    }

    100% {
        width: 0;
    }
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.2;
        max-width: 150px;
    }
    .logo {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .nav-brand {
        gap: 8px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="rgba(255,255,255,0.05)" d="M69.5,-79.2C87.5,-66.8,97.2,-43.3,101.7,-18.9C106.2,5.5,105.5,30.9,94.9,51.6C84.3,72.3,63.9,88.3,41.7,96.1C19.5,103.9,-4.5,103.5,-26.3,95.8C-48.1,88.1,-67.7,73.1,-80.5,53.3C-93.3,33.5,-99.3,8.9,-95.5,-13.6C-91.7,-36.1,-78.1,-56.5,-60.1,-69.8C-42.1,-83.1,-21,-89.2,0.5,-89.8C22,-90.4,51.5,-91.6,69.5,-79.2Z" transform="translate(100 100)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    
    
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:active::before {
    width: 200%;
    height: 200%;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-placeholder {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    animation: floatAnimation 3s ease-in-out infinite;
}

.hero-placeholder i {
    font-size: 4rem;
    margin: 0 15px;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

.hero-placeholder i:nth-child(1) { animation-delay: 0s; }
.hero-placeholder i:nth-child(2) { animation-delay: 0.3s; }
.hero-placeholder i:nth-child(3) { animation-delay: 0.6s; }

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Sections */
section {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Services & Courses Grid */
.services-grid, .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card, .course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card::before, .course-card::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: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::before, .course-card:hover::before {
    left: 100%;
}

.service-card:hover, .course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card .course-image,
.course-card .course-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card .course-image i,
.course-card .course-image i {
    font-size: 4rem;
    color: white;
    transition: all 0.3s ease;
    animation: iconPulse 2s ease-in-out infinite;
}

.service-card:hover .course-image i,
.course-card:hover .course-image i {
    transform: scale(1.2) rotate(10deg);
    animation: none;
}

.course-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
}

.service-card:hover .course-image::before,
.course-card:hover .course-image::before {
    transform: scale(1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #06b6d4;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 2;
}

.service-card:hover,
.course-card:hover {

    transform:
        perspective(1000px)
        rotateX(5deg)
        rotateY(-5deg)
        translateY(-12px)
        scale(1.02);

    box-shadow:
        0 20px 45px rgba(0,0,0,.15),
        0 0 30px rgba(99,102,241,.2);
}

.service-card .course-content,
.course-card .course-content {
    padding: 1.5rem;
}

.service-card h3, .course-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p, .course-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-more {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-more:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.btn-order {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact */
.contact {
    background: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-submit::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: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== FOOTER (1-saytdagidek) ========== */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px) rotate(360deg);
}

.social-link:nth-child(1):hover { background: #0088cc; }
.social-link:nth-child(2):hover { background: #e4405f; }
.social-link:nth-child(3):hover { background: #ff0000; }
.social-link:nth-child(4):hover { background: #1877f2; }
.social-link:nth-child(5):hover { background: #333333; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    position: relative;
    animation: slideInDown 0.3s;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-swipe-indicator {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    cursor: grab;
}

.modal-swipe-indicator:active {
    cursor: grabbing;
}

.modal-swipe-indicator i {
    color: var(--gray);
    font-size: 1.2rem;
}

.modal-swipe-indicator span {
    font-size: 0.75rem;
    color: var(--gray);
    margin-left: 8px;
}

.modal-detail {
    max-width: 650px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close:hover {
    color: var(--danger);
}

.detail-info {
    padding: 10px 0;
}

.detail-info p {
    margin: 15px 0;
    line-height: 1.6;
}

.detail-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

.detail-info li {
    margin: 10px 0;
}

.detail-features {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
}

.tariff-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.tariff-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.tariff-duration {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    min-width: 300px;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease;
}

.notification-success { border-left-color: var(--success); }
.notification-error { border-left-color: var(--danger); }
.notification-info { border-left-color: var(--primary); }

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Animations */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hamburger {
        display: flex;
    }
    
   @media (max-width: 768px) {

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-menu {

        position: fixed;

        top: 0;
        left: -280px;

        width: 260px;
        height: 50vh;

        background: hsla(150, 8%, 95%, 0.98);

        backdrop-filter: blur(15px);

        flex-direction: column;

        align-items: flex-start;

        padding: 100px 25px;

        gap: 25px;

        transition: 0.4s ease;

        box-shadow: 10px 0 30px rgba(0,0,0,.25);

        z-index: 1001;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {

        color: #0a0909;

        font-size: 18px;

        width: 100%;

        padding: 12px 15px;

        border-radius: 12px;

        transition: .3s;
    }

    .nav-link:hover {
        background: rgba(255,255,255,.08);
        padding-left: 22px;
    }

}
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid, .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
    
    .notification {
        min-width: 280px;
        right: 10px;
        left: 10px;
        top: 10px;
    }
    
    .hero-placeholder i {
        font-size: 2.5rem;
        margin: 0 8px;
    }
    
    .hero-placeholder {
        padding: 25px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
}
.hero-text p{
    font-size:1.1rem;
    color:var(--light);
    margin-bottom:30px;

    opacity:0;
    transform:translateY(30px);
    animation:fadeUp 1.2s ease forwards;
    animation-delay:.5s;
}

@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* PREMIUM BUTTON EFFECT */

.btn,
.btn-more,
.btn-order,
.btn-submit {

    position: relative;
    overflow: hidden;
    isolation: isolate;

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

/* SHINE EFFECT */

.btn::after,
.btn-more::after,
.btn-order::after,
.btn-submit::after {

    content: '';

    position: absolute;

    top: -50%;
    left: -60%;

    width: 40px;
    height: 220%;

    background: rgba(255,255,255,.45);

    transform: rotate(25deg);

    transition: .8s ease;
}

.btn:hover::after,
.btn-more:hover::after,
.btn-order:hover::after,
.btn-submit:hover::after {

    left: 130%;
}

/* HOVER */

.btn:hover,
.btn-more:hover,
.btn-order:hover,
.btn-submit:hover {

    transform:
        translateY(-7px)
        scale(1.03);

    box-shadow:
        0 0 15px rgba(99,102,241,.4),
        0 0 35px rgba(99,102,241,.25),
        0 0 70px rgba(99,102,241,.2);
}

/* CLICK */

.btn:active,
.btn-more:active,
.btn-order:active,
.btn-submit:active {

    transform: scale(.95);
}
.btn-order {

    animation: pulsePremium 2s infinite;
}

@keyframes pulsePremium {

    0% {
        box-shadow: 0 0 0 0 rgba(99,102,241,.6);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(99,102,241,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99,102,241,0);
    }
}
/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}