./* إعدادات الخلفية العامة */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #180922 0%, #0d0614 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

/* حاوية العناصر في المنتصف */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 380px;
}

/* 1. الدائرة والتأثير المضيء (Glow Effect) */
.profile-glow {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #ff77bc;
    /* التوهج الوردي والبنفسجي حول الدائرة */
    box-shadow: 0 0 20px #ff77bc,
                0 0 40px #e056fd,
                0 0 60px rgba(224, 86, 253, 0.5);
}

/* ضبط الصورة داخل الدائرة بدون تشويه */
.profile-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تضمن قص الصورة وتوسيطها بشكل ممتاز */
    display: block;
}

/* 2. النص */
h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

/* 3. خانة إدخال كلمة السر */
.input-field {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1.5px solid #a855f7;
    background-color: rgba(20, 10, 30, 0.7);
    color: #ffffff;
    text-align: center;
    font-size: 20px;
    letter-spacing: 4px;
    outline: none;
    margin-bottom: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: #ff77bc;
}

/* 4. الزر الوردي المضيء */
.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(90deg, #ff52a8 0%, #b537f2 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 82, 168, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 82, 168, 0.8);
}
/* تصميم مربعات العداد */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.time-box {
    background: rgba(20, 10, 30, 0.85);
    border: 1px solid rgba(255, 119, 188, 0.3);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.time-box span {
    display: block;
    font-size: 26px;
    font-weight: bold;
    color: #ff52a8;
    text-shadow: 0 0 10px rgba(255, 82, 168, 0.6);
}

.time-box p {
    margin: 5px 0 0 0;
    color: #d8b4fe;
    font-size: 14px;
}
/* الخلفية العامة والتوسيط */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #180922 0%, #0d0614 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    flex-direction: column;
}

.gift-container {
    text-align: center;
    width: 90%;
    max-width: 700px;
    margin: 40px auto;
}

/* العناوين وتأثيراتها */
.gift-title {
    font-size: 32px;
    color: #ff77bc;
    text-shadow: 0 0 15px #ff77bc;
    margin-bottom: 5px;
}

.gift-subtitle {
    color: #d8b4fe;
    margin-bottom: 30px;
    font-size: 16px;
}

/* تصميم مربعات العداد التنازلي */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.time-box {
    background: rgba(20, 10, 30, 0.85);
    border: 1.5px solid rgba(255, 119, 188, 0.4);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 119, 188, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* حركة عند الوقوف بالماوس على مربعات العداد */
.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 119, 188, 0.6);
}

.time-box span {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ff52a8;
    text-shadow: 0 0 10px rgba(255, 82, 168, 0.6);
}

.time-box p {
    margin: 5px 0 0 0;
    color: #d8b4fe;
    font-size: 14px;
}

/* بطاقة الأغنية */
.audio-card {
    background: rgba(30, 15, 45, 0.8);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    margin-bottom: 30px;
}

.audio-card h3 {
    margin-top: 0;
    color: #ff77bc;
}

audio {
    width: 100%;
    max-width: 400px;
    outline: none;
    margin-top: 10px;
}

/* معرض الصور */
.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-card {
    background: rgba(30, 15, 45, 0.8);
    border-radius: 15px;
    padding: 12px;
    border: 1px solid #ff77bc;
    width: 90px;
    box-shadow: 0 0 15px rgba(255, 119, 188, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 30px auto;
    clear: both;
}

/* حركة التكبير والتوهج عند تمرير الماوس على الصور */
.photo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 119, 188, 0.8);
}

.photo-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
}

.photo-card p {
    margin: 10px 0 0 0;
    color: #ffffff;
    font-size: 15px;
}

/* تأثيرات حركية تظهر عند فتح الصفحة (Animations) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-pop {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-fade {
    animation: fadeIn 1.2s ease-in-out;
}

.animate-slide {
    animation: fadeIn 1.5s ease-in-out;
}
/* معرض الصور - عرض الصور تحت بعض بشكل رأسي */
.gallery {
    display: flex;
    flex-direction: column; /* يجعل العناصر تترتب تحت بعض رآسياً */
    align-items: center;    /* يتأكد إن الصور في المنتصف */
    gap: 20px;             /* المسافة بين كل صورة والتانية */
}

.photo-card {
    background: rgba(30, 15, 45, 0.8);
    border-radius: 15px;
    padding: 12px;
    border: 1px solid #ff77bc;
    width: 100%;           /* تأخذ عرض مناسب */
    max-width: 320px;       /* حجم الصورة لتظهر بشكل متناسق ومريح */
    box-shadow: 0 0 15px rgba(255, 119, 188, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* حركة التكبير عند الوقوف بالماوس */
.photo-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 119, 188, 0.8);
}

.photo-card img {
    width: 100%;
    height: auto;           /* يضمن الحفاظ على أبعاد الصورة الأصلية بدون تشويه */
    border-radius: 10px;
    display: block;
}
/* تنسيق صندوق الكلام المتحرك */
.typewriter-box {
    margin: 15px auto 25px auto;
    padding: 10px;
    max-width: 600px;
}

#typewriter-text {
    font-size: 18px;
    color: #d8b4fe;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(216, 180, 254, 0.4);
    border-left: 2px solid #ff77bc; /* مؤشر الكتابة المضيء */
    padding-right: 5px;
    display: inline-block;
}
/* ضبط شبكة العداد لتتوافق مع اللغة العربية */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة */
    direction: ltr; /* لضبط ترتيب المربعات من اليمين لليسار بشكل صحيح */
    gap: 15px;
    margin-bottom: 30px;
}

/* إعادة ضبط اتجاه النصوص داخل مربعات العداد بالعربي */
.time-box {
    background: rgba(20, 10, 30, 0.85);
    border: 1.5px solid rgba(255, 119, 188, 0.4);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    direction: rtl; 
    box-shadow: 0 0 15px rgba(255, 119, 188, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 119, 188, 0.6);
}

.time-box span {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ff52a8;
    text-shadow: 0 0 10px rgba(255, 82, 168, 0.6);
}

.time-box p {
    margin: 5px 0 0 0;
    color: #d8b4fe;
    font-size: 14px;
}

/* تنسيق الكلام المتحرك */
.typewriter-box {
    margin: 15px auto 25px auto;
    padding: 0 10px;
    max-width: 600px;
    text-align: right;
    direction: rtl;
}

#typewriter-text {
    font-size: 18px;
    color: #d8b4fe;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(216, 180, 254, 0.4);
    border-r: 2px solid #ff77bc;
    padding-left: 5px;
    display: inline-block;
}
/* تنسيق صندوق الكلام المتحرك ليبدأ من اليمين (من أول الكلام) */
.typewriter-box {
    margin: 15px auto 25px auto;
    padding: 0 10px;
    max-width: 600px;
    text-align: right; /* يضمن بداية الكتابة من اليمين (من أول السطر) */
    direction: rtl;    /* اتجاه الكتابة باللغة العربية */
}

#typewriter-text {
    font-size: 18px;
    color: #d8b4fe;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(216, 180, 254, 0.4);
    border-right: 2px solid #ff77bc; /* وضع مؤشر الكتابة المضيء على اليمين مع بداية الكلام */
    padding-right: 8px;
    display: inline-block;
}
.heart {
  position: fixed;
  top: -10px;
  font-size: 20px;
  user-select: none;
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 9999;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
/* في كود CSS الخاص بالكروت */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}
.photo-card {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    border-radius: 20px;
}

.photo-card h3 {
    margin-bottom: 20px;
    font-size: 26px;
}

.image-container {
    display: flex;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    flex-direction: column;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.04);
}

/* مقاسات مناسبة للموبايل */
@media (max-width: 600px) {
    .image-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .image-container img {
        height: 90px;
    }

    .photo-card h3 {
        font-size: 22px;
    }
}
















