/* PreventionPlus Custom Styles */

/* ========================================
   Hero Gradient Background
   ======================================== */
.hero-gradient {
    background: linear-gradient(135deg, #FE2121 0%, #D91B1B 50%, #B01515 100%);
}

/* ========================================
   Phone Mockup Styles
   ======================================== */
.phone-mockup {
    background: linear-gradient(180deg, #E5E7EB 0%, #D1D5DB 100%);
    border: 8px solid #374151;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #374151;
    border-radius: 12px;
}

/* ========================================
   Phone Overlap Layout (Why PreventionPlus Section)
   ======================================== */
.phone-overlap-container {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.phone-left {
    position: relative;
    z-index: 10;
    transform: translateX(40px) rotate(-5deg);
}

.phone-center {
    position: relative;
    z-index: 20;
}

.phone-right {
    position: relative;
    z-index: 10;
    transform: translateX(-40px) rotate(5deg);
}

/* ========================================
   Mobile Carousel (Horizontal Scroll)
   ======================================== */
.phone-carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phone-carousel::-webkit-scrollbar {
    display: none;
}

.phone-carousel > div > img {
    scroll-snap-align: center;
}

/* ========================================
   Header Shadow on Scroll
   ======================================== */
.header-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Button Hover Effects
   ======================================== */
.coming-soon-btn {
    transition: all 0.3s ease;
}

.coming-soon-btn:active {
    transform: scale(0.98);
}

/* ========================================
   Form Input Focus States
   ======================================== */
#email-input:focus {
    box-shadow: 0 0 0 3px rgba(254, 33, 33, 0.2);
}

/* ========================================
   Smooth Scroll Behavior
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Mobile Menu Animation
   ======================================== */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* ========================================
   Feature Card Hover Effects
   ======================================== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .phone-overlap-container {
        height: auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .phone-overlap-container {
        height: 450px;
    }

    .phone-left,
    .phone-right {
        transform: translateX(30px) rotate(-3deg);
    }

    .phone-right {
        transform: translateX(-30px) rotate(3deg);
    }
}

/* ========================================
   Accessibility - Focus States
   ======================================== */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #FE2121;
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #FE2121;
    outline-offset: 2px;
}

/* ========================================
   Loading Animation (Optional)
   ======================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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