/* ========================================
   PROFESSIONAL ANIMATED WHY DROPHELLO USP SECTION - CONSISTENT BLUE
   ======================================== */

.usp-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===== ANIMATED BACKGROUND SHAPES ===== */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.05;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    bottom: 20%;
    right: -80px;
    animation-delay: 7s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    top: 60%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* ===== HEADER WITH GRADIENT TITLE ===== */
.usp-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out;
}

.usp-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: gradientShift 3s ease-in-out infinite alternate;
    text-align: center;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    margin: 0 auto;
    border-radius: 2px;
    animation: expandWidth 2s ease-out 0.5s both;
}

@keyframes gradientShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== USP GRID ===== */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ===== ANIMATED USP ITEMS - CONSISTENT BLUE TOP BORDER ===== */
.usp-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}

/* UPDATED: ALL CARDS HAVE SAME BLUE TOP BORDER */
.usp-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8); /* Always blue */
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

/* REMOVED: Different colors for nth-child selectors */
/* All cards now use the same blue gradient */

.usp-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(37, 99, 235, 0.1); /* Blue glow instead of green */
}

.usp-item:hover::before {
    transform: scaleX(1);
}

/* UPDATED: Blue glow effect for consistency */
.usp-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8); /* Blue glow */
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.usp-item:hover .usp-glow {
    opacity: 0.2;
}

/* ===== UPDATED ICON ANIMATION (CONSISTENT STYLING) ===== */
.usp-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.usp-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border: 2px solid rgba(37, 211, 102, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Ripple effect background */
.usp-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.checkmark {
    font-size: 24px;
    font-weight: bold;
    color: #25d366;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    animation: checkPulse 2s ease-in-out infinite;
}

/* Keep icon styling consistent - green icons work well with blue borders */
.usp-item:hover .usp-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-color: #25d366;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Ripple effect on hover */
.usp-item:hover .usp-icon::before {
    width: 80px;
    height: 80px;
    opacity: 0;
}

.usp-item:hover .checkmark {
    color: white;
    transform: scale(1.2);
    animation: checkBounce 0.6s ease-out;
}

/* Tick animations */
@keyframes checkBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1.2) rotate(0deg); }
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes checkGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(37, 211, 102, 0.5);
    }
    50% { 
        text-shadow: 0 0 15px rgba(37, 211, 102, 0.8);
    }
}

.usp-item:hover .checkmark {
    animation: checkGlow 1.5s ease-in-out infinite;
}

/* ===== CONTENT STYLING ===== */
.usp-content-wrapper {
    flex: 1;
    text-align: left;
}

.usp-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-align: left;
}

/* UPDATED: Blue title color on hover for consistency */
.usp-item:hover .usp-feature-title {
    color: #2563eb; /* Blue instead of green */
}

.usp-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* ===== CTA BUTTON (NO COLOR CHANGE ON HOVER) ===== */
.usp-cta {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

/* Scale and glow effect on hover - NO COLOR CHANGE */
.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 45px rgba(37, 211, 102, 0.4),
        0 0 20px rgba(37, 211, 102, 0.2);
    background: linear-gradient(135deg, #25d366, #128c7e);
}

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

/* Enhanced arrow animation */
.cta-arrow {
    font-size: 1.2rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.cta-button:hover .cta-arrow {
    transform: translateX(8px) scale(1.2);
    animation: arrowBounce 0.6s ease-out;
}

@keyframes arrowBounce {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(12px) scale(1.3); }
    100% { transform: translateX(8px) scale(1.2); }
}

/* Pulsing border effect on button hover */
.cta-button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    animation: none;
    transition: opacity 0.4s ease;
}

.cta-button:hover::after {
    opacity: 1;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .usp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
}

/* Large Desktop */
@media (max-width: 1200px) {
    .usp-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 35px;
    }
    
    .usp-title {
        font-size: 3rem;
    }
    
    .usp-item {
        padding: 35px;
    }
}

/* Medium Desktop */
@media (max-width: 1024px) {
    .usp-section {
        padding: 100px 0;
    }
    
    .usp-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .usp-title {
        font-size: 2.8rem;
    }
    
    .usp-header {
        margin-bottom: 70px;
    }
    
    .floating-shapes .shape {
        opacity: 0.03;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .usp-section {
        padding: 80px 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }
    
    .usp-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .usp-header {
        margin-bottom: 50px;
    }
    
    .usp-item {
        padding: 30px;
        gap: 20px;
        text-align: left;
    }
    
    .usp-content-wrapper {
        text-align: left;
    }
    
    .usp-feature-title {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .usp-description {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .floating-shapes {
        display: none;
    }
}

/* Mobile Landscape */
@media (max-width: 640px) {
    .usp-title {
        font-size: 2.2rem;
    }
    
    .usp-item {
        padding: 25px;
        gap: 18px;
    }
    
    .usp-icon {
        width: 55px;
        height: 55px;
    }
    
    .checkmark {
        font-size: 22px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .usp-section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .usp-title {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 15px;
    }
    
    .title-underline {
        width: 80px;
        height: 3px;
    }
    
    .usp-header {
        margin-bottom: 40px;
    }
    
    .usp-grid {
        gap: 20px;
        margin-bottom: 50px;
    }
    
    .usp-item {
        padding: 24px;
        gap: 16px;
        border-radius: 20px;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .usp-icon-wrapper {
        margin-top: 2px;
    }
    
    .usp-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
    
    .checkmark {
        font-size: 20px;
    }
    
    .usp-content-wrapper {
        flex: 1;
        text-align: left;
    }
    
    .usp-feature-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.25;
        text-align: left;
    }
    
    .usp-description {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 1rem;
        gap: 10px;
    }
    
    /* Reduce animations on mobile */
    .usp-item:hover {
        transform: translateY(-4px);
    }
    
    .checkmark {
        animation: none;
    }
    
    .usp-item:hover .usp-icon {
        transform: scale(1.05);
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .usp-title {
        font-size: 1.8rem;
    }
    
    .usp-item {
        padding: 20px;
        gap: 14px;
    }
    
    .usp-icon {
        width: 45px;
        height: 45px;
    }
    
    .checkmark {
        font-size: 18px;
    }
    
    .usp-feature-title {
        font-size: 1rem;
    }
    
    .usp-description {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.usp-item[data-aos="fade-up"] {
    animation: slideInUp 0.8s ease-out both;
}

.usp-item[data-aos-delay="100"] { animation-delay: 0.1s; }
.usp-item[data-aos-delay="200"] { animation-delay: 0.2s; }
.usp-item[data-aos-delay="300"] { animation-delay: 0.3s; }
.usp-item[data-aos-delay="400"] { animation-delay: 0.4s; }
.usp-item[data-aos-delay="500"] { animation-delay: 0.5s; }
.usp-item[data-aos-delay="600"] { animation-delay: 0.6s; }
.usp-item[data-aos-delay="700"] { animation-delay: 0.7s; }

/* ===== ACCESSIBILITY & PERFORMANCE ===== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .usp-item,
    .cta-button,
    .checkmark,
    .usp-icon,
    .shape,
    .usp-title {
        animation: none !important;
        transition: none !important;
    }
    
    .usp-item:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .usp-item:hover .checkmark {
        animation: none;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .usp-item {
        border: 2px solid #333;
        background: white;
    }
    
    .usp-feature-title {
        color: #000;
    }
    
    .usp-description {
        color: #333;
    }
    
    .checkmark {
        color: #000;
    }
}

/* Print support */
@media print {
    .floating-shapes,
    .usp-glow {
        display: none;
    }
    
    .usp-item {
        box-shadow: none;
        border: 1px solid #333;
    }
    
    .cta-button {
        background: #333 !important;
    }
}

/* Focus states for accessibility */
.usp-item:focus-within {
    outline: 2px solid #2563eb; /* Blue focus outline */
    outline-offset: 2px;
}

.cta-button:focus {
    outline: 2px solid #25d366;
    outline-offset: 4px;
}

/* Ensure animations work smoothly */
.usp-icon,
.checkmark,
.cta-arrow {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}
