/* ===================================
   ENHANCED PREMIUM STYLES
   Modern Zomato-Level UI/UX
   =================================== */

/* ===================================
   PREMIUM HOVER EFFECTS - GLOBAL
   =================================== */

/* Button Hover Effects - Consistent Across Site */
.btn-primary,
.btn-primary-showcase,
button[class*="btn"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-primary-showcase:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.btn-primary:active,
.btn-primary-showcase:active {
    transform: translateY(-1px) scale(1.02);
}

/* Ripple effect styling */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: ripple-animation 0.6s ease-out;
}

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

/* ===================================
   CARD HOVER EFFECTS - PREMIUM
   =================================== */

/* Feature Cards */
.feature-card {
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.25),
        0 0 0 1px rgba(102, 126, 234, 0.1);
}

.feature-card:hover .fa-arrow-right {
    transform: translateX(8px);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px) scale(1.02);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.pricing-card-green:hover {
    border-color: #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.25);
    transform: translateY(-8px) scale(1.03);
}

.pricing-card-purple:hover {
    border-color: #8b5cf6;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
    transform: translateY(-8px) scale(1.03);
}

.pricing-card-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
    transform: translateY(-8px) scale(1.03);
}

.pricing-card button:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ===================================
   NAVIGATION LINK HOVER EFFECTS
   =================================== */

nav a:not(.btn-primary) {
    position: relative;
    transition: all 0.3s ease;
}

nav a:not(.btn-primary):hover {
    color: #667eea !important;
}

/* Gradient underline animation */
nav a:not(.btn-primary)::after {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   GLASSMORPHISM ENHANCEMENTS
   =================================== */

.stats-glass-card {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.stats-glass-card:hover {
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
}

/* ===================================
   LINK HOVER EFFECTS
   =================================== */

a[href^="#"]:not(.btn-primary):not(.btn-primary-showcase):not(.btn-secondary-showcase) {
    position: relative;
    transition: all 0.3s ease;
}

footer a:hover,
.drawer-menu a:hover {
    color: #667eea !important;
    transform: translateX(4px);
}

/* ===================================
   ICON HOVER EFFECTS
   =================================== */

.fa-qrcode,
.fa-utensils,
.fa-credit-card,
.fa-sliders-h,
.fa-language,
.fa-clock,
.fa-chart-line,
.fa-table {
    transition: all 0.3s ease;
}

.feature-card:hover .fa-qrcode,
.feature-card:hover .fa-utensils,
.feature-card:hover .fa-credit-card,
.feature-card:hover .fa-sliders-h,
.feature-card:hover .fa-language,
.feature-card:hover .fa-clock,
.feature-card:hover .fa-chart-line,
.feature-card:hover .fa-table {
    transform: rotate(12deg) scale(1.1);
}

/* ===================================
   SOCIAL ICON HOVER EFFECTS
   =================================== */

.fab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover .fab {
    transform: scale(1.2) rotate(5deg);
}

/* Specific social media colors on hover */
a:hover .fa-facebook {
    color: #1877f2;
}

a:hover .fa-twitter {
    color: #1da1f2;
}

a:hover .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a:hover .fa-linkedin {
    color: #0077b5;
}

/* ===================================
   IMAGE HOVER EFFECTS
   =================================== */

img {
    transition: all 0.3s ease;
}

.team-image img:hover {
    transform: scale(1.08);
}

/* About section images */
.relative img:hover {
    transform: scale(1.05);
}

/* ===================================
   FORM INPUT HOVER/FOCUS EFFECTS
   =================================== */

input[type="text"],
input[type="email"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: scale(1.01);
}

/* ===================================
   SCROLL PROGRESS INDICATOR
   =================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

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

/* Mobile First - 360px+ */
@media (min-width: 360px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet - 768px+ */
@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

/* Laptop/Desktop - 1024px+ */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
}

/* Large Screens - 1440px+ */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
}

/* ===================================
   PREVENT OVERFLOW ISSUES
   =================================== */

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* ===================================
   SMOOTH TRANSITIONS EVERYWHERE
   =================================== */

* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */

::-webkit-scrollbar {
    width: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* ===================================
   LOADING STATE
   =================================== */

body:not(.loaded) {
    overflow: hidden;
}

body.loaded {
    animation: fadeIn 0.5s ease-in;
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   GRADIENT BACKGROUNDS
   =================================== */

.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

/* ===================================
   MOBILE OPTIMIZATIONS
   =================================== */

@media (max-width: 640px) {
    /* Prevent text from being too small */
    body {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Improve tap targets */
    button,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* GPU acceleration for animations */
.feature-card,
.testimonial-card,
.pricing-card,
.btn-primary,
.btn-primary-showcase {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===================================
   DARK MODE SUPPORT (Optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
