/* PMF LA Visual Enhancements */

/* 1. ANIMATED GRADIENT BACKGROUND */
.hero-gradient {
    background: linear-gradient(135deg, 
        #2B3A42 0%, 
        #1e3a5f 25%,
        #2B3A42 50%,
        #2d4a3e 75%,
        #2B3A42 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. SCROLL FADE-IN ANIMATIONS */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. PREMIUM HOVER EFFECTS */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 4. FLOATING CTA BUTTON */
#floatingCTA {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #D4E233, #B8C11F);
    color: #2B3A42;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(241, 196, 15, 0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    white-space: nowrap;
}

#floatingCTA.visible {
    opacity: 1;
    transform: translateY(0);
}

#floatingCTA:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(241, 196, 15, 0.5);
}

/* 5. BUTTON RIPPLE EFFECT */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 6. STAT COUNTER STYLING */




/* 7. ICON ANIMATIONS */
.animated-icon {
    transition: transform 0.3s ease;
}

.animated-icon:hover {
    transform: scale(1.15) rotate(5deg);
}

/* 8. CARD SHINE EFFECT */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
}

.card-shine:hover::before {
    left: 100%;
}

/* 9. SMOOTH TRANSITIONS FOR ALL LINKS */
a {
    transition: all 0.3s ease;
}

/* 10. PARALLAX CONTAINER */
.parallax {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #floatingCTA {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        gap: 20px;
        padding: 40px 20px;
    }
}
/* PMF Lion Watermark */
body::before {
    content: '';
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background-image: url('pmf_lion.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    body::before {
        width: 80px;
        height: 80px;
        bottom: 15px;
        right: 15px;
    }
}

/* Hero gradient - work with LA skyline background */
.hero.hero-gradient {
    background: linear-gradient(rgba(43,58,66,0.85), rgba(43,58,66,0.75)), url('la_skyline.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(44,200,224,0.1) 0%, 
        transparent 50%,
        rgba(212,226,51,0.1) 100%);
    pointer-events: none;
}

/* Fix dropdown - only show on click, not hover */
.nav-dropdown .dropdown-menu {
    display: none !important;
}

.nav-dropdown.active .dropdown-menu {
    display: block !important;
}

/* Remove hover behavior */
.nav-dropdown:hover .dropdown-menu {
    display: none !important;
}

.nav-dropdown.active:hover .dropdown-menu {
    display: block !important;
}

/* Parallax layers */

.hero-content {
    position: relative;
    z-index: 2;
}

/* ANIMATED BLOB SHAPES */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    filter: blur(60px);
    animation: morph 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #2CC8E0, #D4E233);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #D4E233, #2CC8E0);
    bottom: -15%;
    right: -15%;
    animation-delay: 7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(44,200,224,0.8), rgba(212,226,51,0.8));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
        transform: translate(30px, -50px) rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 60% 30% 60% / 50% 50% 70% 30%;
        transform: translate(-40px, 20px) rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 30% 60% 70% 40% / 50% 40% 60% 50%;
        transform: translate(20px, 40px) rotate(270deg) scale(1.05);
    }
}

/* Blob shapes for other sections */
.section-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.section-blobs .blob {
    opacity: 0.08;
    filter: blur(80px);
}

/* Products section blob */
.products {
    position: relative;
    overflow: hidden;
}

/* Stats section background blobs */

/* Mobile optimization */
@media (max-width: 768px) {
    .blob {
        filter: blur(40px);
    }
    
    .blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .blob-2 {
        width: 250px;
        height: 250px;
    }
    
    .blob-3 {
        width: 200px;
        height: 200px;
    }
    
    .hero {
        background-attachment: scroll; /* Fixed backgrounds don't work well on mobile */
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }
    
    .parallax-bg {
        transform: none !important;
    }
}


.stat-card:last-child {
    border-right: none;
}



/* Mobile: Stack vertically, reduce size */
@media (max-width: 768px) {
    .stats-grid {
        gap: 20px;
        padding: 30px 20px;
        flex-direction: column;
    }
    
    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(212, 226, 51, 0.3);
        padding: 15px 10px;
        min-width: auto;
        width: 100%;
    }
    
    .stat-card:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        gap: 30px;
    }
    
    .stat-card {
        min-width: 160px;
    }
    
    .stat-card:nth-child(2) {
        border-right: none;
    }
}


.stat-card:last-child {
    border-right: none;
}



/* Mobile ONLY: Stack vertically */
@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column !important;
        gap: 20px;
        padding: 30px 20px;
        flex-wrap: nowrap;
    }
    
    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(212, 226, 51, 0.3);
        padding: 15px 10px;
        min-width: auto;
        width: 100%;
    }
    
    .stat-card:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}


/* Clean gradient hero (no grainy image) */
.hero {
    background: linear-gradient(135deg, 
        rgba(43,58,66,1) 0%,
        rgba(30,58,95,1) 50%,
        rgba(43,58,66,1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optional: Keep LA image but make it subtle background pattern */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('la_skyline.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(3px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}
/* MOBILE NAVIGATION FIX */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links.active {
        max-height: 500px;
    }
    
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-dropdown > a::after {
        content: '▼';
        font-size: 0.8rem;
        transition: transform 0.3s;
    }
    
    .nav-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        background: #f8f9fa;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu a {
        padding: 10px 15px !important;
        border-bottom: none !important;
    }
}
/* COMPACT VERTICAL STATS - NO LAYOUT SHIFT */
.stats-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 5%;
    background: transparent;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 3px solid var(--yellow);
    transition: all 0.3s;
    min-width: 280px;
}

.stat-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D4E233, #2CC8E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    min-width: 80px;
    text-align: right;
    /* PREVENT LAYOUT SHIFT */
    display: inline-block;
}

.stat-number span {
    display: inline-block;
    min-width: 1ch;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

/* Mobile: Keep vertical, just smaller */
@media (max-width: 768px) {
    .stats-grid {
        padding: 20px 5%;
        gap: 12px;
    }
    
    .stat-card {
        min-width: auto;
        width: 90%;
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 1.4rem;
        min-width: 70px;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* FOOTER CTA BUTTON */
footer {
    position: relative;
}

.footer-cta-btn {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, #D4E233, #B8C11F);
    color: #2B3A42;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(212, 226, 51, 0.3);
}

.footer-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 226, 51, 0.4);
    background: linear-gradient(135deg, #B8C11F, #D4E233);
}

.footer-cta-btn:active {
    transform: translateY(-2px);
}

/* MOBILE DROPDOWN FIX - OVERRIDE */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
        display: block;
    }
    
    .nav-dropdown > a {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }
    
    .nav-dropdown > a::after {
        content: '▼';
        font-size: 0.8rem;
        transition: transform 0.3s;
        display: inline-block;
    }
    
    .nav-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .nav-dropdown .dropdown-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        padding: 10px 0 10px 20px !important;
        background: #f8f9fa !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
        width: 100% !important;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu a {
        padding: 10px 15px !important;
        display: block !important;
        width: 100% !important;
    }
}

/* APPLICATION MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex !important;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

#applyFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .modal-overlay .modal {
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
    
    #applyFrame {
        border-radius: 0;
    }
}

/* FIX MOBILE STATS CUTOFF */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.6rem !important;
        min-width: auto !important;
        white-space: nowrap;
        overflow: visible;
    }
    
    .stat-number span {
        min-width: auto !important;
        display: inline !important;
    }
    
    .stat-card {
        min-width: auto !important;
        width: 100% !important;
        padding: 12px 15px !important;
    }
    
    .stats-grid {
        padding: 25px 15px !important;
    }
}

/* FIX MOBILE DROPDOWN SCROLLING */
@media (max-width: 768px) {
    .nav-links {
        max-height: 80vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-dropdown .dropdown-menu {
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Smooth scrolling */
    .nav-links::-webkit-scrollbar {
        width: 5px;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .nav-links::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}
/* PERFORMANCE OPTIMIZATIONS */

/* Remove expensive animations */
.blob {
    animation: none !important;
}

/* Simplify parallax */
.parallax {
    will-change: auto;
    transition: none;
}

/* Disable background attachment for mobile performance */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
    }
}

/* Reduce motion for better performance */
* {
    animation-duration: 0.3s !important;
}

/* Optimize transforms */
.hover-lift {
    will-change: transform;
}
/* DISABLE ALL BACKGROUND ANIMATIONS */

/* Stop gradient animation */
.hero {
    background: linear-gradient(135deg, 
        rgba(43,58,66,1) 0%,
        rgba(30,58,95,1) 50%,
        rgba(43,58,66,1) 100%) !important;
    background-size: 100% 100% !important;
    animation: none !important;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
}

/* Remove all blob animations */
.blob-1, .blob-2, .blob-3, .blob {
    display: none !important;
}

/* Disable parallax */
.parallax-bg {
    transform: none !important;
}

/* Static hero background */
.hero::after {
    animation: none !important;
}
