:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --accent-color: #gold;
    --bg-dark: #0a0b10;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5rem 2rem 3rem;
    /* زيادة المسافة العلوية لاستيعاب الصورة */
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-out;
    margin-top: 60px;
    position: relative;
    /* ضروري جداً لتحديد حجم الصورة بالنسبة للبطاقة */
}

.profile-container {
    width: 18%;
    /* نسبة مئوية من عرض البطاقة */
    min-width: 80px;
    max-width: 120px;
    aspect-ratio: 1 / 1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.5);
    z-index: 10;
    overflow: hidden;
    /* قص أي جزء خارج الدائرة */
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50%;
    /* ضمان الشكل الدائري */
    clip-path: circle(50%);
    /* قص قسري للدائرة للضمان */
    display: block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-container:hover .profile-img {
    transform: scale(1.15);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 3rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.timer-container {
    margin-top: 2rem;
}

.loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.5px;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--glass-border);
    border-radius: 50%;
    transition: 0.3s;
}

.dot:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.footer {
    position: fixed;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    color: #555;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }
}