@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary: #ffd700;
    --secondary: #000000;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --bg-dark: #000000;
    --bg-light: rgba(7, 16, 21, 0.23);
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* خلفية النقاط المتحركة مع تحسينات */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(100, 255, 218, 0.5);
    border-radius: 50%;
    animation: fall linear infinite;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
    50% {
        transform: translateY(50vh) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
}

.navbar {
    background: rgb(16, 16, 16);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(255, 217, 0, 0.499);
    top: 0;
}


.logo {
color: #f1cc54;
font-size: 1.8rem;
font-weight: bold;
text-decoration: none;
transition: all 0.5s ease;
}


.logo:hover {
transform: scale(1.55);
text-shadow: 0 0 10px #FFD700;
}

.logo-container {
display: flex;
align-items: center;
gap: 1.2rem;
position: relative;
}

.logo-wrapper {
position: relative;
width: 80px;  /* تم زيادة الحجم */
height: 80px; /* تم زيادة الحجم */
}

.logo-img {
width: 100%;
height: 100%;
object-fit: contain;
position: relative;
z-index: 2;
transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glowing-effect {
position: absolute;
inset: -15%;
background: radial-gradient(
circle at center,
rgba(255, 215, 0, 0.8) 0%,
rgba(255, 215, 0, 0.3) 40%,
transparent 70%
);
opacity: 0;
transform: scale(0.8);
transition: all 0.5s ease;
z-index: 1;
}

/* تأثيرات الحركة */
@keyframes float {
0% {
transform: translateY(0) scale(1);
}
50% {
transform: translateY(-8px) scale(1.08);
}
100% {
transform: translateY(0) scale(1);
}
}

@keyframes glow-pulse {
0% {
opacity: 0.4;
transform: scale(0.9);
}
50% {
opacity: 0.8;
transform: scale(1.1);
}
100% {
opacity: 0.4;
transform: scale(0.9);
}
}

/* تأثيرات عند مرور المؤشر */
.logo-container:hover .logo-img {
animation: float 2s ease-in-out infinite;
filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.4));
}

.logo-container:hover .glowing-effect {
opacity: 1;
animation: glow-pulse 3s ease-in-out infinite;
}

.logo-container:hover .logo {
transform: translateY(-4px);
text-shadow: 
0 0 15px rgba(255, 215, 0, 0.8),
0 0 30px rgba(255, 215, 0, 0.4),
0 0 45px rgba(255, 215, 0, 0.2);
letter-spacing: 2px;
transition: all 0.5s ease;
}

/* تحسين للشاشات المتوسطة والصغيرة */
@media (max-width: 991px) {
.logo-wrapper {
width: 55px;
height: 55px;
}
}

@media (max-width: 767px) {
.logo-container {
gap: 0.8rem;
}

.logo-wrapper {
width: 50px;
height: 50px;
}

.logo {
font-size: 1.4rem;
}
}

@media (max-width: 767px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .store-link {
        padding: 0.5rem 1.2rem !important;
        letter-spacing: 1px !important;
        font-size: 0.9rem !important; /* تم تكبير الخط للـ Store link */
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Extremely powerful styling for Store link */
.store-link {
    animation: intense-glow 1.5s infinite;
    font-weight: 800;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem !important;
    z-index: 2;
}
  
/* Multiple layers of glowing effects */
.store-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 68, 0.15);
    box-shadow: 
        0 0 10px rgba(255, 0, 68, 0.5),
        0 0 20px rgba(255, 0, 68, 0.3),
        0 0 30px rgba(255, 0, 68, 0.2),
        0 0 40px rgba(255, 0, 68, 0.1);
    border-radius: 4px;
    z-index: -1;
    animation: intense-pulse 1.5s infinite;
}
  
/* Powerful text animation with bright glow */
@keyframes intense-glow {
    0% {
        color: #ff1744;
        text-shadow: 
            0 0 5px rgba(255, 23, 68, 0.8),
            0 0 10px rgba(255, 23, 68, 0.5);
    }
    50% {
        color: #ff0052;
        text-shadow: 
            0 0 10px rgba(255, 0, 82, 1),
            0 0 20px rgba(255, 0, 82, 0.8),
            0 0 30px rgba(255, 0, 82, 0.6),
            0 0 40px rgba(255, 0, 82, 0.4);
    }
    100% {
        color: #ff1744;
        text-shadow: 
            0 0 5px rgba(255, 23, 68, 0.8),
            0 0 10px rgba(255, 23, 68, 0.5);
    }
}
  
/* Intense pulsating background glow */
@keyframes intense-pulse {
    0% {
        opacity: 0.7;
        box-shadow: 
            0 0 10px rgba(255, 0, 68, 0.5),
            0 0 20px rgba(255, 0, 68, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 15px rgba(255, 0, 68, 0.7),
            0 0 25px rgba(255, 0, 68, 0.5),
            0 0 35px rgba(255, 0, 68, 0.3),
            0 0 45px rgba(255, 0, 68, 0.2);
    }
    100% {
        opacity: 0.7;
        box-shadow: 
            0 0 10px rgba(255, 0, 68, 0.5),
            0 0 20px rgba(255, 0, 68, 0.3);
    }
}
  
/* Powerful underline effect */
.store-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff0052;
    box-shadow: 
        0 0 5px #ff0052,
        0 0 10px #ff0052,
        0 0 15px #ff0052;
    z-index: 1;
    animation: underline-flare 1.5s infinite;
}
  
@keyframes underline-flare {
    0% {
        opacity: 0.8;
        box-shadow: 
            0 0 5px #ff0052,
            0 0 10px #ff0052;
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 10px #ff0052,
            0 0 20px #ff0052,
            0 0 30px #ff0052;
        height: 4px;
    }
    100% {
        opacity: 0.8;
        box-shadow: 
            0 0 5px #ff0052,
            0 0 10px #ff0052;
    }
}
  
/* Add an outer glow effect */
.store-link {
    filter: drop-shadow(0 0 8px rgba(255, 0, 82, 0.5));
}

.container {
    max-width: 800px;
    margin: 120px auto 50px;
    padding: 2rem;
    background: rgba(16, 17, 19, 0.8);
    border-radius: 15px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
    animation: fadeIn 1s ease;
    transform-origin: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary);
    }
    50% {
        text-shadow: 0 0 20px var(--primary);
    }
}

.unit-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideIn 1s ease;
}

.unit-toggle button {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: 70px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unit-toggle button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(177, 190, 2, 0.338);
}

.unit-toggle button.active {
    background: var(--primary);
    color: var(--bg-dark);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(179, 185, 7, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.5s ease forwards;
}

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group:nth-child(even) {
    transform: translateX(20px);
    animation: slideInFromRight 0.5s ease forwards;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

input, select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--primary);
    border-radius: 70px;
    background: rgba(100, 255, 218, 0.1);
    color: #8b9201;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    transform: translateY(-2px);
}

button[type="submit"] {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

#result {
margin-top: 2rem;
padding: 1.5rem;
background: var(--bg-light);
border-radius: 10px;
border: 1px solid var(--primary);
opacity: 0;
transform: scale(0.95) translateY(20px);
transition: none;
position: relative;
overflow: hidden;
}

#result.show {
animation: resultAppear 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes resultAppear {
0% {
opacity: 0;
transform: scale(0.95) translateY(20px);
}
100% {
opacity: 1;
transform: scale(1) translateY(0);
}
}

/* إضافة تأثير الخط المتحرك */
#result.show::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 3px;
height: 100%;
background: var(--primary);
animation: lineProgress 0.6s ease forwards;
}

@keyframes lineProgress {
0% {
height: 0;
}
100% {
height: 100%;
}
}

/* تأثير الظل المتوهج */
#result.show::after {
content: '';
position: absolute;
inset: 0;
border-radius: 10px;
animation: glowPulse 2s ease-in-out infinite;
z-index: -1;
}

@keyframes glowPulse {
0%, 100% {
box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}
50% {
box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}
}

/* تحسين ظهور خيارات الوزن */
.weight-option {
opacity: 0;
transform: translateX(-20px);
}

#result.show .weight-option {
animation: optionSlide 0.5s ease forwards;
}

/* تأخير ظهور كل خيار بشكل متتالي */
#result.show .weight-option:nth-child(1) {
animation-delay: 0.3s;
}

#result.show .weight-option:nth-child(2) {
animation-delay: 0.5s;
}

#result.show .weight-option:nth-child(3) {
animation-delay: 0.7s;
}

@keyframes optionSlide {
0% {
opacity: 0;
transform: translateX(-20px);
}
100% {
opacity: 1;
transform: translateX(0);
}
}

/* تحسين تأثير التحويم */
.weight-option {
position: relative;
margin: 1rem 0;
padding: 1.2rem;
background: rgba(100, 255, 218, 0.05);
border-radius: 8px;
border: 1px solid rgba(100, 255, 218, 0.2);
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.weight-option:hover {
transform: translateX(10px) translateY(-2px);
background: rgba(100, 255, 218, 0.1);
box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

/* تأثير النص المضيء */
.weight-option strong {
color: var(--primary);
position: relative;
display: inline-block;
}

#result.show .weight-option strong {
animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
0%, 100% {
text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
}
50% {
text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
}

/* تحسين الهوامش الداخلية والخط */
.weight-option small {
display: block;
color: var(--text-secondary);
margin-top: 0.8rem;
opacity: 0;
transform: translateY(10px);
}

#result.show .weight-option small {
animation: fadeInUp 0.5s ease forwards;
animation-delay: 0.8s;
}

@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(10px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}

/* Footer Styles */
.footer {
background: #222222;
color: #ccd6f6;
padding: 4rem 2rem;
position: relative;
overflow: hidden;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
max-width: 1200px;
margin: 0 auto;
}

.footer-section h3 {
color: #FFD700;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}

.footer-section h3::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 50px;
height: 2px;
background: #FFD700;
animation: expand 2s ease-out infinite;
}

.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}

.social-links a {
color: #ccd6f6;
text-decoration: none;
padding: 0.8rem;
border: 1px solid #FFD700;
border-radius: 50%;
transition: 0.3s;
display: flex;
align-items: center;
justify-content: center;
}

.social-links a:hover {
background: #FFD700;
color: #0a192f;
transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
text-align: center;
padding: 1rem 0;
border-top: 1px solid rgba(255, 215, 0, 0.2);
margin-top: 2rem;
}

@keyframes expand {
0% { width: 0; }
50% { width: 100px; }
100% { width: 0; }
}

/* styles.css */
#whatsapp-container {
position: fixed;
bottom: 15px;
left: 15px;
z-index: 1000;
opacity: 0;
transform: translateX(-100%);
transition: all 0.5s ease-in-out;
}

#whatsapp-icon {
display: flex;
justify-content: center;
align-items: center;
width: 60px;
height: 60px;
background-color: #25D366;
color: white;
border-radius: 50%;
box-shadow: 0 4px 10px rgba(212, 206, 21, 0.433);
text-decoration: none;
transition: background-color 0.5s ease;
transition: color 0.5 ease;
}

#whatsapp-icon:hover {
background-color: #000000;
color: #FFD700;
}

/* تنسيق متجاوب للشاشات المختلفة */
@media screen and (max-width: 768px) {
#whatsapp-container {
bottom: 15px;
left: 10px;
}

#whatsapp-icon {
width: 50px;
height: 50px;
font-size: 28px;
}
}

@media screen and (max-width: 480px) {
#whatsapp-container {
bottom: 15px;
left: 15px;
}

#whatsapp-icon {
width: 40px;
height: 40px;
font-size: 20px;
}
}

/* للشاشات الصغيرة جدًا */
@media screen and (max-width: 320px) {
#whatsapp-container {
bottom: 10px;
left: 10px;
}

#whatsapp-icon {
width: 35px;
height: 35px;
font-size: 21px;
}
}

/* استخدام flexbox للتوسيط */
#whatsapp-icon {
font-size: 26px;
display: flex;
justify-content: center;
align-items: center;
}


@media (max-width: 768px) {
    .container {
        margin: 100px 1rem 50px;
        padding: 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 0rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}