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

.image-showcase {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    height: 600px;
    perspective: 1000px;
}

.showcase-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    max-height: 600px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-img.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    z-index: 10;
}

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

.showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-dot.active {
    width: 30px;
    border-radius: 5px;
    background-color: var(--primary);
}:root {
    --primary: #3B60E4;
    --secondary: #8A4FFF;
    --accent: #5E4FD6;
    --devotional: #FF9E5C;
    --prayer: #5CD9FF;
    --study: #A3F858;
    --reflection: #FF5C98;
    --light: #F5F7FF;
    --dark: #212C4F;
    --font-main: 'Montserrat', sans-serif;
    --font-accent: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: var(--font-accent);
    position: relative;
    z-index: 10;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 96, 228, 0.4);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 5% 80px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7ff 0%, #e1e5ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill-opacity="0.03" fill="%233B60E4" width="50" height="50" x="0" y="0"></rect><rect fill-opacity="0.03" fill="%233B60E4" width="50" height="50" x="50" y="50"></rect></svg>');
    opacity: 0.5;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-family: var(--font-accent);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-accent);
    text-align: center;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #555;
}

.app-preview {
    position: relative;
    margin-top: 40px;
    max-width: 375px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
}

.phone-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.phone-wrapper img {
    pointer-events: auto;
}

.phone-mockup {
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 96, 228, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Features Section */
.features {
    padding: 100px 5%;
    background-color: white;
}

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

.feature-card {
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.feature-card.devotional::before {
    background: var(--devotional);
}

.feature-card.prayer::before {
    background: var(--prayer);
}

.feature-card.study::before {
    background: var(--study);
}

.feature-card.reflection::before {
    background: var(--reflection);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-accent);
}

/* Tracking Section */
.tracking {
    display: flex;
    align-items: center;
    padding: 100px 5%;
    background-color: var(--light);
    flex-wrap: wrap;
}

.tracking-content {
    flex: 1;
    padding-right: 30px;
    min-width: 300px;
}

.tracking-content h2 {
    text-align: left;
}

.tracking-features {
    list-style: none;
    margin: 30px 0;
}

.tracking-features li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.tracking-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.tracking-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.floating-wrapper {
    position: relative;
    animation: floatSmooth 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-wrapper img {
    pointer-events: auto;
}

.tracking-image img {
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    max-height: 600px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.element-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20px;
    left: -30px;
    animation-delay: 1.5s;
}

.element-3 {
    top: 50%;
    right: -40px;
    animation-delay: 3s;
}

@keyframes floatSmooth {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

/* Testimonials Section */
.testimonials {
    padding: 100px 5%;
    background-color: white;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 300px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, white 0%, var(--light) 100%);
    transform: scale(0.95);
}

.testimonial.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.name {
    font-weight: 600;
    margin-bottom: 5px;
}

.stars {
    color: gold;
}

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

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

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

/* Download Section */
.download {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.download h2 {
    color: white;
}

.app-store-button {
    display: inline-block;
    margin-top: 30px;
    transition: transform 0.3s ease;
}

.app-store-button:hover {
    transform: scale(1.05);
}

.preview-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background-color: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-accent);
    border: 2px solid white;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-button:hover {
    background-color: #f8f9ff;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.preview-button span {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Video Preview Section */
.video-preview {
    padding: 100px 5%;
    background-color: white;
    text-align: center;
}

.video-preview-content {
    max-width: 800px;
    margin: 0 auto;
}

.video-preview h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.video-preview p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.video-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}


/* Footer Styles */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    overflow: hidden;
}

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

.social-links img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Enhance hover effects */
.phone-wrapper:hover .phone-mockup {
    transform: scale(1.02) rotateY(2deg);
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .phone-wrapper {
        animation: none;
    }
    
    .phone-glow {
        animation: none;
        opacity: 0.3;
    }
    
    .floating-wrapper {
        animation: none;
    }
    
    /* Optimize animations that remain */
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .tracking-image img:hover {
        transform: none;
    }
    
    .phone-wrapper:hover .phone-mockup {
        transform: none;
    }
}

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    
    .feature-card:hover::before {
        transform: scaleX(0);
    }
    
    .cta-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .phone-wrapper:hover .phone-mockup {
        transform: none;
    }
    
    .tracking-image img:hover {
        transform: none;
    }
    
    .app-store-button:hover {
        transform: none;
    }
    
    .preview-button:hover {
        background-color: white;
        color: var(--primary);
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .dot:hover {
        background-color: #bbb;
    }
    
    /* Add active states for touch feedback */
    .feature-card:active {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    
    .cta-button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .preview-button:active {
        transform: scale(0.98);
        background-color: #f0f0f0;
        color: var(--secondary);
    }
    
    .showcase-dot:active,
    .dot:active {
        transform: scale(1.1);
    }
}

/* Improve text readability on mobile */
@media (max-width: 480px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Ensure minimum font sizes */
    p, li {
        font-size: max(14px, 1rem);
    }
    
    /* Better contrast for mobile */
    .hero-subtitle {
        color: #444;
    }
    
    .feature-card p {
        color: #555;
    }
}

/* Mobile-First Responsive Styles */
@media (max-width: 768px) {
    /* Enhanced Typography */
    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Improved Spacing */
    .hero {
        padding: 100px 5% 60px;
        min-height: auto;
    }
    
    .features {
        padding: 80px 5%;
    }
    
    .tracking {
        flex-direction: column;
        padding: 80px 5%;
        gap: 40px;
    }
    
    .tracking-content {
        padding-right: 0;
        margin-bottom: 0;
        text-align: center;
    }
    
    .tracking-content h2 {
        text-align: center;
    }
    
    .testimonials {
        padding: 80px 5%;
    }
    
    .download {
        padding: 80px 5%;
    }
    
    .video-preview {
        padding: 80px 5%;
    }
    
    .video-preview p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .video-container {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .video-container video {
        border-radius: 15px;
    }
    
    
    /* Mobile Image Optimization */
    .image-showcase {
        height: 450px;
        max-width: 300px;
    }
    
    .showcase-img {
        max-height: 450px;
    }
    
    .floating-element {
        display: none;
    }
    
    /* Mobile App Preview */
    .app-preview {
        max-width: 280px;
        margin-top: 30px;
    }
    
    .phone-mockup {
        border-radius: 25px;
    }
    
    /* Feature Cards Mobile */
    .features-grid {
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 25px 20px;
        margin-bottom: 10px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Mobile Testimonials */
    .testimonial-slider {
        height: 280px;
        margin: 40px 0 20px;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Mobile Header Optimization */
    header {
        padding: 1rem 5%;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 28px;
    }
    
    /* Enhanced Touch Targets */
    .cta-button {
        padding: 12px 18px;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Mobile Typography */
    h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Spacing */
    .hero {
        padding: 90px 5% 50px;
        text-align: center;
    }
    
    .features {
        padding: 60px 5%;
    }
    
    .tracking {
        padding: 60px 5%;
    }
    
    .testimonials {
        padding: 60px 5%;
    }
    
    .download {
        padding: 60px 5%;
    }
    
    .video-preview {
        padding: 60px 5%;
    }
    
    .video-preview h2 {
        font-size: 1.4rem;
    }
    
    .video-preview p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .video-container {
        border-radius: 12px;
    }
    
    .video-container video {
        border-radius: 12px;
    }
    
    
    /* Single Column Layout */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    /* Mobile App Preview */
    .app-preview {
        max-width: 250px;
        margin-top: 25px;
    }
    
    /* Mobile Image Showcase */
    .image-showcase {
        height: 400px;
        max-width: 250px;
    }
    
    .showcase-img {
        max-height: 400px;
    }
    
    .showcase-dots {
        gap: 8px;
        margin-top: 15px;
    }
    
    .showcase-dot {
        width: 8px;
        height: 8px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .showcase-dot.active {
        width: 24px;
        height: 8px;
    }
    
    /* Mobile Testimonials */
    .testimonial-slider {
        height: 320px;
        margin: 30px 0 15px;
    }
    
    .testimonial {
        padding: 20px 15px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .slider-dots {
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Footer */
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links a {
        padding: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
    }
    
    /* App Store Button Mobile */
    .app-store-button {
        margin-top: 20px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }
    
    .app-store-button img {
        height: 40px;
        width: auto;
    }
    
    /* Preview Button Mobile */
    .preview-button {
        margin-top: 15px;
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .preview-button span {
        margin-right: 6px;
        font-size: 1rem;
    }
}