/* ==========================================
   المتغيرات والثيمات
   ========================================== */

:root {
    /* الألوان الأساسية */
    --primary: #1579e6;
    --primary-dark: #0d5cb3;
    --primary-light: #5aa7f0;
    
    /* اللون الثانوي */
    --secondary: #f7b500;
    --secondary-dark: #d49d00;
    
    /* ألوان النص */
    --text-primary: #1e2428;
    --text-secondary: #576168;
    --text-muted: #8a9199;
    
    /* ألوان الخلفية - Light Mode */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);
    
    /* التدرجات */
    --gradient-primary: linear-gradient(135deg, #1579e6 0%, #0d5cb3 100%);
    --gradient-secondary: linear-gradient(135deg, #f7b500 0%, #d49d00 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    
    /* الظلال */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(21, 121, 230, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(21, 121, 230, 0.3);
    
    /* الحدود */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    
    /* الانتقالات */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* الخطوط */
    --font-primary: 'Cairo', sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
    --text-primary: #f0f2f5;
    --text-secondary: #b8c0c8;
    --text-muted: #6b7280;
    
    --bg-primary: #0a0f1e;
    --bg-secondary: #0f1623;
    --bg-card: rgba(15, 22, 35, 0.8);
    --bg-glass: rgba(15, 22, 35, 0.6);
    
    --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #0f1623 50%, #141e2f 100%);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(21, 121, 230, 0.4);
    --shadow-glow-strong: 0 0 80px rgba(21, 121, 230, 0.5);
}

/* ==========================================
   الأساسيات
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   زر تبديل الثيم
   ========================================== */

/* Language Toggle */
.lang-toggle {
    width: 44px;
    height: 38px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.lang-text {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Theme Toggle Icons */
.navbar .theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .navbar .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .navbar .theme-toggle .fa-sun {
    display: inline-block;
    color: var(--secondary);
}

/* ==========================================
   Navbar
   ========================================== */

/* ==========================================
   Navbar المعلّق
   ========================================== */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #0d5cb3 0%, #1579e6 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    padding: 8px 12px;
    transition: var(--transition);
    box-shadow: 0 8px 40px rgba(21, 121, 230, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    width: calc(100% - 40px);
    max-width: 1100px;
}

.navbar.scrolled {
    box-shadow: 0 12px 50px rgba(21, 121, 230, 0.45);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    padding-right: 8px;
}

.logo:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.02);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 1.6rem;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition-fast);
    padding: 8px 16px;
    border-radius: 30px;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

/* أزرار Navbar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    white-space: nowrap;
}

.nav-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-btn-primary {
    background: #ffffff;
    color: #1579e6;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-btn-primary:hover {
    background: #f0f7ff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: #0d5cb3;
}

.nav-btn-primary i {
    font-size: 0.8rem;
}

/* Theme toggle في Navbar */
.navbar .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.navbar .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--secondary);
    transform: rotate(30deg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(21, 121, 230, 0.15);
    top: -20%;
    right: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(247, 181, 0, 0.1);
    bottom: -10%;
    left: 20%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(21, 121, 230, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(21, 121, 230, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 121, 230, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 0;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
}

.name {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.name .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(21, 121, 230, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-glass {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.btn-glass:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(21, 121, 230, 0.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.profile-card {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, #1579e6 0%, #0d5cb3 100%);
    padding: 3px;
    box-shadow: 0 0 40px rgba(21, 121, 230, 0.4), 0 0 80px rgba(21, 121, 230, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 121, 230, 0.25) 0%, transparent 60%);
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.profile-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #0a0f1e;
}

.profile-image img {
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(21, 121, 230, 0.3);
}

.profile-image i {
    font-size: 8rem;
    color: var(--primary);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary);
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icons .fa-github { top: 20%; right: 10%; animation-delay: 0s; }
.floating-icons .fa-linkedin { bottom: 20%; right: 20%; animation-delay: 1.3s; }
.floating-icons .fa-instagram { top: 30%; left: 15%; animation-delay: 2.6s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* ==========================================
   الأقسام العامة
   ========================================== */

section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ==========================================
   About Section
   ========================================== */

.about {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(21, 121, 230, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* النصوص */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-intro {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-intro:hover {
    transform: translateX(-8px);
    border-color: rgba(21, 121, 230, 0.3);
    box-shadow: var(--shadow-md);
}

.intro-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.intro-icon i {
    font-size: 1.3rem;
    color: white;
}

.about-intro p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin: 0;
}

.about-intro p strong {
    color: var(--primary);
    font-weight: 700;
}

/* البطاقات الجانبية */
.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* الإحصائيات */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    background: var(--bg-card);
    padding: 20px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(21, 121, 230, 0.3);
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* البطاقات */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 28px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(21, 121, 230, 0.3);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-glow);
}

.card-icon i {
    font-size: 1.3rem;
    color: white;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-weight: 700;
}

.card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 6px 0;
}

/* بطاقة الاقتباس */
.quote-card {
    background: linear-gradient(135deg, #0d5cb3 0%, #1579e6 100%);
    border: none;
    padding: 32px;
}

.quote-card .quote-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 16px;
}

.quote-text {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 12px;
}

.quote-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.quote-card p {
    font-size: 1.2rem;
    color: white;
    font-style: italic;
    line-height: 1.8;
}

/* ==========================================
   Services Section
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ==========================================
   Projects Section
   ========================================== */

.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-glow);
}

.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.project-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
}

.project-content {
    padding: 32px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 8px 16px;
    background: rgba(21, 121, 230, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   GitHub Section
   ========================================== */

.github-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.repo-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.repo-card:hover {
    border-color: var(--primary);
    transform: translateX(-8px);
    box-shadow: var(--shadow-glow);
}

.repo-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.repo-card h4 i {
    font-size: 1rem;
}

.repo-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.repo-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.repo-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.github-link {
    text-align: center;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 60px;
}

.loading i {
    font-size: 3rem;
    color: var(--primary);
}

/* ==========================================
   Testimonials Section
   ========================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 40px 36px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: rgba(21, 121, 230, 0.05);
    transform: translateX(-8px);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-info a:hover {
    color: var(--primary);
}

.contact-cta {
    background: var(--gradient-primary);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-glow-strong);
    color: white;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cta-icon i {
    font-size: 3rem;
    color: white;
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo i {
    font-size: 1.6rem;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.social-links a i {
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ==========================================
   Scroll Reveal
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .profile-card {
        width: 320px;
        height: 320px;
    }

    .name {
        font-size: 3rem;
    }

    .stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-card {
        padding: 24px 16px;
    }

    .contact-item {
        padding: 16px;
        gap: 14px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .contact-icon i {
        font-size: 1.3rem;
    }

    .contact-info h3 {
        font-size: 1rem;
    }

    .contact-cta {
        padding: 40px 24px;
    }

    .navbar {
        max-width: calc(100% - 20px);
        top: 10px;
        padding: 6px 10px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-radius: 24px;
        border: 1px solid var(--border-color);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 20px;
        border-radius: 14px;
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .name {
        font-size: 2.2rem;
    }
}
