/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --gradient: radial-gradient(circle at 50% 0%, rgb(38, 61, 129) 0%, rgb(114, 89, 48) 100%);
    --gradient-animated: radial-gradient(circle at 50% 0%, rgb(38, 61, 129) 0%, rgb(114, 89, 48) 100%);
}

body {
    font-family: 'Roboto', 'Manrope', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
    transition: transform 0.2s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo a:active {
    transform: scale(0.95);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    margin-top: 80px;
    padding: 100px 0;
    background: var(--gradient);
    background-size: 200% 200%;
    color: var(--white);
    text-align: center;
    animation: gradientAnimation 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(38, 61, 129, 0.3) 0%, rgba(114, 89, 48, 0.1) 100%);
    animation: rotateBackground 20s linear infinite;
}

@keyframes gradientAnimation {
    0%, 100% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 50% 50%;
    }
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    animation: fadeInLeft 1s ease forwards;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Animation Container */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Floating Circles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: -80px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation-delay: -10s;
    animation-duration: 18s;
}

.circle-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: -15s;
    animation-duration: 22s;
}

.circle-5 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: 20%;
    animation-delay: -8s;
    animation-duration: 28s;
}

/* Glowing Dots */
.glowing-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.6),
                0 0 30px rgba(255, 255, 255, 0.4);
    animation: glow 3s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    right: 25%;
    animation-delay: -1s;
}

.dot-3 {
    bottom: 30%;
    left: 30%;
    animation-delay: -2s;
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.google-play-badge img {
    height: 60px;
    transition: transform 0.3s ease;
}

.google-play-badge:hover img {
    transform: scale(1.05);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 500;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--white);
}

.portfolio-section .section-title {
    color: var(--white);
}

.portfolio-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Subscriptions Section */
.subscriptions-section {
    padding: 80px 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.best-value {
    border-color: #10b981;
    transform: scale(1.05);
}

.pricing-card.best-value:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card.best-value .pricing-badge {
    background: #10b981;
}

/* App Subscriptions Sections */
.app-subscriptions {
    margin-bottom: 60px;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.plan-type {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.pricing-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
}

.price .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
}

.price .amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.period {
    color: var(--text-light);
    font-size: 14px;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-dark);
    font-size: 15px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.pricing-btn.primary {
    background: var(--primary-color);
    color: var(--white);
}

.pricing-btn.primary:hover {
    background: var(--secondary-color);
}

.pricing-note {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.pricing-note p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
}

/* Downloads Section */
.downloads-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.downloads-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.download-section {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.downloads-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.download-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.download-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.download-details p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Reseller Section */
.reseller-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.reseller-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.reseller-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 600;
}

.reseller-interfaces-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.reseller-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.reseller-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.reseller-images img:hover {
    transform: scale(1.02);
}

/* How We Work Section */
.how-we-work-section {
    padding: 80px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: rgba(37, 99, 235, 0.15);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    padding-right: 50px;
}

.step-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.main-footer p {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured,
    .pricing-card.best-value {
        transform: scale(1);
    }

    .downloads-list {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reseller-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h3 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stat Counter Animation */
.stat-number {
    animation: countUp 1s ease forwards;
}

/* Floating Animation for Icons */
.download-icon:hover,
.pricing-btn:hover {
    animation: pulse 0.5s ease;
}

/* Hero Animation */
.hero-text h1 {
    animation: fadeInDown 1s ease forwards;
}

.hero-text h3 {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-text p {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.google-play-badge {
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

/* Card Hover Effects */
.pricing-card,
.download-item,
.testimonial-item,
.step-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Staggered Animation for Grid Items */
.pricing-card:nth-child(1) { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.pricing-card:nth-child(2) { animation: fadeInUp 0.7s ease forwards; opacity: 0; }
.pricing-card:nth-child(3) { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.pricing-card:nth-child(4) { animation: fadeInUp 0.9s ease forwards; opacity: 0; }
.pricing-card:nth-child(5) { animation: fadeInUp 1s ease forwards; opacity: 0; }
.pricing-card:nth-child(6) { animation: fadeInUp 1.1s ease forwards; opacity: 0; }

.download-section:nth-child(1) { animation: fadeInLeft 0.8s ease forwards; opacity: 0; }
.download-section:nth-child(2) { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.download-section:nth-child(3) { animation: fadeInRight 0.8s ease forwards; opacity: 0; }

/* Progress Bar Animation */
.progress-bar {
    width: 0%;
    animation: progressFill 1.5s ease forwards;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

/* Image Hover Zoom */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

.download-item img,
.testimonial-item img {
    transition: transform 0.3s ease;
}

.download-item:hover img,
.testimonial-item:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Text Gradient Animation */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Bounce Animation */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ==========================================
   APP CAROUSEL STYLES
   ========================================== */

.app-carousel {
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Carousel responsive */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* ==========================================
   TELEGRAM FLOATING BUTTON
   ========================================== */

.telegram-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: telegramFloat 3s ease-in-out infinite;
    text-decoration: none;
}

.telegram-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.6);
    animation: none;
}

.telegram-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: telegramPulse 2s ease-in-out infinite;
}

.telegram-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.telegram-float-btn:hover .telegram-icon {
    animation: none;
}

.telegram-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-dark);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.telegram-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}

.telegram-float-btn:hover .telegram-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes telegramFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes telegramPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Ripple effect for Telegram button */
.telegram-float-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: telegramRipple 2s ease-out infinite;
}

@keyframes telegramRipple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .telegram-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .telegram-tooltip {
        display: none;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 15px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: contrast(1.1) brightness(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 10px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 600;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
}

/* ==========================================
   TRIAL POPUP
   ========================================== */

.trial-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trial-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.trial-popup {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 136, 204, 0.3);
}

.trial-popup-overlay.show .trial-popup {
    transform: scale(1);
}

.trial-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trial-popup-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.trial-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: telegramPulse 2s ease-in-out infinite;
}

.trial-popup-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.trial-popup-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.trial-popup-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.trial-popup-subtitle {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 25px;
}

.trial-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.trial-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .trial-popup {
        padding: 30px 20px;
        margin: 20px;
    }

    .trial-popup-content h3 {
        font-size: 24px;
    }

    .trial-popup-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ==========================================
   MOBILE OPTIMIZATIONS (Android & iPhone)
   ========================================== */

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header & Logo */
    .logo img {
        height: 40px;
    }

    .logo a:hover {
        transform: none;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 0;
        margin-top: 60px;
    }

    .hero-title-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .hero-content h1 {
        font-size: 42px;
        text-align: center;
    }

    .hero-content p {
        font-size: 18px;
        text-align: center;
    }

    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Section Titles */
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* App Subscriptions */
    .app-title {
        font-size: 22px;
    }

    .app-carousel {
        margin-bottom: 30px;
    }

    .carousel-container {
        max-width: 100%;
        border-radius: 12px;
    }

    /* Pricing Cards */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 25px 20px;
    }

    .pricing-card h4 {
        font-size: 18px;
    }

    .pricing-header .price {
        font-size: 32px;
    }

    .pricing-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Downloads Section */
    .downloads-wrapper {
        gap: 20px;
    }

    .download-section {
        padding: 20px;
    }

    .download-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .download-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* Steps Section */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-item {
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo img {
        width: 80px;
        height: 80px;
    }

    .footer-logo h3 {
        font-size: 20px;
    }

    /* Telegram Floating Button */
    .telegram-float-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .telegram-icon {
        width: 28px;
        height: 28px;
    }

    /* Telegram Popup */
    .trial-popup {
        margin: 15px;
        padding: 25px 20px;
        max-width: calc(100% - 30px);
    }

    .trial-popup-icon {
        width: 70px;
        height: 70px;
    }

    .trial-popup-icon img {
        width: 40px;
        height: 40px;
    }

    .trial-popup-content h3 {
        font-size: 22px;
    }

    .trial-popup-content p {
        font-size: 14px;
    }

    .trial-popup-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .pricing-card {
        padding: 20px 15px;
    }

    .pricing-header .price {
        font-size: 28px;
    }

    .app-title {
        font-size: 20px;
    }

    .telegram-float-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* iPhone Specific Optimizations */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari */
    .pricing-card,
    .download-section,
    .testimonial-item {
        -webkit-overflow-scrolling: touch;
    }

    .telegram-float-btn {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Android Specific Optimizations */
@media (max-width: 768px) and (min-width: 481px) {
    /* Tablets */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
