:root {
    --bg-color: #050505;
    --text-primary: #fff;
    --text-secondary: #a1a1aa;
    --accent-red: #d90429;
    --dark-red: #3a0007;
    --border-color: #1f1f22;
    --glow-color: #d9042966
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-user-select: none;
    user-select: none;
    font-family: Inter, sans-serif;
    line-height: 1.5;
    overflow-x: hidden
}

img {
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none
}

.top-bar {
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    font-size: .75rem;
    display: flex
}

.hero {
    border-bottom: 1px solid var(--border-color);
    background: #05050599;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 4.375rem);
    padding: 3.5rem 5%;
    display: flex;
    position: relative;
    overflow: hidden
}

.hero:before {
    content: "";
    background: radial-gradient(circle, var(--glow-color) 0%, #05050500 70%);
    filter: blur(90px);
    z-index: 1;
    pointer-events: none;
    width: 40vw;
    height: 40vw;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.huge-bg-text {
    color: #b00018;
    opacity: .85;
    z-index: 0;
    white-space: nowrap;
    letter-spacing: 1px;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    font-family: Bebas Neue, sans-serif;
    font-size: 26vw;
    line-height: .8;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -55%)scaleY(1.2);
    -webkit-mask-image: linear-gradient(#000 30%, #0000 80%);
    mask-image: linear-gradient(#000 30%, #0000 80%)
}

.hero-layout {
    z-index: 2;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 81.25rem;
    display: grid;
    position: relative
}

.hero-left,
.hero-right {
    z-index: 3;
    position: relative
}

.hero-left {
    grid-column: span 4
}

.hero-right {
    text-align: left;
    flex-direction: column;
    grid-column: span 3;
    justify-self: end;
    gap: 1.875rem;
    display: flex
}

.greeting {
    color: #fff;
    margin-bottom: -.625rem;
    font-family: Alex Brush, cursive;
    font-size: 2.2rem
}

.name {
    letter-spacing: 1px;
    margin-bottom: .9375rem;
    font-family: Bebas Neue, Oswald, sans-serif;
    font-size: 4.5rem;
    line-height: .95
}

.title {
    color: var(--accent-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .9375rem;
    font-size: 1.1rem;
    font-weight: 700
}

.desc {
    color: var(--text-secondary);
    margin-bottom: 1.5625rem;
    font-size: .85rem;
    line-height: 1.6
}

.location {
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: #0006;
    border-radius: 1.25rem;
    padding: .5rem 1rem;
    font-size: .75rem;
    display: inline-block
}

.hero-center {
    z-index: 2;
    grid-column: span 5;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    display: flex;
    position: relative
}

.hero-center:before {
    content: "";
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
    width: 140%;
    height: 140%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.profile-img {
    object-fit: contain;
    object-position: bottom center;
    filter: contrast(105%)brightness(95%);
    width: 100%;
    max-width: 25rem;
    height: auto;
    max-height: 60vh;
    margin: 0 auto;
    display: block;
    -webkit-mask-image: linear-gradient(#000 70%, #0000 100%);
    mask-image: linear-gradient(#000 70%, #0000 100%)
}

.tagline {
    max-width: 12.5rem;
    color: var(--text-secondary);
    align-items: flex-start;
    gap: .625rem;
    margin-bottom: .625rem;
    font-size: .8rem;
    display: flex
}

.tagline span {
    color: var(--accent-red)
}

.stat h3 {
    color: var(--accent-red);
    font-family: Oswald, sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1
}

.stat p {
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: .7rem
}

.portfolio-section,
.details-section,
.contact-section {
    border-top: 1px solid var(--border-color);
    max-width: 81.25rem;
    margin: 0 auto;
    padding: 5rem 5%
}

.text-center {
    text-align: center
}

.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    display: grid
}

.video-card {
    border: 1px solid var(--border-color);
    background: #0a0a0c;
    border-radius: .75rem;
    transition: all .4s cubic-bezier(.165, .84, .44, 1);
    position: relative;
    overflow: hidden
}

.video-card:hover {
    border-color: #d9042999;
    transform: translateY(-6px);
    box-shadow: 0 10px 30px #d9042940, 0 0 15px #d9042926
}

/* تم تعديل نسبة العرض هنا لتناسب الفيديوهات الرأسية 177.78% بدلاً من 56.25% */
.video-thumb-wrapper {
    cursor: pointer;
    background: #000;
    width: 100%;
    padding-top: 177.78%;
    position: relative
}

.video-thumb-wrapper video,
.video-thumb-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform .4s;
    position: absolute;
    top: 0;
    left: 0
}

.video-thumb-wrapper video {
    background: #000
}

.video-card:hover .video-thumb-wrapper img {
    transform: scale(1.05)
}

.play-btn {
    color: #fff;
    background: #d90429e6;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    transition: transform .3s;
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #d90429cc
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%)scale(1.15)
}

.player-overlay {
    z-index: 5;
    width: 100%;
    height: 80%;
    position: absolute;
    top: 0;
    left: 0
}

.video-info {
    padding: 1.25rem
}

.video-info h4 {
    letter-spacing: .5px;
    margin-bottom: .25rem;
    font-size: 1rem
}

.video-info span {
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .75rem
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.75rem;
    display: grid
}

.section-title {
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.875rem;
    font-family: Oswald, sans-serif;
    font-size: 1.25rem
}

.red-text {
    color: var(--accent-red);
    letter-spacing: 1px;
    margin-bottom: .9375rem;
    font-size: .85rem
}

.skills-grid {
    flex-wrap: wrap;
    gap: .625rem;
    display: flex
}

.skills-grid span {
    border: 1px solid var(--border-color);
    letter-spacing: 1px;
    background: #0a0a0c;
    border-radius: .25rem;
    padding: .5rem .875rem;
    font-size: .75rem;
    transition: all .3s
}

.skills-grid span:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 0 15px #d9042966
}

.process-list {
    list-style: none
}

.process-list li {
    gap: 1.25rem;
    margin-bottom: 1.5625rem;
    display: flex
}

.step-num {
    color: var(--accent-red);
    font-family: Oswald, sans-serif;
    font-size: 1.1rem;
    font-weight: 700
}

.process-list h4 {
    letter-spacing: 1px;
    margin-bottom: .25rem;
    font-size: .95rem
}

.process-list p {
    color: var(--text-secondary);
    font-size: .85rem
}

.contact-section {
    background: linear-gradient(135deg, #050505 0%, var(--dark-red) 100%);
    border-radius: .75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    display: flex
}

.contact-left h2 {
    letter-spacing: 1px;
    margin-bottom: .9375rem;
    font-family: Bebas Neue, Oswald, sans-serif;
    font-size: 2.8rem;
    line-height: 1
}

.contact-left p {
    color: var(--text-secondary);
    max-width: 25rem;
    margin-bottom: 1.5625rem;
    font-size: .85rem
}

.freelance-btn {
    color: var(--accent-red);
    letter-spacing: 1px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block
}

.contact-right ul {
    color: var(--text-secondary);
    flex-direction: column;
    gap: .9375rem;
    font-size: .85rem;
    list-style: none;
    display: flex
}

.fade-in {
    opacity: 0;
    transition: opacity .6s ease-out, transform .6s ease-out;
    transform: translateY(1.25rem)
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .3s
}

.contact-link:hover {
    color: var(--accent-red)
}

.contact-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    display: flex
}

.wa-btn {
    background: var(--accent-red);
    color: #fff;
    border-radius: .25rem;
    padding: .2rem .6rem;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .3s
}

.wa-btn:hover {
    opacity: .85
}

.copyright-bar {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
    padding: 1.5rem 5%;
    font-size: .75rem
}

@media (width<=62.4375rem) {
    .hero {
        min-height: auto;
        padding: 2rem 1.25rem
    }

    .hero-layout {
        text-align: center;
        grid-template-columns: 1fr;
        gap: 1.5rem
    }

    .hero-left {
        grid-column: span 1;
        max-width: 100%;
        margin: 0 auto
    }

    .greeting {
        margin-bottom: 0
    }

    .name {
        font-size: 3.2rem
    }

    .hero-center {
        order: -1;
        grid-column: span 1;
        margin-bottom: .5rem
    }

    .profile-img {
        max-width: 15rem;
        max-height: 38vh
    }

    .hero-right {
        text-align: center;
        flex-flow: wrap;
        grid-column: span 1;
        justify-content: center;
        justify-self: center;
        gap: 1.25rem
    }

    .tagline {
        justify-content: center;
        width: 100%;
        max-width: 100%
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .contact-section {
        text-align: center;
        flex-direction: column;
        gap: 1.875rem
    }

    .contact-left p {
        margin: 0 auto 1.25rem
    }

    .huge-bg-text {
        opacity: .4;
        font-size: 22vw;
        top: 12%;
        transform: translate(-50%)scaleY(1.1)
    }
}

.video-thumb-wrapper:fullscreen {
    padding-top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}

/* ========================================= */
/* إضافات حركة العلامة المائية (Watermark) */
/* ========================================= */

/* 1. حركة العادية (تتحرك حركة خفيفة ومستمرة في الزاوية) */
@keyframes wm-float {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-15px, -15px); }
    50% { transform: translate(15px, 15px); }
    75% { transform: translate(-15px, 15px); }
    100% { transform: translate(0, 0); }
}

.watermark {
    animation: wm-float 6s ease-in-out infinite !important;
}

@keyframes wm-vertical-roam {
    0%   { transform: translate(-50%, -50%) translateY(0); }
    25%  { transform: translate(-50%, -50%) translateY(38vh); }   
    50%  { transform: translate(-50%, -50%) translateY(-25vh); } 
    75%  { transform: translate(-50%, -50%) translateY(15vh); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

.video-thumb-wrapper:fullscreen .watermark {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    animation: wm-vertical-roam 12s ease-in-out infinite !important;
    font-size: 1.6rem !important;
    padding: 15px 25px !important;
    opacity: 0.9 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(217, 4, 41, 0.8) !important;
}