/* ============================================
   DEVELOPER PAGE STYLES
   Mohammad Alshorman - Full Stack Developer
   ============================================ */

/* Hero Section */
.dev-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.dev-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0c 0%, #12121a 50%, #0a0a0c 100%);
}

.dev-hero__gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.dev-hero__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dev-hero__particles {
    position: absolute;
    inset: 0;
}

.dev-hero__particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: devParticle 6s ease-in-out infinite;
}

.dev-hero__particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.dev-hero__particles span:nth-child(2) { left: 20%; top: 70%; animation-delay: 1s; }
.dev-hero__particles span:nth-child(3) { left: 35%; top: 30%; animation-delay: 2s; }
.dev-hero__particles span:nth-child(4) { left: 50%; top: 80%; animation-delay: 0.5s; }
.dev-hero__particles span:nth-child(5) { left: 65%; top: 25%; animation-delay: 1.5s; }
.dev-hero__particles span:nth-child(6) { left: 80%; top: 60%; animation-delay: 2.5s; }
.dev-hero__particles span:nth-child(7) { left: 90%; top: 15%; animation-delay: 3s; }
.dev-hero__particles span:nth-child(8) { left: 75%; top: 85%; animation-delay: 0.8s; }
.dev-hero__particles span:nth-child(9) { left: 45%; top: 45%; animation-delay: 1.8s; }
.dev-hero__particles span:nth-child(10) { left: 5%; top: 90%; animation-delay: 2.8s; }

@keyframes devParticle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 1; transform: translateY(-30px) scale(1); }
}

.dev-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.dev-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: #818cf8;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.dev-hero__avatar {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.dev-hero__avatar-ring {
    position: absolute;
    inset: -6px;
    border: 3px solid transparent;
    border-top-color: #6366f1;
    border-right-color: #10b981;
    border-radius: 50%;
    animation: avatarSpin 3s linear infinite;
}

@keyframes avatarSpin {
    to { transform: rotate(360deg); }
}

.dev-hero__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.dev-hero__avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.dev-hero__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    font-size: 4rem;
    color: #fff;
}

.dev-hero__avatar-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border: 4px solid #0a0a0c;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    cursor: help;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.dev-hero__name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    color: var(--timberwolf);
    margin-bottom: 0.25rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.2;
}

.dev-hero__name-ar {
    display: block;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.5em;
    font-weight: 500;
    color: #818cf8;
    margin-top: 0.25rem;
    direction: rtl;
    letter-spacing: 0.02em;
}

.dev-hero__title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.dev-hero__title-ar {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    direction: rtl;
    animation: fadeInUp 0.8s ease 0.35s both;
}

.dev-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.dev-hero__location i {
    color: #ef4444;
}

.dev-hero__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.dev-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    transition: all 0.3s ease;
}

.dev-social-btn--linkedin { background: #0077b5; }
.dev-social-btn--github { background: #333; }
.dev-social-btn--email { background: #ea4335; }
.dev-social-btn--phone { background: #25d366; }
.dev-social-btn--portfolio { background: linear-gradient(135deg, #6366f1, #10b981); }

.dev-social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dev-hero__cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.dev-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.dev-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #6366f1, transparent);
    margin: 0.75rem auto 0;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* Stats Section */
.dev-stats {
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    padding: 3rem 0;
}

.dev-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.dev-stat {
    text-align: center;
    color: #fff;
}

.dev-stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.dev-stat__label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* About Section */
.dev-about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.dev-about__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--timberwolf);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.dev-about__text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.dev-about__text strong {
    color: var(--timberwolf);
}

.dev-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
}

.dev-info-card__row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.dev-info-card__row:last-child {
    border-bottom: none;
}

.dev-info-card__label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dev-info-card__value {
    color: var(--timberwolf);
    font-weight: 500;
}

.dev-info-card__value a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.dev-info-card__value a:hover {
    color: #818cf8;
}

/* Skills Section */
.dev-skills__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.dev-skill-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.dev-skill-category:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.03);
}

.dev-skill-category__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dev-skill-category__header i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #10b981);
    border-radius: 10px;
    color: #fff;
}

.dev-skill-category__header h3 {
    color: var(--timberwolf);
    font-size: 1.1rem;
    margin: 0;
}

.dev-skill-category__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dev-skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.dev-skill-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

.dev-skill-tag--highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

/* Timeline */
.dev-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.dev-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #10b981, transparent);
}

.dev-timeline__item {
    position: relative;
    padding-bottom: 3rem;
}

.dev-timeline__item:last-child {
    padding-bottom: 0;
}

.dev-timeline__marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    transform: translateX(-50%);
}

.dev-timeline__content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
}

.dev-timeline__content:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.dev-timeline__date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    color: #818cf8;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.dev-timeline__title {
    color: var(--timberwolf);
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
}

.dev-timeline__subtitle {
    color: #10b981;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.dev-timeline__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.dev-timeline__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dev-timeline__tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Projects Grid */
.dev-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dev-project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.dev-project-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dev-project-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 12px;
    font-size: 1.5rem;
    color: #818cf8;
    margin-bottom: 1.5rem;
}

.dev-project-card__title {
    color: var(--timberwolf);
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.dev-project-card__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.dev-project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dev-project-card__tags span {
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    color: #818cf8;
    font-size: 0.75rem;
}

.dev-projects__cta {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Section */
.dev-contact__card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    overflow: hidden;
}

.dev-contact__content {
    padding: 3rem;
}

.dev-contact__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--timberwolf);
    margin: 0 0 1rem;
}

.dev-contact__text {
    color: var(--text-secondary);
    margin: 0 0 2rem;
}

.dev-contact__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dev-contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.dev-contact__item:hover {
    color: #818cf8;
}

.dev-contact__item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: #6366f1;
}

.dev-contact__decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.dev-contact__code {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.dev-contact__code pre {
    margin: 0;
}

.code-keyword { color: #c586c0; }
.code-var { color: #9cdcfe; }
.code-prop { color: #9cdcfe; }
.code-string { color: #ce9178; }
.code-bool { color: #569cd6; }

/* Responsive */
@media (max-width: 1024px) {
    .dev-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dev-about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dev-skills__grid {
        grid-template-columns: 1fr;
    }
    
    .dev-projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dev-contact__card {
        grid-template-columns: 1fr;
    }
    
    .dev-contact__decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    .dev-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .dev-stat__number {
        font-size: 2rem;
    }
    
    .dev-hero__cta {
        flex-direction: column;
    }
    
    .dev-hero__social {
        gap: 0.75rem;
    }
    
    .dev-social-btn {
        width: 44px;
        height: 44px;
    }
    
    .dev-projects__grid {
        grid-template-columns: 1fr;
    }
    
    .dev-timeline {
        padding-left: 1.5rem;
    }
    
    .dev-timeline__marker {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
