
/* Enhanced CSS Variables for 2025 Design Trends */
:root {
    --background-primary: #0A0A0B;
    --background-secondary: #111115;
    --background-card: #1A1A1F;
    --background-glass: rgba(26, 26, 31, 0.8);
    --accent-primary: #00D4FF;
    --accent-secondary: #FF6B35;
    --accent-gradient: linear-gradient(135deg, #00D4FF 0%, #FF6B35 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #6B7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --blur-amount: 20px;
}

/* Light Theme Variables - 2025 Refresh */
html.light {
    --background-primary: #F9FAFB; /* Tailwind gray-50 */
    --background-secondary: #FFFFFF;
    --background-card: #FFFFFF;
    --background-glass: rgba(255, 255, 255, 0.85);
    --accent-primary: #4F46E5; /* Indigo 600 */
    --accent-secondary: #F97316; /* Orange 500 */
    --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #F97316 100%);
    --text-primary: #111827; /* Tailwind gray-900 */
    --text-secondary: #374151; /* Tailwind gray-700 */
    --text-muted: #6B7280; /* Tailwind gray-500 */
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--background-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

html[lang="en"] body {
    font-family: 'Poppins', sans-serif;
}

/* Glassmorphism Effects */
.glass-card {
    background: var(--background-glass);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

/* Gradient Text Effects */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon Glow Effects */
.neon-glow {
    box-shadow: 0 0 20px var(--accent-primary),
                0 0 40px var(--accent-primary),
                0 0 60px var(--accent-primary);
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { box-shadow: 0 0 20px var(--accent-primary); }
    to { box-shadow: 0 0 30px var(--accent-primary), 0 0 60px var(--accent-primary); }
}

/* Advanced Button Styles */
.btn-futuristic {
    position: relative;
    padding: 16px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

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

.btn-futuristic:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
}

/* Header Styles */
.header-glass {
    background: var(--background-glass);
    backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--background-glass);
}

/* Hero Section Enhancements */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Skills Progress Bars */
.skill-bar {
    height: 8px;
    background: var(--background-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    position: relative;
    transition: width 2s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.9;
}

/* Contact Cards */
.contact-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        margin: 1rem;
    }
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--background-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
