/* Landing Page Specific Styles */

/* Import Google Fonts for Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Premium Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance optimizations */
* {
    will-change: auto;
}

.feature-card,
.pricing-card,
.testimonial-card,
.cta-button,
.secondary-button {
    will-change: transform, box-shadow;
}

.hero-section::before,
.cta-section::before {
    will-change: opacity;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-on-scroll.animate-fade-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-on-scroll.animate-fade-right {
    animation: fadeInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-on-scroll.animate-scale {
    animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
        var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

section {
    padding: 120px 20px;
}

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

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.005em;
}

/* Header Styles */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(20px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.logo-container {
    cursor: pointer; /* Show pointer cursor to indicate clickable */
}

.logo-container img {
    height: 65px; /* Keep the increased height */
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05); /* Keep scale effect on hover */
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-button {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-button:hover {
    background-color: var(--secondary-color);
}

.signup-button {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.signup-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--card-background);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 40px 120px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(236, 72, 153, 0.03) 50%, transparent 70%);
    pointer-events: none;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 32px;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.025em;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    margin-bottom: 60px;
}

/* CTA buttons in hero and footer */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(59, 130, 246, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    letter-spacing: -0.01em;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero video styling */
.hero-video-container {
    width: 100%;
    max-width: 350px; /* Narrower container for portrait video */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: transparent; /* Changed to transparent */
    position: relative;
}

.hero-video {
    width: 100%;
    display: block;
    border-radius: 20px; /* Full rounded corners on all sides */
    object-fit: contain; /* Preserve aspect ratio */
    height: 600px; /* Taller height for portrait orientation */
    background-color: transparent; /* Ensure video background is transparent */
}

/* Play button overlay */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(59, 130, 246, 0.8); /* Primary color with transparency */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0; /* Hidden by default, will be shown via JavaScript */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-play-button i {
    color: white;
    font-size: 30px;
    margin-left: 5px; /* Slight offset for play icon */
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-color);
}

.video-caption {
    padding: 15px;
    text-align: center;
    background-color: var(--card-background);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.video-caption h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

/* One-time offer / promo styling */
.promo-inactive {
    display: none; /* Hidden by default, will be shown via JavaScript when promo is inactive */
    text-align: center;
}

.promo-inactive p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
}

/* Template Showcase Styles */
.template-showcase {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: var(--card-background);
    padding: 20px;
    position: relative;
}

.template-visible-container {
    width: 100%;
    overflow: hidden;
}

/* Add a subtle indicator to show there's more to scroll */
.template-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--card-background));
    pointer-events: none;
    z-index: 1;
}

.template-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-background);
}

.template-scroll::-webkit-scrollbar {
    height: 8px;
}

.template-scroll::-webkit-scrollbar-track {
    background: var(--card-background);
    border-radius: 10px;
}

.template-scroll::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.template-item {
    flex: 0 0 auto;
    width: calc(50% - 10px); /* Show 2 items with gap consideration */
    min-width: 240px;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
    background-color: var(--background-color);
    margin-right: 10px;
}

/* Hide templates beyond the first two initially */
.template-item:nth-child(n+3) {
    opacity: 0.6;
}

.template-item:hover {
    transform: translateY(-5px);
}

.template-preview {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
    background-color: var(--background-color);
}

.template-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.template-label.free {
    background-color: #10B981;
}

.template-label.premium {
    background-color: #8B5CF6;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    animation: pulse 2s infinite;
}

.scroll-indicator i {
    font-size: 0.7rem;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Features Section */
.features-section {
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
        var(--background-color);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

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

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 8px 32px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(236, 72, 153, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    transition: all 0.4s ease;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(236, 72, 153, 0.25));
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    letter-spacing: -0.005em;
    font-weight: 400;
}

/* Showcase Section */
.showcase-section {
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        var(--secondary-color);
    padding: 140px 40px;
    position: relative;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

/* Add styles for demo images */
.showcase-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.showcase-image img:hover {
    transform: scale(1.02);
}

.showcase-content {
    flex: 1;
    max-width: 580px;
    z-index: 2;
    position: relative;
}

.showcase-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.showcase-content p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.65;
    letter-spacing: -0.005em;
    font-weight: 400;
}

.showcase-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.showcase-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.showcase-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.showcase-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Pricing Section */
.pricing-section {
    background:
        radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        var(--background-color);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 8px 32px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.08);
    z-index: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(236, 72, 153, 0.08));
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-12px);
    box-shadow:
        0 24px 72px rgba(0, 0, 0, 0.3),
        0 12px 36px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom-left-radius: 10px;
}

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

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

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.pricing-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 5px;
}

.pricing-features {
    padding: 25px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 1rem;
}

.pricing-features li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.pricing-features li .fa-check {
    color: #10B981; /* Green */
}

.pricing-features li .fa-times {
    color: #EF4444; /* Red */
}

.pricing-features li .fa-info-circle,
.pricing-features li .fa-users {
    color: var(--primary-color);
}

.pricing-footer {
    padding: 25px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.pricing-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border: 1px solid #6b7280;
}

.pricing-button:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-button.premium-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.pricing-button.premium-button:hover {
    background: linear-gradient(135deg, var(--primary-hover-color), var(--accent-color));
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Testimonials Section */
.testimonials-section {
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.02) 50%, transparent 70%);
    pointer-events: none;
}

.testimonials-slider {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 320px;
    max-width: 420px;
    flex: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

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

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    /* Improve image quality */
    image-rendering: -webkit-optimize-contrast; /* For Chrome */
    image-rendering: crisp-edges; /* For Firefox */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow for better definition */
    border: 2px solid var(--primary-color); /* Add border to make images stand out */
}

.author-info h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    background:
        radial-gradient(circle at 60% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
        var(--background-color);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.faq-question {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Demo Showcase Section */
.demo-showcase-section {
    background-color: var(--background-color);
    padding: 80px 20px;
}

.demo-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.demo-item {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.demo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.demo-image {
    width: 100%;
    height: auto;
    display: block;
    /* Improve image quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    object-fit: cover;
}

.demo-caption {
    padding: 20px;
    text-align: center;
}

.demo-caption h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.demo-caption p {
    margin: 0;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background:
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    text-align: center;
    padding: 140px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: shimmer 10s ease-in-out infinite;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
    letter-spacing: -0.005em;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Footer */
.landing-footer {
    background:
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        var(--card-background);
    padding: 80px 40px 30px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.landing-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    cursor: pointer; /* Show pointer cursor to indicate clickable */
}

.footer-logo img {
    height: 55px; /* Keep the increased height */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05); /* Keep scale effect on hover */
}

.footer-logo p {
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* New Hero Section Styles */
.hero-features-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 48px 0;
    justify-content: flex-start;
}

.feature-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-preview:hover::before {
    opacity: 1;
}

.feature-preview:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.feature-preview i {
    color: var(--primary-color);
    font-size: 1.1rem;
    z-index: 1;
    position: relative;
}

.feature-preview span {
    z-index: 1;
    position: relative;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.stat {
    text-align: left;
    position: relative;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: -0.005em;
}

/* Enhanced Feature Cards */
.feature-card.featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.feature-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Showcase Section Enhancements */
.showcase-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.category h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.template-highlights {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.template-highlights h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.template-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.template-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.template-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.template-name {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.template-type {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.template-type.free {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.template-type.premium {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

/* Text muted utility */
.text-muted {
    color: var(--text-muted) !important;
}

/* Template Preview System */
.template-preview-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 600px;
}

.phone-frames-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.phone-frame {
    width: 240px;
    height: 520px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 25px;
    padding: 8px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    border: 2px solid #4a5568;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a5568;
    border-radius: 2px;
}

.phone-frame-single {
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.template-iframe {
    width: 480px;
    height: 1200px;
    border: none;
    transform-origin: top left;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.template-iframe::-webkit-scrollbar {
    display: none;
}

#template-frame-single {
    top: 0;
    left: 0;
    transform: scale(0.45);
    overflow-y: auto;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
}

#template-frame-single::-webkit-scrollbar {
    width: 6px;
}

#template-frame-single::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#template-frame-single::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

#template-frame-single::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.template-info-display {
    position: absolute;
    right: -170px;
    bottom: 100px;
    width: 160px;
    max-width: 160px;
    text-align: left;
    z-index: 10;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    border: none;
    margin: 0;
}

.template-info-display h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-align: left;
}

.template-info-display p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.template-navigation {
    display: none; /* Hide navigation buttons - templates will change when user clicks on them */
}

/* Enhanced CTA Section */
.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-feature i {
    color: var(--primary-color);
    font-size: 1rem;
}

.cta-note {
    margin-top: 20px;
    text-align: center;
}

.cta-note p {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-note i {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .showcase-section {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .showcase-content {
        max-width: 100%;
    }

    .showcase-features li {
        justify-content: center;
    }

    .demo-container {
        flex-direction: column;
        align-items: center;
    }

    .demo-item {
        max-width: 90%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .landing-header {
        padding: 0 20px;
        height: 70px;
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(20px);
    }

    .logo-container img {
        height: 55px;
    }

    .main-nav, .auth-buttons {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu.active {
        display: block;
        margin-top: 70px;
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(20px);
    }

    .section-header h2 {
        font-size: 2.4rem;
        font-weight: 800;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        font-weight: 900;
        text-align: left;
        line-height: 1.1;
        margin-bottom: 24px;
    }

    .hero-content p {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 36px;
    }

    /* Enhanced mobile buttons */
    .cta-button {
        font-size: 1rem;
        padding: 16px 32px;
        border-radius: 12px;
    }

    .secondary-button {
        font-size: 1rem;
        padding: 16px 32px;
        border-radius: 12px;
    }

    /* Make hero section stack on mobile */
    .hero-section {
        flex-direction: column;
        padding: 120px 20px 60px;
        text-align: left;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 60px;
        max-width: 100%;
    }

    .hero-content p {
        text-align: left;
        max-width: 100%;
    }

    /* Enhanced mobile sections */
    section {
        padding: 80px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

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

    .feature-card p {
        font-size: 1rem;
    }

    /* Mobile-specific hero features */
    .hero-features-preview {
        justify-content: flex-start;
        gap: 10px;
    }

    .feature-preview {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Mobile showcase categories */
    .showcase-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .template-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .template-mini {
        padding: 12px;
    }

    /* Mobile CTA features */
    .cta-features {
        gap: 15px;
        justify-content: flex-start;
    }

    .cta-feature {
        font-size: 0.85rem;
    }

    .cta-note p {
        flex-direction: column;
        gap: 5px;
        font-size: 0.85rem;
    }

    /* Mobile Template Preview */
    .template-preview-container {
        height: 580px;
        max-width: 100%;
    }

    .phone-frames-wrapper {
        flex-direction: row;
        gap: 0;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0 15px;
        position: relative;
    }

    .phone-frame {
        width: 280px;
        height: 560px;
        flex-shrink: 0;
        position: relative;
        margin-left: 0;
    }

    .phone-frame-single {
        margin: 0;
    }

    .template-info-display {
        position: absolute;
        right: -160px;
        bottom: 100px;
        width: 150px;
        max-width: 150px;
        padding: 0;
        margin: 0;
        text-align: left;
        z-index: 10;
        background: none;
        backdrop-filter: none;
        border: none;
    }

    .template-info-display h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
        text-align: left;
        font-weight: 700;
        color: var(--text-color);
    }

    .template-info-display p {
        font-size: 0.8rem;
        margin-bottom: 0;
        text-align: left;
        line-height: 1.3;
        color: var(--text-muted);
    }

    .template-navigation {
        display: none; /* Hide navigation buttons on mobile */
    }

    .template-iframe {
        width: 560px;
        height: 1120px;
    }

    #template-frame-single {
        top: 0;
        left: 0;
        transform: scale(0.45);
        overflow-y: auto;
        scrollbar-width: thin;
        -ms-overflow-style: auto;
    }

    #template-frame-single::-webkit-scrollbar {
        width: 4px;
    }

    #template-frame-single::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    #template-frame-single::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 2px;
    }

    /* Hero buttons and CTA buttons */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* Adjust video height for mobile */
    .hero-video {
        height: 450px; /* Still tall enough for portrait on mobile */
    }

    .hero-video-container {
        max-width: 280px; /* Slightly narrower on mobile */
    }

    /* Adjust template items for mobile */
    .template-item {
        width: calc(50% - 10px);
        min-width: 160px;
        max-width: 220px;
    }

    .template-preview {
        height: 400px;
    }

    /* Add a scroll indicator for mobile */
    .template-showcase::after {
        width: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .template-preview-container {
        height: 600px;
    }

    .phone-frames-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 15px;
        position: static;
    }

    .phone-frame {
        width: 220px;
        height: 430px;
        order: 1;
    }

    .template-info-display {
        position: static;
        transform: none;
        text-align: center;
        max-width: 220px;
        width: 100%;
        padding: 15px 0;
        order: 2;
        background: none;
        backdrop-filter: none;
        border: none;
    }

    .template-info-display h3 {
        text-align: center;
        font-size: 1.1rem;
        color: var(--text-color);
    }

    .template-info-display p {
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .template-navigation {
        display: none; /* Hide navigation on extra small screens too */
    }

    .template-iframe {
        width: 440px;
        height: 960px;
    }
}
