
/* 1. Root Variables & Theme */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --accent2: #22c55e;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #8a0177;
    --text-muted: #006aff;
    --white: #ffffff;

    --shadow-sm: 0 5px 15px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 40px rgba(79,70,229,0.15);

    --purple-grad: linear-gradient(135deg,#4f46e5,#3730a3);
    --blue-grad: linear-gradient(135deg,#06b6d4,#3b82f6);
    --pink-grad: linear-gradient(135deg,#f472b6,#ec4899);

    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hero-btns {
    display: flex;
    gap: 20px; 
    flex-wrap: wrap; 
    margin-top: 30px;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* يخلي الفيديو خلف المحتوى */
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* يملأ الشاشة بدون ظهور حواف فارغة */
  filter: brightness(0.7); /* اختياري لتظليل الخلفية */
  animation: videoLoop 1s linear infinite; /* يضمن إعادة سلسة */
}

/* التأكد من تكرار الفيديو بدون تقطيع */
@keyframes videoLoop {
  0% { transform: scale(1); }
  100% { transform: scale(1); }
}
/* 2. Global Reset */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background: var(--bg); 
    color: var(--text-main); 
    line-height: 1.7; 
    overflow-x: hidden;
}

/* 3. Navigation */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 10%; 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo { 
    font-size: 2.6rem; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: -1px;
}

.logo span { color: var(--secondary); }

nav ul { display: flex; list-style: none; gap: 20px; }

nav a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 600; 
    font-size: 1.00rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition); 
}

nav a:hover { 
    background: var(--purple-grad);
    color: white;
}

/* 4. Hero Section */
.hero { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 100px 10% 140px; 
    gap: 60px; 
}
.hero-tagline {
   
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    
    
    color: #0ea5e9; 
    
    
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
    
    /* 4. تنسيقات إضافية لجمالية السطر */
    letter-spacing: 1.5px;         
    text-transform: uppercase;     
    margin-bottom: 12px;           
    display: block;                
}

.hero-content { flex: 1; }

.hero h1 {
    background: linear-gradient(
        to right, 
        #6366f1, #a855f7, #ec4899, #06b6d4, #6366f1
    );
    
   
    background-size: 200% auto;
    
    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
   
    animation: moveGradient 4s linear infinite;
    
   
    font-weight: 900;
    font-size: 60px;
    display: inline-block; 
}


@keyframes moveGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero h1 span {
    background: none;
    -webkit-text-fill-color: inherit;
    background-clip: inherit;
}

.hero h1 span { 
    background: linear-gradient(
        to right, 
        #4f46e5, #ec4899, #06b6d4, #4f46e5
    );
    
    background-size: 300% auto;
    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 300% center;
    }
}

.hero p { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    margin-bottom: 35px; 
    max-width: 600px;
}

.profile-circle { 
    width: 275px; 
    height: 275px; 
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
    overflow: hidden; 
    border: 8px solid white; 
    box-shadow: var(--shadow-lg);
    animation: morphing 10s infinite alternate;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

.profile-circle img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. Stats & Summary Bars */
.stats-bar { 
    display: flex; 
    justify-content: center; 
    gap: 60px; 
    padding: 35px; 
    background: var(--white); 
    width: 85%; 
    margin: -80px auto 30px; 
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08); 
    position: relative; 
    z-index: 10;
}

.stat-item strong { 
    display: block; 
    font-size: 1.8rem; 
    color: var(--primary); 
    line-height: 1;
}

.summary-bar {
    max-width: 85%;
    margin: 0 auto 50px;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 30px 50px !important;
    border-left: 6px solid var(--primary);
}

/* 6. Cards & Sections */
section { padding: 90px 10%; }

.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    text-align: center; 
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 5px;
    background: var(--secondary);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* About Card Images */
.about-card img:not(.uni-logo) {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* About Card */
.about-card { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    background: var(--white); 
    padding: 40px; 
    border-radius: 24px; 
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-card:hover { 
    transform: translateY(-5px); 
}

/* University Logo */
.uni-logo { 
    width: 150px;   
    height: auto; 
    border-radius: 12px;
    margin-right: 25px;
    object-fit: contain;
}
/* 7. Skills Grid */
.skill-card { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: var(--shadow-sm); 
    border-top: 4px solid var(--secondary);
    transition: var(--transition);
}

.skill-card:nth-child(2){
    border-top:4px solid var(--primary);
}

.skill-card:nth-child(3){
    border-top:4px solid var(--accent);
}

.skill-card:nth-child(4){
    border-top:4px solid var(--accent2);
}


/* 8. Projects Portfolio */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 30px; 
}

.project-card { 
    background: var(--white); 
    padding: 35px; 
    border-radius: 24px; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid #f1f5f9; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition); 
}

.project-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    border-color: var(--primary); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.project-tag { 
    display: inline-block;
    padding: 4px 12px;
    background: #eef2ff;
    color: var(--primary); 
    border-radius: 8px;
    font-size: 0.7rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
}

.proj-list { list-style: none; margin: 20px 0; }
.proj-list li { 
    margin-bottom: 8px; 
    padding-left: 25px; 
    position: relative; 
    font-size: 0.95rem;
    color: var(--text-muted);
}

.proj-list li::before { 
    content: "\f058"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    position: absolute; 
    left: 0; 
    color: var(--secondary); 
}

.proj-link { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 700; 
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    width: 100%;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--blue-grad);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-view-more:hover{
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(59,130,246,0.4);
}

/* 9. Certifications */
.certs-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 25px; 
}

.cert-item { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 20px; 
    text-align: center; 
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-item img { height: 50px; width: auto; object-fit: contain; margin-bottom: 20px; filter: grayscale(10%); transition: 0.3s; }
.cert-item:hover img { filter: grayscale(0%); transform: scale(1.1); }
.cert-item h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }

/* 10. Contact Card */
.contact-card { 
    background: var(--transition); 
    color: var(--white); 
    padding: 80px 40px; 
    border-radius: 40px; 
    text-align: center; 
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.social-links { display: flex; justify-content: center; gap: 30px; margin: 40px 0; position: relative; }
.social-links a { 
    color: var(--white); 
    font-size: 2.2rem; 
    transition: var(--transition); 
}

.social-links a:hover { 
    transform: translateY(-5px); 
    color: var(--secondary); 
}

/* 11. Buttons */
.download-btn {
    background: var(--blue-grad);
    color: #ffffff !important; 
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: 2px solid white;
    cursor: pointer; 
    position: relative;
    z-index: 5;
}

.download-btn:hover {
    background: transparent !important;
    color: white !important;
    transform: translateY(-3px);
}

.download-btn:active {
    transform: scale(0.95); 
}
.btn { 
    padding: 14px 35px; 
    background: var(--purple-grad);
    color: white; 
    text-decoration: none; 
    border-radius: 12px; 
    font-weight: 600; 
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(79,70,229,0.3);
}

.btn:hover { 
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(79,70,229,0.4);
}

.btn-outline { 
    padding: 14px 35px; 
    border: 2px solid var(--primary); 
    color: var(--primary); 
    text-decoration: none; 
    border-radius: 12px; 
    font-weight: 600; 
    transition: var(--transition);
}

.btn:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.download-btn:active {
    transform: scale(0.9) !important; 
}
/* 12. Footer */
footer { 
    text-align: center; 
    padding: 50px; 
    background: #fff;
    color: var(--text-muted); 
    font-size: 0.9rem;
}

/* 13. Responsive */
@media (max-width: 992px) {
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 60px; }
    .hero h1 { font-size: 2.8rem; }
    .stats-bar { flex-wrap: wrap; gap: 30px; }
}

@media (max-width: 768px) {
    nav ul { display: none; } /* Mobile menu can be added later */
    .about-card { flex-direction: column; text-align: center; }
    .section-title { font-size: 2rem; }
}
