/*
  * =============================================
  * Base Styles & Custom Properties
  * =============================================
*/
:root {
    --primary-green: #00ff88;
    --dark-1: #0f0f0f;
    --dark-2: #1a1a1a;
    --dark-3: #252525;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--dark-1);
    color: #e0e0e0;
}

.gradient-bg {
  background-image: 
    radial-gradient(circle at 1% 1%, rgba(0, 255, 136, 0.08), transparent 30%),
    radial-gradient(circle at 99% 99%, rgba(0, 255, 136, 0.05), transparent 40%);
}


/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #00e67a; }

/*
  * =============================================
  * Reusable Components & Buttons
  * =============================================
*/
.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}
.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

.text-primary-green {
    color: var(--primary-green);
}

.nav-link {
    color: #e0e0e0;
    transition: color 0.2s ease-in-out;
}
.nav-link:hover {
    color: var(--primary-green);
}

.glowing-btn {
    position: relative;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5), 0 0 10px rgba(0, 255, 136, 0.3);
}
.glowing-btn:hover {
    color: var(--dark-1);
    background-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.6);
}

.skill-tag {
    background-color: rgb(55 65 81);
    color: rgb(209 213 219);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-tag:hover { background-color: var(--primary-green); color: black; }

.contact-input {
    width: 100%;
    background-color: rgb(55 65 81);
    border: 1px solid rgb(75 85 99);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: border-color 0.15s ease-in-out;
}
.contact-input:focus { outline: none; border-color: var(--primary-green); }

.filter-btn {
    color: rgb(209 213 219);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.15s ease-in-out;
    font-weight: 600;
}
.filter-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
.filter-btn.active { background-color: var(--primary-green); color: black; border-color: var(--primary-green); }

/*
  * =============================================
  * Section-Specific Styles
  * =============================================
*/
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

#hero img {
    width: 256px; height: 256px; object-fit: cover; margin: auto; 
}
@media (min-width: 768px) { #hero img { width: 320px; height: 320px; } }

.stat-item {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.4);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.project-card:hover {
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-5px);
}
.project-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-details { display: flex; flex-direction: column; align-items: flex-start; }
.project-category {
    background-color: rgba(0, 255, 136, 0.1);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.project-title { font-size: 1.75rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.project-summary { color: rgb(209, 213, 219); margin-bottom: 1.5rem; flex-grow: 1; }
.project-cta-btn {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.project-card:hover .project-cta-btn { background-color: var(--primary-green); color: var(--dark-1); }

@media (min-width: 768px) {
    .project-card { flex-direction: row; align-items: center; gap: 2rem; }
    .project-image { width: 40%; flex-shrink: 0; }
    .project-details { width: 60%; }
}

/*
  * =============================================
  * Mobile & Portfolio Modal Styles
  * =============================================
*/
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.mobile-menu-overlay.menu-open { opacity: 1; pointer-events: auto; }

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: var(--dark-2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu-overlay.menu-open .mobile-menu-panel { transform: translateX(0); }

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    padding: 1rem;
    width: 100%;
    text-align: center;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
}
.mobile-nav-link:hover { color: var(--primary-green); background-color: rgba(255, 255, 255, 0.05); }

/* Staggered Animation */
.mobile-menu-overlay.menu-open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu-overlay.menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.20s; }
.mobile-menu-overlay.menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu-overlay.menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.30s; }
.mobile-menu-overlay.menu-open .mobile-nav-link:nth-child(5) { transition-delay: 0.35s; }
.mobile-menu-overlay.menu-open .mobile-nav-link:nth-child(6) { transition-delay: 0.40s; }

#portfolio-modal { transition: opacity 0.3s ease-in-out; }
#modal-content { display: flex; flex-direction: column; }
#close-modal-btn {
    width: 40px; height: 40px; line-height: 40px; text-align: center;
    background: rgba(0,0,0,0.2); border-radius: 50%; transition: all 0.2s ease;
}
#close-modal-btn:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.modal-nav-btn {
    background-color: rgba(255, 255, 255, 0.1); color: white;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease-in-out;
}
.modal-nav-btn:hover { background-color: var(--primary-green); color: var(--dark-1); border-color: var(--primary-green); }
#modal-img { aspect-ratio: 16 / 10; object-fit: cover; }

#header {
  background-color: rgba(20, 20, 20, 1);
  padding: 10px;

}


#hero img {
    margin-bottom: 30px;
}
#hero{
    margin-top: 30px;
}
#modal-content {
    background-color: #1a1a1a;
}
img, video{
    margin-left: 1rem;
}