/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 20px 0;
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    font-family: var(--font-main);
}

.logo-text span {
    color: var(--accent-primary);
    font-weight: 400;
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.5));
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-normal);
    box-shadow: 0 0 10px var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: var(--transition-fast);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(0, 225, 255, 0.05);
    color: var(--accent-primary);
    padding-left: 25px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-buttons-mobile {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 3px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.7) 50%, rgba(10, 10, 15, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 225, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 225, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    text-transform: capitalize;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-features i {
    color: var(--accent-primary);
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.statistics {
    background-color: var(--bg-secondary);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.3));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
}

.stat-number::after {
    content: '+';
    color: var(--accent-primary);
}

.stat-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Showcase Section
   ========================================================================== */
.showcase {
    overflow: hidden;
}

.marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Full width bleed */
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

/* Gradient masks for smooth edges */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    gap: 20px;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }

    /* 50% because we duplicated content, -10px for half the gap */
}

.poster {
    width: 250px;
    height: 375px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.poster:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 225, 255, 0.2);
    border-color: rgba(0, 225, 255, 0.3);
    z-index: 10;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background-color: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 225, 255, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 225, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 225, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 225, 255, 0.1);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(26, 26, 36, 1) 0%, rgba(20, 20, 30, 1) 100%);
    border: 2px solid var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 225, 255, 0.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 225, 255, 0.2);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-glow);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.popular .pricing-header h3 {
    color: #fff;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price span {
    font-size: 1.5rem;
    margin-top: 5px;
}

.price span:last-child {
    font-size: 1.2rem;
    align-self: flex-end;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.period {
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.popular .pricing-features li {
    color: #fff;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
    background-color: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(0, 225, 255, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.faq-question i {
    color: var(--accent-primary);
    transition: transform 0.4s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-question {
    color: var(--accent-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #050508;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition-normal);
}

.footer-logo:hover .logo-text {
    opacity: 1;
}

.footer-logo .logo-icon {
    font-size: 1.8rem;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.social-icon.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Scroll Top Button
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 225, 255, 0.4);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-15px);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Navbar */
    .nav-btn-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        justify-content: flex-start;
        padding-top: 120px;
        padding-bottom: 50px;
        overflow-y: auto;
    }

    .navbar.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border: none;
        transform: none !important;
        display: none;
        margin-top: 15px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        transform: none !important;
    }

    .dropdown-menu a {
        font-size: 1.1rem;
        padding: 10px;
        text-align: center;
    }

    .nav-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 80%;
        max-width: 300px;
        margin: 40px auto 0;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-center {
        order: -1;
        /* Move logo to top */
    }
}

@media (max-width: 576px) {
    /* Mobile Layout Refinements per request */

    /* Stats */
    .stats-container {
        grid-template-columns: 1fr;
        /* Vertical on mobile */
        gap: 15px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        /* Vertical on mobile */
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        /* Vertical cards on mobile */
    }

    /* Adjust Hero */
    .hero-title {
        font-size: 2rem;
    }

    .poster {
        width: 200px;
        height: 300px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}