﻿/* ============================================
   AVIRAJ DIGITAL WEB TECH - Main Stylesheet
   ============================================ */

:root {
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --secondary: #38BDF8;
    --accent: #3B82F6;
    --warning: #F59E0B;
    --success: #059669;
    --bg-primary: #f4f8ff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #eaf2ff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #dbe7ff;
    --gradient-1: linear-gradient(135deg, #2563EB, #38BDF8);
    --gradient-2: linear-gradient(135deg, #F59E0B, #2563EB);
    --gradient-3: linear-gradient(135deg, #60A5FA, #1E40AF);
    --gradient-4: linear-gradient(135deg, #3B82F6, #2563EB);
    --shadow: 0 10px 40px rgba(37,99,235,0.12);
    --shadow-lg: 0 20px 60px rgba(37,99,235,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-inner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader p {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(37, 99, 235, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(37,99,235, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.12);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 15px 35px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(270deg, #2563EB, #0EA5E9, #3B82F6, #60A5FA, #2563EB);
    background-size: 400% 400%;
    color: white;
    box-shadow: 0 4px 20px rgba(37,99,235, 0.4);
    animation: btnColorFlow 5s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 3px 40px rgba(56,189,248, 0.7), 0 8px 30px rgba(37,99,235, 0.6);
    animation: btnColorFlow 2s ease infinite;
}

@keyframes btnColorFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Color-changing Buy Now button with pulse glow */
.btn-animated {
    position: relative;
    overflow: hidden;
    background: linear-gradient(270deg, #2563EB, #0EA5E9, #1E40AF, #60A5FA, #3B82F6, #2563EB);
    background-size: 500% 500%;
    animation: btnRainbow 6s linear infinite;
    z-index: 1;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3s ease-in-out infinite;
    z-index: -1;
}

.btn-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: inherit;
    background-size: 500% 500%;
    filter: blur(18px);
    opacity: 0.55;
    z-index: -2;
    animation: btnRainbowGlow 6s linear infinite;
}

.btn-animated:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 40px rgba(56,189,248, 0.8), 0 0 80px rgba(37,99,235, 0.5);
}

@keyframes btnRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 500% 50%; }
}

@keyframes btnRainbowGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 500% 50%; }
}

@keyframes btnShine {
    0% { left: -100%; }
    50% { left: 130%; }
    100% { left: -100%; }
}

/* Pulsing heartbeat glow for primary CTAs */
.btn-pulse {
    position: relative;
    animation: btnPulse 1.8s ease-in-out infinite;
}

.btn-pulse:hover {
    animation: btnPulse 0.8s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248, 0.6); }
    50% { box-shadow: 0 0 0 12px rgba(56,189,248, 0); }
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(37,99,235, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

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

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

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37,99,235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(37,99,235, 0.15);
    border: 1px solid rgba(37,99,235, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Code Window */
.hero-visual {
    animation: fadeInRight 0.8s ease 0.3s both;
}

.code-window {
    background: linear-gradient(160deg, #0f172a, #1e293b);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.15);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
    font-size: 0.8rem;
    color: #94a3b8;
}

.code-body {
    padding: 25px;
    overflow-x: auto;
}

.code-body pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-body code {
    color: #cbd5e1;
}

.code-purple { color: #60A5FA; }
.code-blue { color: #38BDF8; }
.code-green { color: #F59E0B; }
.code-yellow { color: #FDE047; }
.code-comment { color: #64748b; }

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Marquee Section
   ============================================ */
.marquee-section {
    padding: 25px 0;
    background: linear-gradient(90deg, rgba(37,99,235, 0.12), rgba(56,189,248, 0.12), rgba(255, 195, 0, 0.12));
    border-top: 1px solid rgba(37,99,235, 0.25);
    border-bottom: 1px solid rgba(56,189,248, 0.25);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(37,99,235, 0.15), rgba(56,189,248, 0.15));
    border: 1px solid rgba(37,99,235, 0.4);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3B82F6;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(37,99,235, 0.1);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   Filter Tabs
   ============================================ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: rgba(37,99,235, 0.15);
    color: var(--primary);
}

/* ============================================
   Product Cards with Flip
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    perspective: 1000px;
    height: 480px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card-front:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(56,189,248, 0.3);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #ffffff, #eaf2ff);
    border-color: rgba(37,99,235, 0.4);
}

/* Card Front */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-front:hover .card-image img {
    transform: scale(1.1);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.badge-category {
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-featured {
    background: rgba(255, 107, 107, 0.9);
}

.badge-sale {
    background: rgba(39, 174, 96, 0.9);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.card-rating {
    color: #f1c40f;
}

.card-rating span {
    color: var(--text-muted);
}

.card-downloads {
    color: var(--text-muted);
}

.card-price {
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3B82F6, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 10px;
}

.price-sale {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success);
}

/* Card Back */
.card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.card-back-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.btn-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(255, 107, 107, 0.3);
    color: var(--secondary);
}

.card-back-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.card-back-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-back-features h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.card-back-features ul {
    list-style: none;
    margin-bottom: 15px;
}

.card-back-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-back-features li i {
    color: var(--success);
    font-size: 0.7rem;
}

.card-back-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(37,99,235, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--primary);
}

.card-back-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-sale-big {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Categories Grid
   ============================================ */
.categories-section {
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cat-color, var(--primary));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--cat-color, var(--primary));
    box-shadow: 0 10px 30px rgba(56,189,248, 0.2);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cat-color, var(--primary)), rgba(0,0,0,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-arrow {
    margin-top: 15px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 30px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(56,189,248, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.testimonial-stars {
    color: #f1c40f;
    margin-bottom: 15px;
    display: flex;
    gap: 3px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-method p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px 14px 45px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235, 0.1);
}

.form-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group textarea ~ i {
    top: 18px;
    transform: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.footer-wave svg {
    display: block;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(56,189,248, 0.5);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-desc { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .hero-title { font-size: 2.5rem; }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-actions { display: none; }
    .hamburger { display: block; }
    
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .section-title { font-size: 1.6rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-buttons { flex-direction: column; }
    .categories-grid { grid-template-columns: 1fr; }
}

/* ============================================
   COLORFUL UI + AUTO BOX COLOR CHANGE (ADH)
   ============================================ */

@keyframes boxColorFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes boxGlowFlow {
    0%   { box-shadow: 0 10px 30px rgba(255, 84, 84, 0.20),  0 0 0 1px rgba(255, 84, 84, .22); }
    20%  { box-shadow: 0 10px 30px rgba(255, 176, 59, 0.20), 0 0 0 1px rgba(255, 176, 59, .22); }
    40%  { box-shadow: 0 10px 30px rgba(82, 213, 129, 0.20), 0 0 0 1px rgba(82, 213, 129, .22); }
    60%  { box-shadow: 0 10px 30px rgba(56, 189, 248, 0.22), 0 0 0 1px rgba(56, 189, 248, .28); }
    80%  { box-shadow: 0 10px 30px rgba(167, 139, 250, 0.22), 0 0 0 1px rgba(167, 139, 250, .28); }
    100% { box-shadow: 0 10px 30px rgba(255, 84, 84, 0.20), 0 0 0 1px rgba(255, 84, 84, .22); }
}

@keyframes cardBorderFlow {
    0%   { border-color: rgba(255, 84, 84, .55); }
    25%  { border-color: rgba(255, 176, 59, .55); }
    50%  { border-color: rgba(56, 189, 248, .6); }
    75%  { border-color: rgba(167, 139, 250, .6); }
    100% { border-color: rgba(255, 84, 84, .55); }
}

/* Product boxes keep changing colors automatically */
.card-front,
.card-back {
    background: linear-gradient(135deg, #ffffff, #ffeef2, #eaf3ff, #eafff3, #fff6e6, #f3e8ff, #ffffff);
    background-size: 400% 400%;
    animation: boxColorFlow 10s ease infinite, boxGlowFlow 9s linear infinite, cardBorderFlow 8s linear infinite;
    animation-delay: var(--card-delay, 0s);
    border: 2px solid rgba(56, 189, 248, .35);
}

.card-back {
    background: linear-gradient(135deg, #fdf4ff, #eef6ff, #eefef6, #fef6e8, #f5f3ff, #eef6ff) !important;
    background-size: 400% 400%;
}

/* Category boxes */
.category-card {
    background: linear-gradient(135deg, #ffffff, #ffedf0, #eef6ff, #e9fff4, #fdf6e3, #ffffff);
    background-size: 400% 400%;
    animation: boxColorFlow 12s ease infinite;
    animation-delay: var(--card-delay, 0s);
}

/* Feature & testimonial boxes */
.feature-card,
.testimonial-card,
.contact-form-wrapper {
    background: linear-gradient(135deg, #ffffff, #eff6ff, #fff2f6, #f0fdf4, #fffbeb, #ffffff);
    background-size: 400% 400%;
    animation: boxColorFlow 14s ease infinite;
    animation-delay: var(--card-delay, 0s);
}

/* ============================================
   AUTO IMAGE ROTATION INSIDE BOXES
   ============================================ */
.box-img-rotate {
    position: relative;
}
.box-img-rotate img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .85s ease, transform 2.2s ease;
    z-index: 0;
}
/* fallback before JS runs: show first image */
.box-img-rotate:not(.js-init) img:first-child {
    opacity: 1;
    z-index: 1;
}
/* JS active state: only the rotating .show image is visible */
.box-img-rotate.js-init img.show {
    opacity: 1;
    z-index: 2;
    transform: scale(1.12) rotate(.6deg);
}
.box-img-rotate .card-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,.85);
    background: linear-gradient(135deg, rgba(255,107,107,.75), rgba(56,189,248,.75), rgba(167,139,250,.75));
    background-size: 300% 300%;
    animation: boxColorFlow 6s ease infinite;
    z-index: 3;
}

.img-rotate-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    animation: spin 3.2s linear infinite;
}

/* ============================================
   SOLUTIONS / ALL TYPE SOURCE CODE SECTION
   ============================================ */
.solutions-section {
    background: linear-gradient(135deg, rgba(255,107,107,.06), rgba(56,189,248,.09), rgba(167,139,250,.07), rgba(52,211,153,.06));
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.cat-glow-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f3f6ff, #fff3f6, #f0fdf4, #fffbeb, #ffffff);
    background-size: 400% 400%;
    animation: boxColorFlow 11s ease infinite;
    animation-delay: var(--card-delay, 0s);
    border: 1px solid rgba(56,189,248,.32);
    box-shadow: 0 6px 20px rgba(37,99,235,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.cat-glow-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 45px var(--glow, rgba(56,189,248,.4));
}
.cat-glow-card .sol-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--glow, #3b82f6), rgba(0,0,0,.18));
    box-shadow: 0 8px 22px var(--glow, rgba(56,189,248,.45));
}
.cat-glow-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cat-glow-card p  { font-size: .8rem; color: var(--text-secondary); line-height: 1.45; }

@media (max-width: 480px) {
    .solutions-grid { grid-template-columns: 1fr; }
}



/* ============================================
   IMAGE AUTO-ROTATION (inside product box)
   ============================================ */
.box-img-3d-rotate,
.box-img-rotate {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.box-img-3d-rotate img,
.box-img-rotate img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform-origin: center;
    pointer-events: none;
}
/* before JS runs fallback: first image visible */
.box-img-3d-rotate img:first-child,
.box-img-rotate img:first-child {
    opacity: 1;
    z-index: 1;
}
.box-img-3d-rotate.js-init img:first-child,
.box-img-rotate.js-init img:first-child {
    opacity: 0;
    z-index: auto;
}
.box-img-3d-rotate.js-init img.show,
.box-img-rotate.js-init img.show {
    opacity: 1;
    z-index: 2;
}
.box-img-rotate img,
#productBoxImages img,
.img-rotate-gallery img {
    animation: kenBurns 8300ms ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1.02) translate(0,0); }
    100% { transform: scale(1.15) translate(-8px,-5px); }
}

/* 3D style rotation using rotateY for multi-image boxes */
.rot3d img {
    animation: rot3dSpin 9200ms ease-in-out infinite alternate;
}
@keyframes rot3dSpin {
    0%   { transform: perspective(900px) rotateY(-9deg) scale(1.02); }
    100% { transform: perspective(900px) rotateY(9deg) scale(1.14); }
}

/* rotating badge indicator */
.img-rotate-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #F7B733, #38BDF8, #8B5CF6);
    background-size: 300% 300%;
    animation: badgeHue 5s ease infinite, spin 2.4s linear infinite;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(139,92,246,.5);
}
@keyframes badgeHue {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* gallery on the page top of products */
.img-rotate-gallery {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 25px 60px rgba(56,189,248,.35);
}
.img-rotate-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}
.img-rotate-gallery img.active {
    opacity: 1;
}
.img-rotate-gallery .rot-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.img-rotate-gallery .rot-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: .3s;
}
.img-rotate-gallery .rot-dots span.active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================
   MARKETPLACE / SOLUTIONS COLORFUL CARDS
   ============================================ */
.marketplace-section {
    background: linear-gradient(135deg, rgba(255,107,107,.08), rgba(247,183,51,.08), rgba(56,189,248,.1), rgba(139,92,246,.08), rgba(52,211,153,.08)) !important;
}
.order-list ol { list-style: none; padding: 0; counter-reset: steps; }
.order-list ol li {
    counter-increment: steps;
    position: relative;
    padding-left: 44px;
    margin-bottom: 14px;
    font-size: .92rem;
}
.order-list ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #F7B733, #38BDF8);
    background-size: 300% 300%;
    animation: badgeHue 5s ease infinite;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}
.btn-market {
    background: linear-gradient(135deg, #FF9A56, #F7B733, #38BDF8, #8B5CF6, #FF6B6B, #52D57F);
    background-size: 600% 600%;
    animation: btnRainbowFlow 6s ease infinite;
    border: none;
    color: #fff;
    font-weight: 700;
}
@keyframes btnRainbowFlow {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}
.btn-market:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 34px rgba(56,189,248,.55);
}

/* glow cards */
.bx-glow-card {
    background: linear-gradient(135deg, #fff, #ffe8f0, #e6f0ff, #e8fff4, #fff7e6, #fff);
    background-size: 400% 400%;
    animation: boxColorChanger 9s ease infinite;
    animation-delay: var(--card-delay, 0s);
    border-radius: 18px;
    padding: 26px;
    border: 1px solid rgba(56,189,248,.35);
    box-shadow: 0 8px 28px rgba(56,189,248,.18);
    transition: .35s;
}
.bx-glow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(139,92,246,.4);
}
@keyframes boxColorChanger {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}
.sol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.bx-glow-card .sol-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF6B6B, #F7B733, #38BDF8, #8B5CF6, #52D57F);
    background-size: 300% 300%;
    animation: badgeHue 5s ease infinite;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(139,92,246,.45);
}
.bx-glow-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.bx-glow-card p {
    font-size: .86rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* color cycle on testimonials / feature cards too */
.testimonial-card,
.feature-card,
.categories-section .category-card,
.section-dark .feature-card {
    background: linear-gradient(135deg, #fff, #ffe8f0, #e6f0ff, #fff0e6, #e8fff4, #fff) !important;
    background-size: 400% 400%;
    animation: boxColorChanger 10s ease infinite;
    animation-delay: var(--card-delay, 0s);
}

/* ============================================
   MAGIC COLORFUL ANIMATED CURSOR
   ============================================ */
.magic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 2147483000;
}
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: background .4s, width .3s, height .3s;
    z-index: 2147483001;
    mix-blend-mode: screen;
}
.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 3px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .25s, height .25s, background .3s, opacity .3s;
    z-index: 2147483000;
    animation: cursorRingSpin 5s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cursor-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    animation: cursorRingSpin 8s linear infinite reverse;
    opacity: .5;
}
.cursor-ring.hovering {
    width: 70px;
    height: 70px;
    background: currentColor;
    mix-blend-mode: screen;
    opacity: .9;
}
.cursor-ring.hovering::before {
    opacity: 0;
}
.cursor-dot.hovering {
    width: 14px;
    height: 14px;
    background: #fff;
}
.cursor-spark {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    pointer-events: none;
    z-index: 2147483002;
    transform: translate(-50%, -50%);
    animation: cursorSparkLife 1.1s ease-out forwards;
}
@keyframes cursorRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes cursorSparkLife {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0) translateY(-26px); }
}
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring, .cursor-spark { display: none; }
}
