/* Reset بسيط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* الخط */
body {
    font-family: "Tajawal", sans-serif;
    background: #111111;
    color: #F5F5F0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* الخلفية المحسنة */
#background-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.background-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-item.active {
    opacity: 1;
}

/* الفيديو داخل الخلفية */
.background-item video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* بلور مخصص للصور */
.background-item.image-bg {
    filter: blur(2px) brightness(0.85);
}

/* بلور مخصص للفيديو */
.background-item.video-bg video {
    filter: blur(4px) brightness(0.75) contrast(1.1);
}

/* overlay متدرج */
.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(17, 17, 17, 0.75) 0%,
            rgba(34, 34, 34, 0.55) 50%,
            rgba(17, 17, 17, 0.75) 100%);
    z-index: -1;
}

/* زخارف خفيفة */
.decorative-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    animation: slide 15s linear infinite;
}

.line-1 {
    width: 100%;
    height: 1px;
    top: 20%;
    animation-delay: 0s;
}

.line-2 {
    width: 100%;
    height: 1px;
    top: 50%;
    animation-delay: 5s;
}

.line-3 {
    width: 100%;
    height: 1px;
    top: 80%;
    animation-delay: 10s;
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* top bar محسن */
.topbar {
    text-align: center;
    padding: 2.5rem 0 1rem;
    position: relative;
    z-index: 10;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo {
    width: 120px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.brand {
    color: #D4AF37;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.4);
    margin-bottom: 1rem;
}

.header-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 0 auto;
    animation: expandLine 1.5s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

/* center message محسن */
.center-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.message-content {
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #F5F5F0;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 0 1rem;
}

.title-underline {
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 1rem auto 0;
    animation: expandUnderline 1.5s ease-out 0.8s both;
}

@keyframes expandUnderline {
    from {
        width: 0;
    }

    to {
        width: 60%;
    }
}

.subtitle {
    margin-top: 1.5rem;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #D4AF37;
    font-weight: 500;
    text-shadow: 0 2px 15px rgba(212, 175, 55, 0.3);
    letter-spacing: 1px;
    line-height: 1.6;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #D4AF37;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* footer محسن */
.footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    z-index: 10;
}

.footer-content {
    animation: fadeInUp 1s ease-out 0.5s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.designed-by {
    font-size: 0.9rem;
    color: rgba(245, 245, 240, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.portfolio-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #111111;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #D4AF37 0%, #F5EFD8 50%, #D4AF37 100%);
    background-size: 200% 100%;
    border: 2px solid #D4AF37;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 4px 15px rgba(212, 175, 55, 0.4),
            0 0 30px rgba(212, 175, 55, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow:
            0 6px 25px rgba(212, 175, 55, 0.6),
            0 0 50px rgba(212, 175, 55, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.button-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 200%;
    }
}

.button-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: "Playfair Display", serif;
}

.designer-icon {
    font-size: 0.9rem;
    animation: rotate-icon 3s linear infinite;
    display: inline-block;
}

@keyframes rotate-icon {

    0%,
    90% {
        transform: rotate(0deg);
    }

    95% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-arrow {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    font-weight: 700;
}

.portfolio-button:hover {
    transform: translateY(-5px) scale(1.05);
    background-position: 100% 0;
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.6),
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: #F5EFD8;
}

.portfolio-button:hover .button-arrow {
    transform: translateX(5px);
}

.portfolio-button:active {
    transform: translateY(-3px) scale(1.02);
}

.footer-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin-top: 1rem;
}

/* fade animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .topbar {
        padding: 2rem 0 0.8rem;
    }

    .logo {
        width: 90px;
    }

    .logo-glow {
        width: 110px;
        height: 110px;
    }

    .brand {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 1rem;
    }

    .portfolio-button {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }

    .footer {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 70px;
    }

    .brand {
        font-size: 1.2rem;
    }

    .designed-by {
        font-size: 0.75rem;
    }

    .portfolio-button {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
        gap: 0.7rem;
    }

    .button-arrow {
        font-size: 1.1rem;
    }
}

/* تحسين الأداء */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}