/* UAE DMA Store - Custom Styles */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Gold gradient text */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4a017, #f5d060, #b8860b, #d4a017);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Gold border glow */
.border-gold-glow {
    border: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.05);
}

/* Card hover effect */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.card-hover::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.03), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}
.card-hover:hover::before { left: 100%; }
.card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 160, 23, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 160, 23, 0.08);
}

/* Button gold */
.btn-gold {
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: #000;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-gold:hover::after { opacity: 1; }
.btn-gold:hover {
    background: linear-gradient(135deg, #d4a017, #e6b422);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.35);
}
.btn-gold:active { transform: translateY(0); }

/* Button outline */
.btn-outline {
    border: 1px solid rgba(212, 160, 23, 0.4);
    color: #d4a017;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(212, 160, 23, 0.1);
    border-color: #d4a017;
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.1);
}

/* Input styles */
.input-field {
    width: 100%;
    background: rgba(17,17,17,0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    backdrop-filter: blur(4px);
}
.input-field:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1), 0 0 20px rgba(212, 160, 23, 0.05);
    background: rgba(17,17,17,1);
}
.input-field::placeholder { color: #4b5563; }

/* Select styles */
.select-field {
    width: 100%;
    background: rgba(17,17,17,0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.select-field:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* Hero section */
.hero-bg {
    position: relative;
    background: radial-gradient(ellipse at top, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(212, 160, 23, 0.03) 0%, transparent 50%);
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(212,160,23,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 40%, rgba(212,160,23,0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 80%, rgba(212,160,23,0.12) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.05) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.04) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 70%, rgba(212,160,23,0.08) 0%, transparent 100%);
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}
@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

/* Scan line effect */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(212,160,23,0.008) 2px,
        rgba(212,160,23,0.008) 4px
    );
    animation: scanlines 8s linear infinite;
    pointer-events: none;
}
@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Glitch text effect on hover */
.glitch-hover { position: relative; }
.glitch-hover:hover {
    animation: glitchText 0.3s ease;
}
@keyframes glitchText {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

/* Pulse glow */
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(212,160,23,0.1); }
    50% { box-shadow: 0 0 25px rgba(212,160,23,0.2), 0 0 50px rgba(212,160,23,0.05); }
}

/* Shipping badge */
.shipping-badge {
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 13px;
    color: #d4a017;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.shipping-badge:hover {
    background: rgba(212, 160, 23, 0.12);
    border-color: rgba(212, 160, 23, 0.3);
}

/* Product image container */
.product-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #0d0d0d 0%, #151515 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-hover:hover .product-image img {
    transform: scale(1.05);
}

/* Status badges */
.badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}

/* Fade in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in { opacity: 0; animation: fadeInUp 0.7s ease forwards; }
.animate-fade-left { opacity: 0; animation: fadeInLeft 0.7s ease forwards; }
.animate-fade-right { opacity: 0; animation: fadeInRight 0.7s ease forwards; }
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.6s; }

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* Rotating border */
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.rotating-border { position: relative; overflow: hidden; }
.rotating-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent, #d4a017, transparent, transparent);
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
    border-radius: inherit;
}

/* Count up animation helper */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* Timeline / Status tracker */
.status-tracker {
    display: flex;
    align-items: center;
    gap: 0;
}
.status-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.status-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.05);
    z-index: 0;
}
.status-step:first-child::before { left: 50%; }
.status-step:last-child::before { right: 50%; }
.status-step.active::before { background: linear-gradient(90deg, #d4a017, rgba(212,160,23,0.3)); }
.status-step.completed::before { background: #d4a017; }
.status-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.status-step.completed .status-dot {
    background: #d4a017;
    border-color: #d4a017;
}
.status-step.active .status-dot {
    border-color: #d4a017;
    box-shadow: 0 0 15px rgba(212,160,23,0.3);
}

/* Glass card */
.glass-card {
    background: rgba(17,17,17,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Textarea */
textarea.input-field { resize: vertical; min-height: 100px; }

/* Chart container */
.chart-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding-top: 20px;
}
.chart-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(212,160,23,0.6), rgba(212,160,23,0.2));
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: all 0.3s ease;
    position: relative;
}
.chart-bar:hover {
    background: linear-gradient(to top, #d4a017, rgba(212,160,23,0.5));
}

/* Welcome card gradient */
.welcome-gradient {
    background: linear-gradient(135deg, rgba(212,160,23,0.1) 0%, rgba(184,134,11,0.05) 50%, transparent 100%);
    border: 1px solid rgba(212,160,23,0.15);
}

/* ========== Geometric Pattern Background ========== */
.geo-canvas-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.geo-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}
/* Make sure page content stays above the canvas */
nav, main, footer { position: relative; z-index: 1; }
