/* Modern UI Elements and Effects */

/* Modern Card Styles */
.modern-card {
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.modern-card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    transform: translateY(-5px);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover::before {
    opacity: 1;
}

/* Neumorphic Elements */
.neumorphic {
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.1),
        -8px -8px 16px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.neumorphic:hover {
    box-shadow: 
        12px 12px 20px rgba(0, 0, 0, 0.15),
        -12px -12px 20px rgba(255, 255, 255, 0.15);
}

.neumorphic-inset {
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 
        inset 8px 8px 16px rgba(0, 0, 0, 0.1),
        inset -8px -8px 16px rgba(255, 255, 255, 0.1);
}

/* Modern Buttons */
.btn-modern {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-variant) 100%);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.3);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.4);
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 122, 255, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Modern Form Elements */
.modern-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    background: var(--color-surface-variant);
    transition: all 0.3s ease;
    font-size: 16px;
}

.modern-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
    outline: none;
}

.modern-input-group {
    position: relative;
    margin-bottom: 24px;
}

.modern-label {
    position: absolute;
    left: 16px;
    top: 12px;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 16px;
}

.modern-input:focus ~ .modern-label,
.modern-input:not(:placeholder-shown) ~ .modern-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    padding: 0 4px;
    background: var(--color-surface);
    color: var(--color-primary);
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Pulse Effect */
.pulse {
    animation: pulse 2s infinite;
}

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

/* Performance considerations */
@media (prefers-reduced-motion: reduce) {
    .modern-card,
    .neumorphic,
    .btn-modern,
    .animated-underline::after,
    .modern-input,
    .modern-label {
        transition: none;
    }
    
    .floating,
    .pulse {
        animation: none;
    }
}

.performance-low .modern-card::before,
.performance-low .btn-modern::before {
    display: none;
}

.performance-low .floating,
.performance-low .pulse {
    animation: none;
}

/* Modern UI Elements with Enhanced Shadows and Effects */

/* Modern buttons with enhanced shadows */
.btn-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #0071e3, #42a5f5);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 10px 20px rgba(0, 113, 227, 0.3),
        0 6px 6px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #42a5f5, #0071e3);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-modern:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 25px rgba(0, 113, 227, 0.4),
        0 10px 10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-modern:hover::before {
    opacity: 1;
}

.btn-modern:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(0, 113, 227, 0.3);
}

/* Modern cards with enhanced shadows */
.modern-card {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 15px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 5px 15px rgba(0, 113, 227, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: all 0.6s;
    z-index: -1;
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 15px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 5px 15px rgba(0, 113, 227, 0.2);
}

.modern-card:hover::before {
    left: 100%;
}

/* Modern inputs with enhanced effects */
.modern-input {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    width: 100%;
}

.modern-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 113, 227, 0.3) inset,
        0 0 8px rgba(0, 113, 227, 0.2);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: var(--color-text-tertiary);
}

.modern-label {
    position: absolute;
    top: 0;
    left: 15px;
    font-size: 12px;
    color: var(--color-primary);
    background: rgba(18, 18, 18, 0.8);
    padding: 0 5px;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.modern-input:focus + .modern-label,
.modern-input.has-content + .modern-label {
    opacity: 1;
}

/* Neumorphic design with enhanced shadows */
.neumorphic {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    border-radius: 15px;
    box-shadow: 
        8px 8px 16px #121212, 
        -8px -8px 16px #383838,
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.neumorphic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neumorphic:hover {
    box-shadow: 
        12px 12px 20px #101010, 
        -12px -12px 20px #3a3a3a,
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-5px);
}

.neumorphic:hover::after {
    opacity: 1;
}

.neumorphic-inset {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    box-shadow: 
        inset 5px 5px 10px #121212, 
        inset -5px -5px 10px #383838,
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 5px 10px;
}

/* Glass morphism with enhanced effects */
.glass-card {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 15px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 15px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.glass-card:hover::before {
    opacity: 1;
}

/* Modern icons with enhanced effects */
.icon-modern {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    border-radius: 50%;
    box-shadow: 
        5px 5px 10px #121212, 
        -5px -5px 10px #383838,
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.icon-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-modern:hover {
    transform: translateY(-3px);
    box-shadow: 
        8px 8px 15px #101010, 
        -8px -8px 15px #3a3a3a,
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.icon-modern:hover::after {
    opacity: 1;
}

/* Skill icons with enhanced effects */
.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        5px 5px 10px #121212, 
        -5px -5px 10px #383838,
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 15px rgba(0, 113, 227, 0.1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, rgba(0, 113, 227, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        8px 8px 15px #101010, 
        -8px -8px 15px #3a3a3a,
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(0, 113, 227, 0.3);
}

.skill-icon:hover::before {
    opacity: 1;
}

/* Communication icon */
.communication-icon {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    position: relative;
}

.communication-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/communication.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* Leadership icon */
.leadership-icon {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    position: relative;
}

.leadership-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/leadership.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* Alteryx icon */
.alteryx-icon {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    position: relative;
}

.alteryx-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/alteryx.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* Arabic icon */
.arabic-icon {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    position: relative;
}

.arabic-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/arabic.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* English icon */
.english-icon {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    position: relative;
}

.english-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/english.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* Contact icons with enhanced effects */
.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        5px 5px 10px #121212, 
        -5px -5px 10px #383838,
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, rgba(0, 113, 227, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.contact-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 
        8px 8px 15px #101010, 
        -8px -8px 15px #3a3a3a,
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(0, 113, 227, 0.3);
}

.contact-icon:hover::before {
    opacity: 1;
}

/* Phone icon */
.phone-icon {
    position: relative;
}

.phone-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/phone.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* Email icon */
.email-icon {
    position: relative;
}

.email-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/email.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* LinkedIn icon */
.linkedin-icon {
    position: relative;
}

.linkedin-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('../assets/icons/linkedin.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.5));
}

/* Enhanced text effects */
.gradient-heading {
    background: linear-gradient(
        to right,
        #0071e3,
        #42a5f5,
        #ff375f,
        #0071e3
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: shimmer 8s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Enhanced section dividers */
.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(to right, #0071e3, #42a5f5);
    margin: var(--spacing-md) 0;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 113, 227, 0.3);
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0071e3, #42a5f5);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0077ed, #64b5f6);
}

/* Performance considerations */
@media (prefers-reduced-motion: reduce) {
    .btn-modern,
    .modern-card,
    .glass-card,
    .neumorphic,
    .icon-modern,
    .skill-icon,
    .contact-icon {
        transition: none;
    }
    
    .btn-modern:hover,
    .modern-card:hover,
    .glass-card:hover,
    .neumorphic:hover,
    .icon-modern:hover,
    .skill-icon:hover,
    .contact-icon:hover {
        transform: none;
    }
}

.performance-low .btn-modern,
.performance-low .modern-card,
.performance-low .glass-card,
.performance-low .neumorphic,
.performance-low .icon-modern,
.performance-low .skill-icon,
.performance-low .contact-icon {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.performance-low .btn-modern:hover,
.performance-low .modern-card:hover,
.performance-low .glass-card:hover,
.performance-low .neumorphic:hover,
.performance-low .icon-modern:hover,
.performance-low .skill-icon:hover,
.performance-low .contact-icon:hover {
    transform: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}