* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.logo img {
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.cta-btn {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .cta-btn {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Products Section */
.products {
    padding: clamp(3rem, 10vw, 6.25rem) 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    color: var(--dark);
    position: relative;
    padding-bottom: 1rem;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 15vw, 80px);
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: clamp(180px, 30vw, 200px);
    object-fit: cover;
}

.product-info {
    padding: clamp(1rem, 3vw, 1.5rem);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    line-height: 1.6;
    flex: 1;
}

.product-price {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.buy-btn {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 0.9rem);
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    touch-action: manipulation;
}

.buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.buy-btn:active {
    transform: scale(0.98);
}

/* Testimonials */
.testimonials {
    padding: clamp(3rem, 10vw, 6.25rem) 0;
    background: var(--light);
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin: 0 -1rem;
}

.testimonials-track {
    display: flex;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: clamp(280px, 80vw, 350px);
    background: white;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 16px;
    margin: 0 clamp(0.5rem, 2vw, 1rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-weight: 700;
    color: var(--dark);
    font-size: clamp(0.95rem, 2.5vw, 1rem);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
}

/* Contact Section */
.contact {
    padding: clamp(3rem, 10vw, 6.25rem) 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .contact-grid {
        padding: 0;
    }
}

.contact-card {
    background: var(--gradient);
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.contact-icon {
    font-size: clamp(2.5rem, 8vw, 3rem);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    opacity: 0.95;
    word-break: break-word;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    background: white;
    margin: clamp(1rem, 5vh, 5%) auto;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close,
.close-download {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover,
.close-download:hover {
    color: var(--dark);
}

.modal-body img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    height: auto;
}

.modal-body h2 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    padding-right: 2rem;
    line-height: 1.3;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.modal-price {
    font-size: clamp(1.75rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.payment-status {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.payment-status.success {
    background: #d1fae5;
    color: #065f46;
}

.payment-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.download-btn {
    width: 100%;
    padding: 1rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: #059669;
    transform: scale(1.02);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 100svh;
        min-height: 600px;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .section-title {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-content {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        min-height: 500px;
    }

    .products-grid,
    .contact-grid {
        gap: 1rem;
    }

    .modal-content {
        margin: 0.5rem auto;
        padding: 1.25rem;
        border-radius: 12px;
    }

    .close,
    .close-download {
        right: 0.75rem;
        top: 0.75rem;
        font-size: 1.5rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cta-btn {
        padding: 0.7rem 2rem;
        font-size: 0.95rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .contact-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .buy-btn,
    .cta-btn,
    .contact-card,
    .nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Larger touch targets */
    .nav-link {
        padding: 1rem;
        margin: -0.5rem 0;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonials-track {
        animation: none;
    }
}