/**
 * Nashmi Hero Section Background - Authentic Shemagh Pattern
 * Traditional Arabic shemagh design with large dots
 */

/* Hero Section Animated Background */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1A2238 0%, #C8102E 100%) !important;
    overflow: hidden;
}

/* Authentic Shemagh Pattern with LARGE dots - SVG Background */
.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cdefs%3E%3Cpattern id='shemagPattern' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cline x1='50' y1='0' x2='100' y2='50' stroke='rgba(212,175,55,0.3)' stroke-width='2'/%3E%3Cline x1='0' y1='50' x2='50' y2='100' stroke='rgba(212,175,55,0.3)' stroke-width='2'/%3E%3Cline x1='50' y1='0' x2='0' y2='50' stroke='rgba(212,175,55,0.3)' stroke-width='2'/%3E%3Cline x1='100' y1='50' x2='50' y2='100' stroke='rgba(212,175,55,0.3)' stroke-width='2'/%3E%3Ccircle cx='0' cy='0' r='7' fill='%23D4AF37' opacity='0.7'/%3E%3Ccircle cx='100' cy='0' r='7' fill='%23D4AF37' opacity='0.7'/%3E%3Ccircle cx='0' cy='100' r='7' fill='%23D4AF37' opacity='0.7'/%3E%3Ccircle cx='100' cy='100' r='7' fill='%23D4AF37' opacity='0.7'/%3E%3Ccircle cx='50' cy='50' r='9' fill='%23F4D03F' opacity='0.8'/%3E%3Ccircle cx='50' cy='0' r='6' fill='%23D4AF37' opacity='0.65'/%3E%3Ccircle cx='0' cy='50' r='6' fill='%23D4AF37' opacity='0.65'/%3E%3Ccircle cx='100' cy='50' r='6' fill='%23D4AF37' opacity='0.65'/%3E%3Ccircle cx='50' cy='100' r='6' fill='%23D4AF37' opacity='0.65'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23shemagPattern)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
    animation: shemagMove 50s linear infinite;
}

@keyframes shemagMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Secondary shemagh overlay - offset pattern */
.hero-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cdefs%3E%3Cpattern id='shemagPattern2' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cline x1='50' y1='0' x2='100' y2='50' stroke='rgba(244,208,63,0.35)' stroke-width='1.5'/%3E%3Cline x1='0' y1='50' x2='50' y2='100' stroke='rgba(244,208,63,0.35)' stroke-width='1.5'/%3E%3Cline x1='50' y1='0' x2='0' y2='50' stroke='rgba(244,208,63,0.35)' stroke-width='1.5'/%3E%3Cline x1='100' y1='50' x2='50' y2='100' stroke='rgba(244,208,63,0.35)' stroke-width='1.5'/%3E%3Ccircle cx='50' cy='50' r='10' fill='%23F4D03F' opacity='0.6'/%3E%3Ccircle cx='25' cy='25' r='5' fill='%23D4AF37' opacity='0.5'/%3E%3Ccircle cx='75' cy='25' r='5' fill='%23D4AF37' opacity='0.5'/%3E%3Ccircle cx='25' cy='75' r='5' fill='%23D4AF37' opacity='0.5'/%3E%3Ccircle cx='75' cy='75' r='5' fill='%23D4AF37' opacity='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23shemagPattern2)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    background-position: 50px 50px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    animation: shemagMove 50s linear infinite reverse;
}

/* Fabric Glows */
.hero-section .fabric-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: fabricPulse 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.hero-section .glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #D4AF37 0%, transparent 70%);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.hero-section .glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #C8102E 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: 6s;
}

.hero-section .glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #F4D03F 0%, transparent 70%);
    top: 35%;
    left: 45%;
    animation-delay: 12s;
}

@keyframes fabricPulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.18;
    }
    50% {
        transform: translate(40px, -40px) scale(1.2);
        opacity: 0.25;
    }
}

/* Large Decorative Dots */
.hero-section .decorative-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #F4D03F 0%, #D4AF37 100%);
    opacity: 0.35;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: dotPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.hero-section .dot-1 { width: 18px; height: 18px; top: 12%; left: 18%; animation-delay: 0s; }
.hero-section .dot-2 { width: 22px; height: 22px; top: 28%; right: 22%; animation-delay: 1.3s; }
.hero-section .dot-3 { width: 16px; height: 16px; top: 48%; left: 12%; animation-delay: 2.6s; }
.hero-section .dot-4 { width: 20px; height: 20px; top: 62%; right: 18%; animation-delay: 3.9s; }
.hero-section .dot-5 { width: 24px; height: 24px; bottom: 22%; left: 28%; animation-delay: 5.2s; }
.hero-section .dot-6 { width: 18px; height: 18px; bottom: 32%; right: 32%; animation-delay: 6.5s; }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.35;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

/* Gold Thread Sparkles */
.hero-section .gold-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #F4D03F;
    border-radius: 50%;
    box-shadow: 0 0 25px #D4AF37;
    animation: sparkleAnim 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.hero-section .sparkle-1 { top: 20%; left: 42%; animation-delay: 0s; }
.hero-section .sparkle-2 { top: 38%; right: 16%; animation-delay: 1s; }
.hero-section .sparkle-3 { top: 56%; left: 24%; animation-delay: 2s; }
.hero-section .sparkle-4 { bottom: 28%; right: 38%; animation-delay: 3s; }
.hero-section .sparkle-5 { top: 72%; left: 58%; animation-delay: 4s; }
.hero-section .sparkle-6 { top: 44%; left: 68%; animation-delay: 2.5s; }

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(2.5);
    }
}

/* Floating Arabic Geometric Elements */
.hero-section .geometric-float {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #D4AF37;
    transform: rotate(45deg);
    opacity: 0.08;
    animation: geometricFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.hero-section .geo-1 { top: 20%; left: 10%; animation-delay: 0s; }
.hero-section .geo-2 { top: 60%; right: 15%; animation-delay: 7s; }
.hero-section .geo-3 { bottom: 25%; left: 45%; animation-delay: 14s; }

@keyframes geometricFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.08;
    }
    50% {
        transform: rotate(225deg) translateY(-40px);
        opacity: 0.15;
    }
}

/* Traditional Top Border */
.hero-section .traditional-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #D4AF37 0px,
        #D4AF37 20px,
        #F4D03F 20px,
        #F4D03F 40px
    );
    box-shadow: 0 3px 25px rgba(212, 175, 55, 0.6);
    animation: borderShift 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes borderShift {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* Hero Content - Ensure it's above animations */
.hero-section .hero-content,
.hero-section .container {
    position: relative;
    z-index: 100;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .geometric-float {
        width: 60px;
        height: 60px;
    }
    
    .hero-section .decorative-dot {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Disable all old elements */
.hero-section .radial-glow,
.hero-section .diamond,
.hero-section .star,
.hero-section .circle,
.hero-section .hexagon,
.hero-section .particle,
.hero-section .wave-line,
.hero-section .corner-accent,
.hero-section .top-border {
    display: none !important;
}

.hero-section .glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #D4AF37 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.hero-section .glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #C8102E 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation-delay: 5s;
}

.hero-section .glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #F4D03F 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Top Gold Border Animation */
.hero-section .top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #F4D03F, #D4AF37);
    background-size: 200% 100%;
    animation: border-flow 3s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes border-flow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Geometric Layer Container */
.hero-section .geometric-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 2;
}

/* Animated Diamonds */
.hero-section .diamond {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #D4AF37;
    transform: rotate(45deg);
    animation: rotate-pulse 15s linear infinite;
}

.hero-section .diamond-1 { top: 10%; left: 15%; animation-delay: 0s; }
.hero-section .diamond-2 { top: 60%; left: 80%; animation-delay: 3s; }
.hero-section .diamond-3 { top: 75%; left: 20%; animation-delay: 6s; }
.hero-section .diamond-4 { top: 25%; right: 10%; animation-delay: 9s; }

@keyframes rotate-pulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(225deg) scale(1.2);
        opacity: 0.3;
    }
}

/* Animated Stars */
.hero-section .star {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: star-rotate 20s linear infinite;
}

.hero-section .star::before,
.hero-section .star::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #F4D03F;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hero-section .star::after {
    transform: rotate(36deg);
}

.hero-section .star-1 { top: 15%; left: 50%; animation-delay: 0s; opacity: 0.15; }
.hero-section .star-2 { top: 70%; left: 60%; animation-delay: 4s; opacity: 0.1; }
.hero-section .star-3 { top: 40%; left: 10%; animation-delay: 8s; opacity: 0.12; }
.hero-section .star-4 { top: 80%; right: 15%; animation-delay: 12s; opacity: 0.08; }

@keyframes star-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.3);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Animated Circles - DISABLED (too visible) */
.hero-section .circle {
    display: none !important;
}

.hero-section .circle-1 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 25%;
    animation-delay: 0s;
}

.hero-section .circle-2 {
    width: 90px;
    height: 90px;
    top: 55%;
    right: 20%;
    animation-delay: 4s;
}

.hero-section .circle-3 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 50%;
    animation-delay: 8s;
}

@keyframes pulse-circle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.05;
    }
}

/* Animated Particles */
.hero-section .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-section .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #D4AF37;
    border-radius: 50%;
    animation: particle-float 15s ease-in-out infinite;
}

.hero-section .particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-section .particle:nth-child(2) { top: 40%; left: 30%; animation-delay: 2s; }
.hero-section .particle:nth-child(3) { top: 60%; left: 50%; animation-delay: 4s; }
.hero-section .particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 6s; }
.hero-section .particle:nth-child(5) { top: 25%; right: 15%; animation-delay: 8s; }
.hero-section .particle:nth-child(6) { top: 45%; right: 35%; animation-delay: 10s; }
.hero-section .particle:nth-child(7) { top: 65%; right: 55%; animation-delay: 12s; }
.hero-section .particle:nth-child(8) { top: 85%; right: 25%; animation-delay: 14s; }

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-50px) translateX(-30px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-120px) translateX(70px);
        opacity: 0.3;
    }
}

/* Animated Wave Lines */
.hero-section .wave-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    opacity: 0.1;
    animation: wave-move 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.hero-section .wave-1 { top: 25%; animation-delay: 0s; }
.hero-section .wave-2 { top: 50%; animation-delay: 2s; }
.hero-section .wave-3 { top: 75%; animation-delay: 4s; }

@keyframes wave-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Hexagon Pattern */
.hero-section .hexagon {
    position: absolute;
    width: 60px;
    height: 34.64px;
    background: transparent;
    border-left: 2px solid #D4AF37;
    border-right: 2px solid #D4AF37;
    opacity: 0.08;
    animation: hexagon-spin 18s linear infinite;
}

.hero-section .hexagon::before,
.hero-section .hexagon::after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    left: -2px;
}

.hero-section .hexagon::before {
    bottom: 100%;
    border-bottom: 17.32px solid #D4AF37;
}

.hero-section .hexagon::after {
    top: 100%;
    border-top: 17.32px solid #D4AF37;
}

.hero-section .hex-1 { top: 35%; right: 25%; animation-delay: 0s; }
.hero-section .hex-2 { bottom: 30%; left: 30%; animation-delay: 6s; }

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

/* Corner Accents with Animation */
.hero-section .corner-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #D4AF37;
    opacity: 0.2;
    animation: corner-pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.hero-section .corner-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    animation-delay: 0s;
}

.hero-section .corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    animation-delay: 1.5s;
}

.hero-section .corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    animation-delay: 3s;
}

.hero-section .corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    animation-delay: 4.5s;
}

@keyframes corner-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

/* Hero Content - Ensure it's above animations */
.hero-section .hero-content,
.hero-section .container {
    position: relative;
    z-index: 100;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .diamond {
        width: 40px;
        height: 40px;
    }
    
    .hero-section .star {
        width: 30px;
        height: 30px;
    }
    
    .hero-section .circle-1 {
        width: 80px;
        height: 80px;
    }
    
    .hero-section .circle-2 {
        width: 60px;
        height: 60px;
    }
    
    .hero-section .circle-3 {
        width: 100px;
        height: 100px;
    }
    
    .hero-section .hexagon {
        width: 40px;
        height: 23.09px;
    }
    
    .hero-section .corner-accent {
        width: 60px;
        height: 60px;
    }
}
