/* Variables - Optimized for Premium Aesthetic */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #C7D2FE;
    --secondary: #EC4899;
    --accent: #F59E0B;
    --success: #10B981;
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-light: #F8FAFC;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;

    --border-color: #E2E8F0;
    --border-light: rgba(255, 255, 255, 0.2);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);

    --radius-sm: 0.5rem;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 80px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    --white: #ffffff;
    --bg-dark: #0f172a;
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --white: #1e293b;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--theme-transition);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.btn:hover::after {
    opacity: 0.1;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -4px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4), 0 8px 10px -6px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.logo strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: auto;
    min-width: 250px;
    max-width: 90%;
    height: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-right: none;
    border-bottom-left-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    width: 100%;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-nav a:hover {
    color: var(--primary);
}

.mobile-menu-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-actions .btn {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 60px) 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent);
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.bg-element-1 {
    width: 800px;
    height: 800px;
    background: var(--primary);
    top: -300px;
    right: -200px;
    animation: drift 20s linear infinite;
}

.bg-element-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    bottom: -200px;
    left: -100px;
    animation: drift 25s linear infinite reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 100px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero-title .highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2));
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
    position: relative;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

.service-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    min-width: 0;
    word-wrap: break-word;
}



.product-image-small {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--primary);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}


.service-icon {
    width: 32px;
    height: 32px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
    transition: all var(--transition-normal);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}


.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.service-features li {
    color: #4b5563;
    font-size: 0.85rem;
    padding-left: 24px;
    position: relative;
    font-weight: 500;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-features li::before {
    transform: scale(1.15);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.portfolio-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.portfolio-tag,
.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
}

.about-text {
    width: 100% !important;
    text-align: center !important;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1rem;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}



/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #000000;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 12px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-author p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    margin-bottom: 24px;
    color: white;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col a {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }



    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: calc(var(--header-height) + 60px) 0 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }


    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .nav-auth {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-cta {
    animation-delay: 0.3s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================================
   Product Card Styles (Global)
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Section */
.product-image-link {
    position: relative;
    display: block;
    height: 160px;
    overflow: hidden;
    background: #f9fafb;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-link img {
    transform: scale(1.05);
}

/* Card Body */
.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.product-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #6366f1;
}

/* Meta Row with Category and Price */
.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.product-category-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.product-price-tag {
    background: transparent;
    color: #000000;
    padding: 0;
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Footer Actions */
.product-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-footer {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-demo-footer {
    background: white;
    color: #6366f1;
    border: 1px solid #6366f1;
}

.btn-demo-footer:hover {
    background: #f8f9ff;
    border-color: #4f46e5;
    color: #4f46e5;
}

.btn-buy-footer {
    background: #6366f1;
    color: white;
    border: 1px solid #6366f1;
}

.btn-buy-footer:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

@media (max-width: 576px) {

    /* Smaller title on mobile */
    .product-title {
        font-size: 0.9rem;
    }

    /* Category and Price on same row */
    .product-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Simple text price on mobile */
    .product-price-tag {
        background: transparent;
        color: #000000;
        padding: 0;
        font-size: 1rem;
        text-align: right;
        width: auto;
    }

    /* Demo and Buy buttons side by side */
    .product-footer-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }

    .btn-footer {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }
}

/* =========================================
   Pagination Styles (Global)
   ========================================= */
.pagination-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
}

.page-link:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f8f9ff;
}

.page-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
}

.page-prev,
.page-next {
    gap: 6px;
    padding: 0 16px;
}

.page-dots {
    color: #9ca3af;
    padding: 0 8px;
    font-weight: 600;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 576px) {
    .pagination {
        gap: 6px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .page-prev span,
    .page-next span {
        display: none;
    }
}

/* =========================================
   Off-Canvas Mobile Menu (Left Slide)
   ========================================= */
@media (max-width: 968px) {
    .mobile-menu {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        padding: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .mobile-menu.active {
        transform: translateX(0);
        box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
        background: #fff;
    }

    .mobile-menu-close {
        background: #f0f4ff;
        border: 1px solid rgba(99, 102, 241, 0.2);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        cursor: pointer;
        transition: all 0.2s;
        padding: 0;
    }

    .mobile-menu-close svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-close:hover {
        color: #6366f1;
    }

    .mobile-nav {
        width: 100%;
    }

    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav li {
        width: 100%;
    }

    .mobile-nav a {
        display: block;
        padding: 10px 24px;
        font-size: 1rem;
        font-weight: 600;
        color: #1f2937;
        text-decoration: none;
        transition: all 0.2s;
        border-bottom: 1px solid #f8fafc;
        text-align: center;
    }

    .mobile-nav a:hover {
        color: var(--primary);
        background: #f8faff;
    }

    .mobile-menu-actions {
        padding: 16px 24px 24px;
        display: flex;
        justify-content: center;
    }

    .mobile-menu-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 969px) {
    .mobile-menu {
        display: none !important;
    }
}