.no-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;      /* Internet Explorer/Edge */
  user-select: none;         /* Standard syntax */
}

body {
  -webkit-user-select: none;
  user-select: none;
}
    
:root {
    --scrollbar-bg: #ffffff; 
    --scrollbar-thumb: #000000; 
}

body.dark-mode {
    --scrollbar-bg: #1A1D24; 
    --scrollbar-thumb: #ffffff;
    user-select: none;
}
    
::-webkit-scrollbar {
    width: 0.7vw;
    background-color: var(--scrollbar-bg);
    transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 60px;
    border: 2px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color); 
}
    
/* --- CSS Variables (Monochrome Theme) --- */
:root {
    --bg-color-light: #ffffff;
    --text-color-light: #000000;
    --text-muted-light: #555555;
    --card-bg-light: #f8f9fa;
    --border-light: #e0e0e0;
    
    --bg-color-dark: #000000;
    --text-color-dark: #ffffff;
    --text-muted-dark: #cccccc;
    --card-bg-dark: #1e1e1e;
    --border-dark: #333333;
    
    /* Primary set to Black for light mode */
    --primary-color: #000000; 
    --primary-hover: #333333;
    --bar-empty: #e9ecef;
    
    --transition-speed: 0.4s;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Dark Mode Override */
body.dark-mode {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
    --card-bg-light: var(--card-bg-dark);
    --text-muted-light: var(--text-muted-dark);
    --border-light: var(--border-dark);
    --bar-empty: #333333;
    /* Primary set to White for dark mode */
    --primary-color: #ffffff;
    --primary-hover: #cccccc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Reduced padding for smaller gaps between sections */
section {
    padding: 80px 0; 
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px; /* Reduced margin */
    color: var(--text-color-light);
    position: relative;
    display: inline-block;
}

body.dark-mode .section-title {
    color: var(--text-color-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

section:hover .section-title::after {
    width: 100%;
}

/* --- Navbar --- */
header.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

body.dark-mode header.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    color: #000000;
}

body.dark-mode .nav-links li a {
    color: #ffffff;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* --- Home / Hero Section --- */
#home {
    padding-top: 150px;
    position: relative;
    background-image: radial-gradient(circle at right, rgba(0, 0, 0, 0.04) 0%, transparent 50%);
}

body.dark-mode #home {
    background-image: radial-gradient(circle at right, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
}

/* Particles container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap-reverse;
    gap: 50px;
    position: relative;
    z-index: 1; /* Keep content above particles */
}

.hero-text {
    flex: 1;
    min-width: 300px;
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
}

.hero-text h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color-light);
}

body.dark-mode .hero-text h1 {
    color: var(--text-color-dark);
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 5px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: background-color 0.3s, transform 0.3s, color 0.3s;
}

body.dark-mode .btn-download {
    color: #000000;
}

.btn-download i {
    margin-left: 10px;
}

.btn-download:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    color: #ffffff;
}

body.dark-mode .btn-download:hover {
    color: #000000;
}

/* Contact Info Card Design */
.contact-card {
    background-color: var(--card-bg-light);
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s, background-color var(--transition-speed), border-color var(--transition-speed);
    display: inline-block;
}

body.dark-mode .contact-card {
    background-color: var(--card-bg-dark);
    box-shadow: 0 4px 20px rgba(255,255,255,0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

body.dark-mode .contact-card:hover {
    box-shadow: 0 12px 30px rgba(255,255,255,0.08);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-info-list li i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
    animation: slideInRight 1s ease forwards;
    opacity: 0;
}

.img-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    padding: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    background-color: #000000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: box-shadow var(--transition-speed);
}

body.dark-mode .img-wrapper {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Timeline (Experience & Education) --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    display: flex;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: 4px solid var(--bg-color-light);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    transition: border-color var(--transition-speed), color var(--transition-speed);
}

body.dark-mode .timeline-item::after {
    border-color: var(--bg-color-dark);
    color: #000000;
}

.left {
    left: 0;
    text-align: right;
    justify-content: flex-end;
}

.right {
    left: 50%;
    justify-content: flex-start;
}

.right::after {
    left: -15px;
    content: '\f053';
}

.timeline-content {
    padding: 30px;
    background-color: var(--card-bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    border-top: 4px solid var(--primary-color);
    width: 100%;
    flex: 1;
    transition: transform 0.3s, box-shadow 0.3s, background-color var(--transition-speed);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

body.dark-mode .timeline-content:hover {
    box-shadow: 0 8px 25px rgba(255,255,255,0.05);
}

.timeline-date {
    font-weight: 600;
    color: var(--text-muted-light);
    margin-bottom: 5px;
    display: inline-block;
}

.timeline-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

/* --- Elegant Card Wrapper for Skills & Languages --- */
.elegant-card {
    background-color: var(--card-bg-light);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    transition: all var(--transition-speed);
    width: 100%;
}

/* --- Skills & Languages --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: var(--bar-empty);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

body.dark-mode .progress-bar-container {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0; 
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
    position: relative;
}

/* --- Certificates --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.cert-card {
    background-color: var(--card-bg-light);
    padding: 35px 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s, background-color var(--transition-speed);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.cert-card.show {
    opacity: 1;
    transform: translateY(0);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

body.dark-mode .cert-card:hover {
    box-shadow: 0 12px 30px rgba(255,255,255,0.08);
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-provider {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 5px;
}

.cert-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.cert-id {
    font-size: 0.85rem;
    margin-top: auto;
}

/* --- Scanned Certificates Images Grid --- */
.scanned-certs-title {
    font-size: 1.5rem;
    margin-top: 60px; /* Reduced gap */
    margin-bottom: 30px;
    color: var(--text-color-light);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark-mode .scanned-certs-title {
    color: var(--text-color-dark);
}

.cert-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.cert-image-card {
    background-color: var(--card-bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(30px);
    aspect-ratio: 4 / 3;
    position: relative;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.cert-image-card.show {
    opacity: 1;
    transform: translateY(0);
}

.cert-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

body.dark-mode .cert-image-card:hover {
    box-shadow: 0 15px 35px rgba(255,255,255,0.08);
}

.cert-image-card:hover img {
    transform: scale(1.08);
}

/* --- Image Lightbox (Zoom Modal) --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal .close-modal {
    position: absolute;
    top: 30px;
    left: 40px; 
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.image-modal .close-modal:hover {
    background: var(--primary-color);
    color: #ffffff;
}

body.dark-mode .image-modal .close-modal:hover {
    color: #000000;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.modal-content.zoom-in {
    transform: scale(1);
}

.modal-content.zoom-out {
    transform: scale(0);
}

/* --- Custom Video Player --- */
.video-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 60px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--border-light);
    background-color: #000;
}

body.dark-mode .video-wrapper {
    border-color: var(--border-dark);
    box-shadow: 0 15px 40px rgba(255,255,255,0.05);
}

.video-wrapper video {
    width: 100%;
    display: block;
    cursor: pointer;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 30px 20px 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

/* --- Video Progress Bar Styles --- */
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
}

#video-progress {
    flex-grow: 1;
    cursor: pointer;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

#video-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

#video-progress::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

body.light-mode #video-progress::-webkit-slider-thumb {
    background: var(--primary-color);
}

.video-controls.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    outline: none;
}

.control-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

body.dark-mode .control-btn:hover {
    color: #000000;
}

/* --- Floating Buttons --- */
.floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.floating-btn:hover {
    transform: scale(1.1);
}

#theme-toggle {
    bottom: 30px;
    left: 30px;
    background-color: var(--text-color-light);
    color: var(--bg-color-light);
}

body.dark-mode #theme-toggle {
    background-color: #ffffff;
    color: #121212;
}

#back-to-top {
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

body.dark-mode #back-to-top {
    color: #000000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Mobile Overlay Menu --- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1E1E1E;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    clip-path: circle(0% at top right);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    clip-path: circle(150% at top right);
}

.mobile-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-links li a {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease;
}

body.dark-mode .mobile-links li a {
    color: #ffffff;
}

.mobile-overlay.open .mobile-links li a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-overlay.open .mobile-links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-links li:nth-child(2) a { transition-delay: 0.2s; }
.mobile-overlay.open .mobile-links li:nth-child(3) a { transition-delay: 0.3s; }
.mobile-overlay.open .mobile-links li:nth-child(4) a { transition-delay: 0.4s; }
.mobile-overlay.open .mobile-links li:nth-child(5) a { transition-delay: 0.5s; }
.mobile-overlay.open .mobile-links li:nth-child(6) a { transition-delay: 0.6s; }

.mobile-links li a:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* --- Animations --- */
@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    section { padding: 60px 0; }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .contact-info-list li {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
        position: absolute;
        right: 30px;
        color: var(--text-color-light);
    }
    body.dark-mode .menu-btn { color: var(--text-color-dark); }
    
    .nav-container { justify-content: flex-start; padding-left: 20px;}
    
    .skills-grid, .cert-grid { 
        grid-template-columns: 1fr; 
        width: 100%;
    }
    
    .cert-images-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
        width: 100%;
    }

    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    .timeline-item.left::after, .timeline-item.right::after { left: 15px; }
    .timeline-item.left { justify-content: flex-start; }

    .elegant-card {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .cert-card {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 500px) {
    .hero-text h1 { font-size: 2.5rem; }
    .img-wrapper { width: 300px; height: 300px; }
    section { padding: 50px 0; }
    
    .cert-images-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }

    .elegant-card, .cert-card, .cert-image-card {
        width: 100%;
    }

    .image-modal .close-modal {
        top: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

#fullscreen-btn {
    position: absolute; /* يبقى ثابتاً أثناء التمرير */
    top: 6px;      /* المسافة من الأعلى */
    left: 6px;    /* المسافة من اليمين */
    z-index: 99999;  /* لضمان ظهوره فوق كل العناصر */
    background: rgba(0, 0, 0, 0.0); /* خلفية شبه شفافة */
    color: #999999;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.hidden-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-20px); 
} /* <--- تم وضع القوس الناقص هنا لمنع أي أعطال */

#fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

:-webkit-full-screen-visual-content {
    display: none;
}
