﻿
#toast-container > .toast-info {
    background-color: #121212 !important; /* أسود عميق */
    color: #d4af37 !important; /* نص ذهبي */
    border: 1px solid #d4af37 !important; /* إطار ذهبي نحيف */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
    opacity: 1;
}

/* تنسيق شريط التقدم (الذي يقل مع الوقت) */
#toast-container > .toast-info .toast-progress {
    background-color: #d4af37 !important; /* شريط تقدم ذهبي */
    height: 3px;
}

/* تنسيق عنوان الإشعار */
.toast-title {
    font-weight: bold;
    color: #ffffff !important; /* العنوان أبيض ليميزه عن الرسالة الذهبية */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 5px;
    padding-bottom: 5px;
}

/* دفع الإشعار قليلاً للأسفل لكي لا يلتصق بحافة المتصفح */
#toast-container {
    top: 60px !important;
}

    #toast-container > .toast-info {
        background-color: #1a1a1a;
        color: #d4af37;
        border: 1px solid #d4af37;
        opacity: 1;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }

.toast-progress {
    background-color: #d4af37 !important;
}

.bug-fixer-container {
    text-align: center;
    margin: 50px 0;
}

.bug-fixer-btn {
    background: linear-gradient(45deg, #d4af37, #b8860b); /* تدرج ذهبي */
    color: #000;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

    .bug-fixer-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
        background: linear-gradient(45deg, #b8860b, #d4af37);
    }


.timeline-image-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.timeline-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.timeline-content:hover .timeline-img {
    transform: scale(1.05);
}

@@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;700&display=swap');

:root {
    --royal-black: #0a0a0a;
    --royal-bg: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    --gold: #d4af37;
    --transparent-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(212, 175, 55, 0.3); /* Goldish transparent border */
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--royal-black);
}

.elegant-birthday-container {
    background: var(--royal-bg);
    min-height: 100vh;
    color: white;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.content-wrapper {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Star Background */
.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--gold);
    animation: fall linear infinite;
    opacity: 0.8;
}

@@keyframes fall {
    0% {
        transform: translateY(-10vh) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) scale(0.5);
        opacity: 0;
    }
}

/* Fade In Animations */
.fade-in-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

.delay-3 {
    animation-delay: 1.2s;
}

.delay-4 {
    animation-delay: 1.6s;
}

.delay-5 {
    animation-delay: 2.0s;
}

.delay-6 {
    animation-delay: 2.4s;
}

.delay-7 {
    animation-delay: 2.8s;
}

@@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 50px;
}

.royal-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.royal-subtitle {
    font-size: 2.2rem;
    color: #f0f0f0;
    margin-top: 15px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Countdown Setup */
.countdown-section {
    margin-bottom: 60px;
    width: 100%;
    max-width: 600px;
}

.countdown-timer {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row-reverse; /* RTL Support */
}

.time-box {
    background: var(--transparent-white);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px 15px;
    flex: 1;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s;
}

    .time-box:hover {
        transform: translateY(-5px);
        border-color: var(--gold);
    }

.time-value {
    display: block;
    font-size: 2.8rem;
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    line-height: 1.2;
}

.time-label {
    font-size: 1.1rem;
    color: #ddd;
    font-weight: 300;
}

/* Glassmorphism Card */
.message-section {
    width: 100%;
    max-width: 850px;
    margin-bottom: 70px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
}

    .glass-card::before {
        content: "♥";
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 40px;
        color: var(--gold);
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }

.message-text {
    font-size: 1.8rem;
    line-height: 1.9;
    color: #fdfdfd;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 300;
}

/* Timeline Section */
.timeline-section {
    width: 100%;
    max-width: 900px;
    margin-bottom: 70px;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

    .timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--gold);
        top: 0;
        bottom: 0;
        right: 50%;
        margin-right: -1px;
    }

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

    .timeline-item.right {
        right: 0;
    }

    .timeline-item.left {
        right: 50%;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        background-color: var(--royal-black);
        border: 3px solid var(--gold);
        top: 20px;
        border-radius: 50%;
        z-index: 1;
        transition: background-color 0.4s, box-shadow 0.4s;
    }

    .timeline-item.right::after {
        left: -8px; /* على الخط بالمنتصف */
    }

    .timeline-item.left::after {
        right: -8px; /* على الخط بالمنتصف */
    }

    .timeline-item:hover::after {
        background-color: var(--gold);
        box-shadow: 0 0 15px var(--gold);
    }

.timeline-content {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05); /* زجاجي شفاف */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    position: relative;
    border-radius: 15px;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.timeline-date {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    display: block;
    margin-bottom: 10px;
    transition: color 0.4s, text-shadow 0.4s;
}

.timeline-item:hover .timeline-date {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.timeline-icon {
    margin-right: 10px;
    font-size: 1.4rem;
    vertical-align: middle;
}

.timeline-title {
    color: var(--gold);
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.timeline-description {
    color: #ddd;
    margin: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.timeline-code {
    margin-top: 15px;
    background: #1e1e1e;
    padding: 12px;
    border-radius: 8px;
    border-right: 3px solid var(--gold);
    font-family: 'Consolas', 'Courier New', monospace;
    text-align: left;
    direction: ltr; /* اتجاه الكود إنجليزي */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Gallery Section */
.gallery-section {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

.gallery-title {
    color: var(--gold);
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
}

.image-wrapper {
    border: 2px solid var(--gold);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background-color: #1a1a1a;
    aspect-ratio: 1; /* جعل الصور مربعة */
    position: relative;
}

    .image-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
        pointer-events: none;
    }

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

    .image-wrapper:hover {
        transform: scale(1.05) translateY(-10px);
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
        border-color: #fff;
    }

        .image-wrapper:hover img {
            transform: scale(1.15);
        }

/* Terminal Section */
.terminal-section {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    margin-bottom: 70px;
    text-align: center;
}

.terminal-window {
    background-color: #0c0c0c;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.4);
    overflow: hidden;
    text-align: left;
}

.terminal-body {
    padding: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    color: #00ff00; /* Classic Terminal Green */
    min-height: 250px;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    white-space: pre-wrap;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: #00ff00;
}

@@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Roadmap Section */
.roadmap-section {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    margin-bottom: 70px;
}

.editor-window {
    background-color: #1e1e1e;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.editor-header {
    background-color: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
    direction: ltr; /* English OS style window buttons */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.header-red {
    background-color: #ff5f56;
}

.header-yellow {
    background-color: #ffbd2e;
}

.header-green {
    background-color: #27c93f;
}

.editor-title {
    color: #858585;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.editor-body {
    padding: 30px;
    text-align: right;
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #fff;
    opacity: 0;
    animation: checkmark-anim 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

    /* Staggered animation for checklist to show one by one */
    .roadmap-item:nth-child(1) {
        animation-delay: 2.2s;
    }

    .roadmap-item:nth-child(2) {
        animation-delay: 2.8s;
    }

    .roadmap-item:nth-child(3) {
        animation-delay: 3.4s;
    }

    .roadmap-item:nth-child(4) {
        animation-delay: 4.0s;
    }

    .roadmap-item:nth-child(5) {
        animation-delay: 4.6s;
    }

@@keyframes checkmark-anim {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.task-icon {
    margin-left: 15px;
    font-size: 1.6rem;
    filter: drop-shadow(0 0 5px var(--gold));
}

.task-done .task-text {
    color: #fdfdfd;
    font-weight: bold;
}

.task-pending .task-text {
    color: #ddd;
}

.editor-footer-text {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px dashed #444;
    font-size: 1.4rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    line-height: 1.8;
    opacity: 0;
    animation: checkmark-anim 0.7s forwards;
    animation-delay: 5.5s; /* تظهر في النهاية */
    font-weight: 700;
    text-align: center;
}

/* Easter Egg Section */
.easter-egg-section {
    margin-top: 60px;
    margin-bottom: 100px;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.gold-button {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: 'Consolas', 'Courier New', monospace;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

    .gold-button:hover {
        background: var(--gold);
        color: var(--royal-black);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
        transform: translateY(-3px);
    }

.heart-code-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.8s ease;
    margin-top: 30px;
}

    .heart-code-container.show {
        max-height: 500px;
        opacity: 1;
    }

.heart-editor {
    text-align: left !important;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
}

.code-body {
    padding: 20px !important;
    background-color: #1e1e1e;
    overflow-x: auto;
}

.line {
    display: flex;
    white-space: pre;
}

.line-number {
    color: #858585;
    padding-right: 20px;
    user-select: none;
    width: 30px;
    text-align: right;
    border-right: 1px solid #444;
    margin-right: 15px;
}

/* Syntax Highlighting CSS */
.keyword {
    color: #569cd6;
}
/* الأزرق الكلاسيكي */
.type {
    color: #4ec9b0;
}
/* الأخضر الفاتح */
.variable {
    color: #9cdcfe;
}
/* الأزرق الفاتح */
.string {
    color: #ce9178;
}
/* البرتقالي */
.comment {
    color: #6a9955;
    font-family: 'Tajawal', 'Consolas', monospace;
    font-style: italic;
}
/* أخضر للتعليقات */

/* Responsive Adjustments */
@@media (max-width: 768px) {
    .elegant-birthday-container {
        padding: 40px 15px;
    }

    .royal-title {
        font-size: 3.5rem;
    }

    .royal-subtitle {
        font-size: 1.6rem;
    }

    .countdown-timer {
        gap: 10px;
    }

    .time-box {
        min-width: 70px;
        padding: 15px 10px;
    }

    .time-value {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 40px 25px;
    }

    .message-text {
        font-size: 1.4rem;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .timeline::after {
        right: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-right: 70px;
        padding-left: 20px;
    }

        .timeline-item.left {
            right: 0;
        }

            .timeline-item.right::after, .timeline-item.left::after {
                right: 23px;
            }

    .terminal-body {
        font-size: 1.1rem;
        padding: 20px;
    }

    .roadmap-item {
        font-size: 1.1rem;
    }

    .editor-body {
        padding: 20px;
    }

    .editor-footer-text {
        font-size: 1.2rem;
    }

    .gold-button {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    .heart-editor {
        font-size: 1rem;
    }

    .floating-heart-container {
        bottom: 20px;
        right: 20px;
    }

    .floating-heart {
        font-size: 40px; /* Mobile size */
    }

    .love-tooltip {
        font-size: 1.1rem;
        max-width: 200px;
    }
}

/* Floating Heart Section */
.floating-heart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.love-tooltip {
    background: rgba(212, 175, 55, 0.95); /* Gold background */
    color: #000;
    padding: 15px 20px;
    border-radius: 20px 20px 0 20px; /* Rounded bubble matching RTL placement */
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-width: 250px;
    text-align: right;
    border: 2px solid #fff;
}

.fade-in-popup {
    animation: fadeInPopup 0.4s ease forwards;
}

@@keyframes fadeInPopup {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-heart {
    font-size: 50px; /* Desktop size */
    cursor: pointer;
    filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.8)); /* Crimson glowing shadow */
    animation: pulseHeart 2s infinite ease-in-out;
    user-select: none;
    transition: transform 0.2s;
    line-height: 1;
}

    .floating-heart:active {
        transform: scale(0.9) !important;
    }

@@keyframes pulseHeart {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.8));
    }

    50% {
        transform: scale(1.15) rotate(5deg);
        filter: drop-shadow(0 0 25px rgba(220, 20, 60, 1));
    }

    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.8));
    }
}

/* Love Progress Bar */
.love-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 9998;
}

.love-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold) 0%, #ffdf00 100%);
    box-shadow: 0 0 15px var(--gold);
    transition: width 0.1s ease-out;
}

.love-progress-text {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-family: 'Tajawal', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    z-index: 9998;
    pointer-events: none;
    transition: color 0.3s, text-shadow 0.3s;
}

</style >
<style >
/* تنسيق صندوق الإشعار */
#toast-container > .toast-info {
    background-color: #121212 !important; /* أسود عميق */
    color: #d4af37 !important; /* نص ذهبي */
    border: 1px solid #d4af37 !important; /* إطار ذهبي نحيف */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
    opacity: 1;
}

/* تنسيق شريط التقدم (الذي يقل مع الوقت) */
#toast-container > .toast-info .toast-progress {
    background-color: #d4af37 !important; /* شريط تقدم ذهبي */
    height: 3px;
}

/* تنسيق عنوان الإشعار */
.toast-title {
    font-weight: bold;
    color: #ffffff !important; /* العنوان أبيض ليميزه عن الرسالة الذهبية */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 5px;
    padding-bottom: 5px;
}

/* دفع الإشعار قليلاً للأسفل لكي لا يلتصق بحافة المتصفح */
#toast-container {
    top: 60px !important;
}

    #toast-container > .toast-info {
        background-color: #1a1a1a;
        color: #d4af37;
        border: 1px solid #d4af37;
        opacity: 1;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }

.toast-progress {
    background-color: #d4af37 !important;
}

.bug-fixer-container {
    text-align: center;
    margin: 50px 0;
}

.bug-fixer-btn {
    background: linear-gradient(45deg, #d4af37, #b8860b); /* تدرج ذهبي */
    color: #000;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

    .bug-fixer-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
        background: linear-gradient(45deg, #b8860b, #d4af37);
    }


.timeline-image-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.timeline-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.timeline-content:hover .timeline-img {
    transform: scale(1.05);
}

@@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;700&display=swap');

:root {
    --royal-black: #0a0a0a;
    --royal-bg: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    --gold: #d4af37;
    --transparent-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(212, 175, 55, 0.3); /* Goldish transparent border */
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--royal-black);
}

.elegant-birthday-container {
    background: var(--royal-bg);
    min-height: 100vh;
    color: white;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.content-wrapper {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Star Background */
.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--gold);
    animation: fall linear infinite;
    opacity: 0.8;
}

@@keyframes fall {
    0% {
        transform: translateY(-10vh) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) scale(0.5);
        opacity: 0;
    }
}

/* Fade In Animations */
.fade-in-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

.delay-3 {
    animation-delay: 1.2s;
}

.delay-4 {
    animation-delay: 1.6s;
}

.delay-5 {
    animation-delay: 2.0s;
}

.delay-6 {
    animation-delay: 2.4s;
}

.delay-7 {
    animation-delay: 2.8s;
}

@@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 50px;
}

.royal-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.royal-subtitle {
    font-size: 2.2rem;
    color: #f0f0f0;
    margin-top: 15px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Countdown Setup */
.countdown-section {
    margin-bottom: 60px;
    width: 100%;
    max-width: 600px;
}

.countdown-timer {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row-reverse; /* RTL Support */
}

.time-box {
    background: var(--transparent-white);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px 15px;
    flex: 1;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s;
}

    .time-box:hover {
        transform: translateY(-5px);
        border-color: var(--gold);
    }

.time-value {
    display: block;
    font-size: 2.8rem;
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    line-height: 1.2;
}

.time-label {
    font-size: 1.1rem;
    color: #ddd;
    font-weight: 300;
}

/* Glassmorphism Card */
.message-section {
    width: 100%;
    max-width: 850px;
    margin-bottom: 70px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
}

    .glass-card::before {
        content: "♥";
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 40px;
        color: var(--gold);
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }

.message-text {
    font-size: 1.8rem;
    line-height: 1.9;
    color: #fdfdfd;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 300;
}

/* Timeline Section */
.timeline-section {
    width: 100%;
    max-width: 900px;
    margin-bottom: 70px;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

    .timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--gold);
        top: 0;
        bottom: 0;
        right: 50%;
        margin-right: -1px;
    }

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

    .timeline-item.right {
        right: 0;
    }

    .timeline-item.left {
        right: 50%;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        background-color: var(--royal-black);
        border: 3px solid var(--gold);
        top: 20px;
        border-radius: 50%;
        z-index: 1;
        transition: background-color 0.4s, box-shadow 0.4s;
    }

    .timeline-item.right::after {
        left: -8px; /* على الخط بالمنتصف */
    }

    .timeline-item.left::after {
        right: -8px; /* على الخط بالمنتصف */
    }

    .timeline-item:hover::after {
        background-color: var(--gold);
        box-shadow: 0 0 15px var(--gold);
    }

.timeline-content {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05); /* زجاجي شفاف */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    position: relative;
    border-radius: 15px;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.timeline-date {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    display: block;
    margin-bottom: 10px;
    transition: color 0.4s, text-shadow 0.4s;
}

.timeline-item:hover .timeline-date {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.timeline-icon {
    margin-right: 10px;
    font-size: 1.4rem;
    vertical-align: middle;
}

.timeline-title {
    color: var(--gold);
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.timeline-description {
    color: #ddd;
    margin: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.timeline-code {
    margin-top: 15px;
    background: #1e1e1e;
    padding: 12px;
    border-radius: 8px;
    border-right: 3px solid var(--gold);
    font-family: 'Consolas', 'Courier New', monospace;
    text-align: left;
    direction: ltr; /* اتجاه الكود إنجليزي */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Gallery Section */
.gallery-section {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

.gallery-title {
    color: var(--gold);
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
}

.image-wrapper {
    border: 2px solid var(--gold);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background-color: #1a1a1a;
    aspect-ratio: 1; /* جعل الصور مربعة */
    position: relative;
}

    .image-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
        pointer-events: none;
    }

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

    .image-wrapper:hover {
        transform: scale(1.05) translateY(-10px);
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
        border-color: #fff;
    }

        .image-wrapper:hover img {
            transform: scale(1.15);
        }

/* Terminal Section */
.terminal-section {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    margin-bottom: 70px;
    text-align: center;
}

.terminal-window {
    background-color: #0c0c0c;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.4);
    overflow: hidden;
    text-align: left;
}

.terminal-body {
    padding: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    color: #00ff00; /* Classic Terminal Green */
    min-height: 250px;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    white-space: pre-wrap;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: #00ff00;
}

@@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Roadmap Section */
.roadmap-section {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    margin-bottom: 70px;
}

.editor-window {
    background-color: #1e1e1e;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.editor-header {
    background-color: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
    direction: ltr; /* English OS style window buttons */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.header-red {
    background-color: #ff5f56;
}

.header-yellow {
    background-color: #ffbd2e;
}

.header-green {
    background-color: #27c93f;
}

.editor-title {
    color: #858585;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.editor-body {
    padding: 30px;
    text-align: right;
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #fff;
    opacity: 0;
    animation: checkmark-anim 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

    /* Staggered animation for checklist to show one by one */
    .roadmap-item:nth-child(1) {
        animation-delay: 2.2s;
    }

    .roadmap-item:nth-child(2) {
        animation-delay: 2.8s;
    }

    .roadmap-item:nth-child(3) {
        animation-delay: 3.4s;
    }

    .roadmap-item:nth-child(4) {
        animation-delay: 4.0s;
    }

    .roadmap-item:nth-child(5) {
        animation-delay: 4.6s;
    }

@@keyframes checkmark-anim {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.task-icon {
    margin-left: 15px;
    font-size: 1.6rem;
    filter: drop-shadow(0 0 5px var(--gold));
}

.task-done .task-text {
    color: #fdfdfd;
    font-weight: bold;
}

.task-pending .task-text {
    color: #ddd;
}

.editor-footer-text {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px dashed #444;
    font-size: 1.4rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    line-height: 1.8;
    opacity: 0;
    animation: checkmark-anim 0.7s forwards;
    animation-delay: 5.5s; /* تظهر في النهاية */
    font-weight: 700;
    text-align: center;
}

/* Easter Egg Section */
.easter-egg-section {
    margin-top: 60px;
    margin-bottom: 100px;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.gold-button {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: 'Consolas', 'Courier New', monospace;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

    .gold-button:hover {
        background: var(--gold);
        color: var(--royal-black);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
        transform: translateY(-3px);
    }

.heart-code-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.8s ease;
    margin-top: 30px;
}

    .heart-code-container.show {
        max-height: 500px;
        opacity: 1;
    }

.heart-editor {
    text-align: left !important;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
}

.code-body {
    padding: 20px !important;
    background-color: #1e1e1e;
    overflow-x: auto;
}

.line {
    display: flex;
    white-space: pre;
}

.line-number {
    color: #858585;
    padding-right: 20px;
    user-select: none;
    width: 30px;
    text-align: right;
    border-right: 1px solid #444;
    margin-right: 15px;
}

/* Syntax Highlighting CSS */
.keyword {
    color: #569cd6;
}
/* الأزرق الكلاسيكي */
.type {
    color: #4ec9b0;
}
/* الأخضر الفاتح */
.variable {
    color: #9cdcfe;
}
/* الأزرق الفاتح */
.string {
    color: #ce9178;
}
/* البرتقالي */
.comment {
    color: #6a9955;
    font-family: 'Tajawal', 'Consolas', monospace;
    font-style: italic;
}
/* أخضر للتعليقات */

/* Responsive Adjustments */
@@media (max-width: 768px) {
    .elegant-birthday-container {
        padding: 40px 15px;
    }

    .royal-title {
        font-size: 3.5rem;
    }

    .royal-subtitle {
        font-size: 1.6rem;
    }

    .countdown-timer {
        gap: 10px;
    }

    .time-box {
        min-width: 70px;
        padding: 15px 10px;
    }

    .time-value {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 40px 25px;
    }

    .message-text {
        font-size: 1.4rem;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .timeline::after {
        right: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-right: 70px;
        padding-left: 20px;
    }

        .timeline-item.left {
            right: 0;
        }

            .timeline-item.right::after, .timeline-item.left::after {
                right: 23px;
            }

    .terminal-body {
        font-size: 1.1rem;
        padding: 20px;
    }

    .roadmap-item {
        font-size: 1.1rem;
    }

    .editor-body {
        padding: 20px;
    }

    .editor-footer-text {
        font-size: 1.2rem;
    }

    .gold-button {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    .heart-editor {
        font-size: 1rem;
    }

    .floating-heart-container {
        bottom: 20px;
        right: 20px;
    }

    .floating-heart {
        font-size: 40px; /* Mobile size */
    }

    .love-tooltip {
        font-size: 1.1rem;
        max-width: 200px;
    }
}

/* Floating Heart Section */
.floating-heart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.love-tooltip {
    background: rgba(212, 175, 55, 0.95); /* Gold background */
    color: #000;
    padding: 15px 20px;
    border-radius: 20px 20px 0 20px; /* Rounded bubble matching RTL placement */
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-width: 250px;
    text-align: right;
    border: 2px solid #fff;
}

.fade-in-popup {
    animation: fadeInPopup 0.4s ease forwards;
}

@@keyframes fadeInPopup {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-heart {
    font-size: 50px; /* Desktop size */
    cursor: pointer;
    filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.8)); /* Crimson glowing shadow */
    animation: pulseHeart 2s infinite ease-in-out;
    user-select: none;
    transition: transform 0.2s;
    line-height: 1;
}

    .floating-heart:active {
        transform: scale(0.9) !important;
    }

@@keyframes pulseHeart {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.8));
    }

    50% {
        transform: scale(1.15) rotate(5deg);
        filter: drop-shadow(0 0 25px rgba(220, 20, 60, 1));
    }

    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.8));
    }
}

/* Love Progress Bar */
.love-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 9998;
}

.love-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold) 0%, #ffdf00 100%);
    box-shadow: 0 0 15px var(--gold);
    transition: width 0.1s ease-out;
}

.love-progress-text {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-family: 'Tajawal', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    z-index: 9998;
    pointer-events: none;
    transition: color 0.3s, text-shadow 0.3s;
}
