:root {
    --primary-color: #FFD700;    /* أصفر */
    --secondary-color: #1a1a1a;  /* أسود فاتح */
    --dark-bg: #111111;         /* أسود داكن */
    --text-light: #e0e0e0;      /* نص فاتح */
    --text-gray: #999999;       /* نص رمادي */
    --accent-yellow: #ffc107;   /* أصفر ثانوي */
    --glass-bg: rgba(26, 26, 26, 0.9);
}

/* Hero Section */
.projects-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
}

.text-wrapper {
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-content p {
    color: var(--text-light);
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    line-height: 1.6;

    padding: 10px 20px;
    border-radius: 5px;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 0.7),
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.4);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
}

/* Project Filters */
.project-filters {
    text-align: center;
    margin: 40px 0;
}

.filter-btn {
    background: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    margin: 0 50px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Projects Grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Project Card */
.project-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.project-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.project-card:hover .project-overlay {
    opacity: 1;
    visibility: visible;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.view-project {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
    opacity: 0;
}

.project-card:hover .view-project {
    transform: translateY(0);
    opacity: 1;
}

.view-project:hover {
    background: var(--accent-yellow);
    transform: scale(1.05);
}

.project-info {
    padding: 15px;
}

.project-info h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Coming Soon Badge */
.coming-soon::before {
    content: 'Coming Soon';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 1;
    font-weight: bold;
}

/* Project Stats */
.project-stats {
    background: var(--secondary-color);
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.project-stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .project-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .filter-btn {
        margin: 5px;
    }
} 

/* تحسينات للهواتف النقالة */
@media (max-width: 768px) {
    /* Hero Section */
    .projects-hero {
        height: 50vh;
    }

    .hero-content {
        width: 95%;
    }

    .text-wrapper {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        letter-spacing: 1px;
        padding: 8px 15px;
    }

    /* Project Filters */
    .project-filters {
        margin: 20px 0;
        padding: 0 15px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        margin: 5px;
        width: calc(50% - 10px);
    }

    /* Projects Grid */
    .projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 15px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .view-project {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Project Stats */
    .project-stats {
        padding: 40px 15px;
        margin-top: 40px;
    }

    .stat-item i {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }
}

/* تحسينات إضافية للشاشات الأصغر */
@media (max-width: 480px) {
    .projects-hero {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .filter-btn {
        width: 100%;
        margin: 5px 0;
    }

    .project-image {
        height: 180px;
    }

    .coming-soon::before {
        font-size: 0.8rem;
        padding: 4px 30px;
        right: -30px;
    }

    .stat-item {
        padding: 15px 0;
    }
}

/* تحسينات للأجهزة الصغيرة جداً */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }
}

/* Add font styles */
.projects-hero h1,
.section-title,
.project-card h3,
.filter-btn {
    font-family: 'Orbitron', sans-serif;
}

.projects-hero p,
.project-card p,
.project-meta {
    font-family: 'Rajdhani', sans-serif;
}

/* Media Queries */
/* Large Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .projects-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .project-image {
        height: 140px;
    }
}

/* Desktop (1200px to 1399px) */
@media screen and (max-width: 1399px) {
    .projects-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .project-stats .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablets and Small Laptops (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .project-stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablets (768px to 991px) */
@media screen and (max-width: 991px) {
    .projects-hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    .hero-content p {
        font-size: 1.3rem;
        padding: 8px 15px;
    }

    .filter-btn {
        padding: 8px 20px;
        margin: 0 15px;
    }

    .project-image {
        height: 120px;
    }
}

/* Large Mobile (576px to 767px) */
@media screen and (max-width: 767px) {
    .projects-container {
        grid-template-columns: repeat(1, 1fr);
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .project-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 20px;
    }

    .filter-btn {
        margin: 0;
        width: 100%;
        font-size: 0.9rem;
    }

    .project-stats {
        padding: 40px 0;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Mobile (400px to 575px) */
@media screen and (max-width: 575px) {
    .projects-hero {
        height: 45vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .project-filters {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 100px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .stat-item {
        padding: 20px 10px;
    }
}

/* Small Mobile (399px and down) */
@media screen and (max-width: 399px) {
    .projects-hero {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .project-image {
        height: 90px;
    }

    .view-project {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }
}

/* تحسينا�� للأجهزة التي تدعم hover */
@media (hover: hover) {
    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
    }

    .filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    }

    .view-project:hover {
        transform: scale(1.05) translateY(0);
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    }
}

/* تحسينات خاصة للأجهزة المحمولة */
@media screen and (max-width: 767px) {
    /* Hero Section */
    .projects-hero {
        height: 45vh;
        min-height: 300px; /* ضمان ارتفاع أدنى */
    }

    .hero-content {
        width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 15px;
        margin-bottom: 15px;
    }

    /* Project Filters */
    .project-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        margin: 15px 0;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 8px); /* عرض متساوٍ لزرين في كل صف */
        min-width: 140px;
        padding: 8px 15px;
        font-size: 0.9rem;
        margin: 0;
        text-align: center;
    }

    /* Projects Grid */
    .projects-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        max-width: 400px;
        margin: 0 auto;
    }

    .project-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }

    .project-image {
        height: 120px;
    }

    .project-info {
        padding: 12px;
    }

    .project-info h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .project-info p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    /* Project Stats */
    .project-stats {
        padding: 30px 15px;
        margin-top: 30px;
    }

    .project-stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .stat-item h3 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .stat-item p {
        font-size: 0.9rem;
    }
}

/* تحسينات إضافية للهواتف الصغيرة */
@media screen and (max-width: 480px) {
    .projects-hero {
        height: 40vh;
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .filter-btn {
        flex: 1 1 100%; /* زر واحد في كل صف */
        margin: 0;
    }

    .project-card {
        max-width: 280px;
    }

    .project-image {
        height: 90px;
    }

    .project-stats .container {
        grid-template-columns: 1fr; /* عمود واحد للإحصائيات */
        gap: 15px;
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-item h3 {
        font-size: 1.6rem;
    }
}

/* تحسينات للهواتف الصغيرة جداً */
@media screen and (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .project-card {
        max-width: 260px;
    }

    .project-image {
        height: 80px;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .view-project {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Loading and Error States */
.loading-projects {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.error-text i {
    font-size: 3rem;
    color: #e53935;
    margin-bottom: 1rem;
}

.error-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #e53935;
    margin-bottom: 1rem;
}

.error-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Project Cards */
.project-card {
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin-bottom: 30px;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.project-content {
    padding: 20px;
}

.project-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.project-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(145deg, var(--primary-color), #ffed4e);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-bg);
    text-transform: uppercase;
}

.project-title {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 0.8rem;
}

.meta-item.overdue {
    color: #F44336;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.development-progress {
    margin-top: 15px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.progress-item .label {
    color: var(--text-light);
    font-weight: 600;
    min-width: 80px;
}

.progress-item .progress-bar {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-item .progress {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-item .percentage {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.active {
    background: #4CAF50;
    color: white;
}

.status-badge.completed {
    background: #2196F3;
    color: white;
}

.status-badge.pending {
    background: #FF9800;
    color: white;
}

/* Responsive Design for Project Cards */
@media (max-width: 768px) {
    .project-content {
        padding: 15px;
    }
    
    .project-image,
    .project-placeholder {
        height: 100px;
    }
    
    .project-placeholder {
        font-size: 2rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .progress-item .label {
        min-width: auto;
    }
    
    .progress-item .percentage {
        min-width: auto;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .project-content {
        padding: 12px;
    }
    
    .project-image,
    .project-placeholder {
        height: 80px;
    }
    
    .project-placeholder {
        font-size: 1.5rem;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .meta-item {
        font-size: 0.75rem;
    }
}
