/* Custom Styles for Readii Website */

/* Phone Mockup Styles */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: translateY(-5px);
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Smaller Phone Mockup for Screenshots Grid */
.phone-mockup-small {
    position: relative;
    width: 100%;
    max-width: 280px;
    transition: transform 0.3s ease;
}

.phone-mockup-small:hover {
    transform: translateY(-10px);
}

.phone-mockup-small img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Large Phone Mockup for Feature Sections */
.phone-mockup-large {
    position: relative;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.phone-mockup-large:hover {
    transform: translateY(-5px);
}

.phone-mockup-large img {
    width: 100%;
    height: auto;
    border-radius: 35px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade in animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2 0%, #667eea 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-mockup {
        max-width: 280px;
    }

    .phone-mockup-small {
        max-width: 220px;
    }

    .phone-mockup-large {
        max-width: 300px;
    }
}

/* Hero section background animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

section.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Feature cards hover effect */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Button pulse effect */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.btn-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
