/* ═══════════════════════════════════════════════════════ */
/* Haduri Extra Store - Main Stylesheet                  */
/* ═══════════════════════════════════════════════════════ */

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    min-height: 100vh;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    border: 2px solid #06b6d4;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.bank-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.feature-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.security-badge {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid #10b981;
    border-radius: 15px;
    padding: 1.5rem;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn:active {
    transform: scale(0.95);
}

/* ═══ Advanced Animations ═══ */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate-gentle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes zoom-in {
    from {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Enhanced Icon Animations */
.icon-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.icon-glow {
    animation: glow 2s ease-in-out infinite;
}

.icon-float {
    animation: float 3s ease-in-out infinite;
}

.icon-rotate:hover {
    animation: rotate-gentle 0.8s ease-in-out;
}

/* Responsive Logo Sizes */
.logo-main {
    height: 3rem;
    width: 3rem;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .logo-main {
        height: 3.5rem;
        width: 3.5rem;
    }
}

@media (min-width: 768px) {
    .logo-main {
        height: 4rem;
        width: 4rem;
    }
}

.logo-main:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

/* Enhanced Feature Icons */
.feature-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    display: inline-block;
}

@media (min-width: 768px) {
    .feature-icon {
        font-size: 4.5rem;
    }
}

.feature-icon:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.5));
}

/* QR Code Enhancement */
.qr-code-enhanced {
    animation: glow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

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

/* Credentials Logo Sizes */
.credentials-logo {
    transition: all 0.3s ease;
}

.credentials-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Shimmer Effect for Important Headings */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer-text {
    background: linear-gradient(90deg,
            #1e40af 0%,
            #3b82f6 25%,
            #60a5fa 50%,
            #3b82f6 75%,
            #1e40af 100%);
    background-size: 2000px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

/* Fix Text Overflow Issues */
.text-no-overflow {
    overflow: visible;
    line-height: 1.4;
}

/* Better Spacing for Cards */
.card-content {
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ═══ Enhanced Mobile Responsiveness ═══ */

/* Fix horizontal overflow on mobile */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets for mobile */
@media (max-width: 639px) {
    a, button, .btn-primary, .btn-secondary, .btn-whatsapp {
        touch-action: manipulation;
    }

    .hero-heading {
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
    }

    .card-mobile {
        padding: 1.25rem !important;
    }

    .btn-mobile-full {
        width: 100% !important;
    }

    .announcement-bar {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.65rem !important;
        line-height: 1.5 !important;
    }
    .announcement-bar a {
        font-size: 0.65rem !important;
    }

    .feature-mobile-title {
        font-size: 1rem !important;
    }
    .feature-mobile-desc {
        font-size: 0.8rem !important;
    }

    .v9-grid {
        gap: 1rem !important;
    }

    .qr-mobile {
        width: 140px !important;
        height: 140px !important;
    }

    .footer-mobile-section {
        padding: 1rem !important;
    }
}

/* Medium screens tweaks */
@media (min-width: 640px) and (max-width: 767px) {
    .hero-heading {
        font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding-top: 8rem !important;
        padding-bottom: 2rem !important;
    }
    .hero-heading {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Fix grid gaps on small tablets */
@media (max-width: 767px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Smooth animations only when not reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Better image handling on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Fix overflow in V9 section on mobile */
.v9-fullwidth-card {
    overflow: hidden;
}

/* Better nested grid on mobile */
@media (max-width: 639px) {
    .grid > .grid {
        margin: 0 !important;
    }
}

/* ═══ GLASSMORPHISM SYSTEM ═══ */
.glass {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
}
.glass:hover {
    border-color: rgba(255,255,255,0.14);
}
.glass-strong {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.10);
}
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: rgba(255,255,255,0.12);
}
.glass-dark {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Gradient text utilities */
.gradient-cyan {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-purple {
    background: linear-gradient(135deg, #c084fc, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-emerald {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-sunset {
    background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skip link */
.sr-only:not(:focus):not(:active) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* :focus-visible for all interactive elements */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-whatsapp:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 9999px;
}
.glass-card:focus-visible, .card-hover:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
}

/* Separate hover for desktop vs touch */
@media (hover: hover) {
    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    }
    .glass-card:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.12);
        transform: translateY(-6px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .btn-primary:hover, .btn-secondary:hover, .btn-whatsapp:hover {
        transform: scale(1.05);
    }
    .glass:hover {
        background: rgba(255,255,255,0.09);
        border-color: rgba(255,255,255,0.14);
    }
}

/* Active state for touch feedback */
.btn-primary:active, .btn-secondary:active, .btn-whatsapp:active {
    transform: scale(0.97);
}
.card-hover:active {
    transform: scale(0.98);
}
.glass-card:active, .glass:active {
    transform: scale(0.98);
}
