/**
 * SMMBooster - Frontend Responsive CSS
 * PC + Mobile + Tablet Responsive Design
 */

/* ========== Base Typography & Variables ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* ========== Preloader ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader .jumper {
    display: flex;
    gap: 8px;
}

#preloader .jumper > div {
    width: 14px;
    height: 14px;
    background-color: var(--primary, #4361ee);
    border-radius: 50%;
    animation: jumper 0.6s infinite alternate;
}

#preloader .jumper > div:nth-child(2) {
    animation-delay: 0.2s;
}

#preloader .jumper > div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes jumper {
    from { transform: translateY(0); }
    to   { transform: translateY(-20px); }
}

/* ========== Header / Navigation ========== */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.header-area.header-scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.header-area .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-area .logo img {
    max-height: 45px;
    transition: all 0.3s ease;
}

.header-area .main-nav .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-area .main-nav .nav li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.header-area.header-scrolled .main-nav .nav li a {
    color: #333;
}

.header-area .main-nav .nav li a:hover,
.header-area .main-nav .nav li a.active {
    color: var(--primary, #4361ee);
}

.header-area .main-nav .nav li.login a {
    color: var(--primary, #4361ee);
    border: 2px solid var(--primary, #4361ee);
    border-radius: 25px;
    padding: 6px 20px;
}

.header-area .main-nav .nav li.try a {
    background: var(--primary, #4361ee);
    color: #fff !important;
    border-radius: 25px;
    padding: 8px 24px;
}

.header-area .main-nav .nav li.try a:hover {
    opacity: 0.9;
}

/* Nav extras: currency + language grouped */
.nav-extras {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0 5px;
}

.nav-extras-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-lang-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.nav-lang-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-scrolled .nav-lang-dropdown .dropdown-toggle {
    background: rgba(0, 0, 0, 0.04);
}

.header-scrolled .nav-lang-dropdown .dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Auth buttons: register + login side by side */
.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0 !important;
    margin-left: 5px;
}

.nav-auth-buttons .btn-register {
    display: inline-block;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-scrolled .nav-auth-buttons .btn-register {
    color: var(--primary, #4361ee);
    border-color: var(--primary, #4361ee);
}

.nav-auth-buttons .btn-register:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-scrolled .nav-auth-buttons .btn-register:hover {
    background: rgba(67, 97, 238, 0.08);
}

.nav-auth-buttons .btn-login {
    display: inline-block;
    background: #fff;
    color: var(--primary, #4361ee);
    border-radius: 25px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-scrolled .nav-auth-buttons .btn-login {
    background: var(--primary, #4361ee);
    color: #fff;
}

.nav-auth-buttons .btn-login:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Language dropdown in nav */
.header-area .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 13px;
}

.header-area.header-scrolled .dropdown-toggle {
    color: #333;
}

.header-area .dropdown-menu {
    min-width: 150px;
}

.header-area .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Currency Badge in Nav */
.nav-currency-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-scrolled .nav-currency-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Mobile Menu Trigger */
.menu-trigger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-trigger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0;
}

.header-area.header-scrolled .menu-trigger span {
    background: #333;
}

.menu-trigger span::before,
.menu-trigger span::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: inherit;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-trigger span::before {
    top: -8px;
}

.menu-trigger span::after {
    top: 8px;
}

.menu-trigger.active span {
    background: transparent;
}

.menu-trigger.active span::before {
    top: 0;
    transform: rotate(45deg);
    background: #333;
}

.menu-trigger.active span::after {
    top: 0;
    transform: rotate(-45deg);
    background: #333;
}

/* ========== Welcome Area ========== */
.welcome-area {
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #3f37c9) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.welcome-area .header-text {
    padding: 60px 0 80px;
}

.welcome-area .header-text h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.welcome-area .header-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.welcome-area .header-text a {
    display: inline-block;
    background: #fff;
    color: var(--primary, #4361ee);
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.welcome-area .header-text a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ========== Sections General ========== */
.section {
    padding: 80px 0;
}

#about {
    padding: 80px 0;
}

.center-heading {
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.center-text {
    text-align: center;
    margin-bottom: 40px;
}

.center-text p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* ========== About Section ========== */
.left-heading h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.left-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.left-text a {
    display: inline-block;
    background: var(--primary, #4361ee);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.left-text a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

/* ========== Features / Services Cards ========== */
.features-small-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.features-small-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.features-small-item .icon-o {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #4361ee), var(--secondary, #3f37c9));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.features-small-item .icon-o i {
    font-size: 28px;
    color: #fff;
}

.features-small-item .features-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.features-small-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== Testimonials ========== */
.team-item {
    margin-bottom: 30px;
}

.team-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.team-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.team-content i svg {
    width: 30px;
    height: 30px;
    fill: var(--primary, #4361ee);
    opacity: 0.3;
    margin-bottom: 15px;
}

.team-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.user-image {
    margin-bottom: 15px;
}

.user-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary, #4361ee);
}

.team-info .user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.team-info span {
    font-size: 0.85rem;
    color: #999;
}

/* ========== FAQ Section ========== */
#faq {
    background: #f8f9fa;
}

.item-faq {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.item-faq .title {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s ease;
}

.item-faq .title:hover {
    background: #f8f9fa;
}

.item-faq .title i {
    color: var(--primary, #4361ee);
    font-size: 14px;
    flex-shrink: 0;
}

.item-faq .title h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.item-faq .body {
    display: none;
    padding: 0 25px 18px 50px;
    color: #666;
    line-height: 1.7;
}

.item-faq.open .title {
    background: #f8f9fa;
}

/* ========== Contact Section ========== */
#contact-us {
    padding: 80px 0;
}

#contact-us h5 {
    font-weight: 600;
    color: #333;
}

.contact-text p {
    color: #666;
    line-height: 1.8;
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary, #4361ee);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.main-button {
    background: var(--primary, #4361ee);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
}

/* ========== Footer ========== */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer .social {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer .social li a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .social li a:hover {
    background: var(--primary, #4361ee);
    transform: translateY(-3px);
}

footer .copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

footer .copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer .copyright a:hover {
    color: #fff;
}

/* ========== Fun Facts / Counter ========== */
.fun-facts {
    background: linear-gradient(135deg, var(--primary, #4361ee) 0%, var(--secondary, #3f37c9) 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .welcome-area .header-text h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* Mobile Nav */
    .menu-trigger {
        display: block;
    }

    .main-nav .nav {
        display: none !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column !important;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .main-nav .nav.show-nav {
        display: flex !important;
        right: 0;
    }

    .main-nav .nav li {
        width: 100%;
    }

    .main-nav .nav li a {
        color: #333 !important;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav .nav li.login a,
    .main-nav .nav li.try a {
        text-align: center;
        margin-top: 5px;
    }

    .main-nav .nav li .dropdown {
        width: 100%;
    }

    .main-nav .nav li .dropdown-toggle {
        color: #333 !important;
        padding: 12px 15px;
    }

    /* Mobile: extras inline */
    .nav-extras {
        width: 100%;
        padding: 10px 15px !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-extras-group {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-currency-badge {
        background: rgba(0, 0, 0, 0.05) !important;
        color: #333 !important;
    }

    .nav-lang-dropdown .dropdown-toggle {
        background: rgba(0, 0, 0, 0.04) !important;
    }

    /* Mobile: auth buttons stacked */
    .nav-auth-buttons {
        width: 100%;
        padding: 12px 15px !important;
        margin-left: 0;
        flex-direction: column;
        gap: 8px;
    }

    .nav-auth-buttons .btn-register {
        width: 100%;
        text-align: center;
        color: var(--primary, #4361ee) !important;
        border-color: var(--primary, #4361ee);
    }

    .nav-auth-buttons .btn-login {
        width: 100%;
        text-align: center;
        background: var(--primary, #4361ee);
        color: #fff;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .welcome-area {
        min-height: auto;
        padding-top: 80px;
    }

    .welcome-area .header-text {
        padding: 40px 0 60px;
    }

    .welcome-area .header-text h1 {
        font-size: 1.8rem;
    }

    .welcome-area .header-text p {
        font-size: 0.95rem;
    }

    .welcome-area .col-md-6:last-child {
        margin-top: 30px;
    }

    .section {
        padding: 50px 0;
    }

    #about {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-small-item {
        padding: 20px 18px;
    }

    .features-small-item .icon-o {
        width: 55px;
        height: 55px;
    }

    .features-small-item .icon-o i {
        font-size: 22px;
    }

    #contact-us {
        padding: 50px 0;
    }

    /* Stack contact columns */
    #contact-us .col-lg-4 {
        margin-bottom: 30px;
    }

    footer {
        padding: 30px 0;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .welcome-area .header-text h1 {
        font-size: 1.5rem;
    }

    .welcome-area .header-text a {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .header-area .logo img {
        max-height: 35px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .center-text p {
        font-size: 0.9rem;
    }

    .features-small-item {
        padding: 18px 15px;
    }

    .contact-form .form-control {
        padding: 10px 12px;
    }

    .main-button {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
}

/* ========== RTL Support ========== */
[dir="rtl"] .menu-trigger {
    direction: rtl;
}

[dir="rtl"] .main-nav .nav.show-nav {
    right: auto;
    left: 0;
}

[dir="rtl"] .item-faq .body {
    padding: 0 50px 18px 25px;
}

/* ========== Utility overrides ========== */
.margin-bottom-30 {
    margin-bottom: 30px;
}

.mobile-top-fix {
    position: relative;
}

@media (max-width: 991px) {
    .mobile-top-fix {
        margin-top: 30px;
    }
}
