/* Custom CSS for Mozakra Pro Developer Page */

/* Enhanced Background Effects */
body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Arabic Font Styles */
body.arabic-font {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400;
    line-height: 1.8;
}

body.arabic-font h1, 
body.arabic-font h2, 
body.arabic-font h3, 
body.arabic-font h4 {
    font-weight: 600;
    line-height: 1.4;
}

body.arabic-font .hero-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* RTL Layout Adjustments */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .text-center {
    text-align: center !important;
}

body[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

body[dir="rtl"] .flex.items-center:not(.hero-cta):not(.justify-center) {
    flex-direction: row-reverse;
}

body[dir="rtl"] .grid.md\\:grid-cols-2 {
    direction: rtl;
}

body[dir="rtl"] .developer-card .flex.items-center {
    flex-direction: row-reverse;
}

body[dir="rtl"] .work-feature .flex.items-center {
    flex-direction: row-reverse;
}

/* Spacing Adjustments for RTL */
body[dir="rtl"] .space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

body[dir="rtl"] .space-x-8 > * + * {
    margin-left: 0;
    margin-right: 2rem;
}

body[dir="rtl"] .mr-2 {
    margin-right: 0;
    margin-left: 0.5rem;
}

body[dir="rtl"] .mr-3 {
    margin-right: 0;
    margin-left: 0.75rem;
}

body[dir="rtl"] .mr-4 {
    margin-right: 0;
    margin-left: 1rem;
}

body[dir="rtl"] .mr-6 {
    margin-right: 0;
    margin-left: 1.5rem;
}

body[dir="rtl"] .ml-3 {
    margin-left: 0;
    margin-right: 0.75rem;
}

body[dir="rtl"] .ml-16 {
    margin-left: 0;
    margin-right: 4rem;
}

/* Navigation RTL */
body[dir="rtl"] nav .flex.items-center:first-child {
    flex-direction: row-reverse;
}

body[dir="rtl"] .hidden.md\\:flex {
    flex-direction: row-reverse;
}

/* Developer Cards RTL */
body[dir="rtl"] .developer-card .relative.z-10 {
    text-align: right;
}

body[dir="rtl"] .skill-tag {
    text-align: center;
}

body[dir="rtl"] .developer-card .flex.space-x-4 {
    flex-direction: row-reverse;
}

body[dir="rtl"] .developer-card .flex.space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

/* Work Features RTL */
body[dir="rtl"] .work-feature p {
    margin-right: 4rem;
    margin-left: 0;
    text-align: right;
}

/* WhatsApp Stats RTL */
body[dir="rtl"] .work-card .flex.justify-center {
    flex-direction: row-reverse;
}

/* Buttons RTL */
body[dir="rtl"] button .fas,
body[dir="rtl"] a .fas {
    margin-right: 0;
    margin-left: 0.5rem;
}

body[dir="rtl"] .fa-arrow-right {
    transform: scaleX(-1);
}

body[dir="rtl"] .group-hover\\:translate-x-1 {
    transform: translateX(-0.25rem);
}

/* Icons RTL positioning */
body[dir="rtl"] .skill-tag i {
    margin-right: 0;
    margin-left: 0.5rem;
    order: 2;
}

body[dir="rtl"] .skill-tag {
    flex-direction: row-reverse;
}

/* Hero section RTL */
body[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

body[dir="rtl"] .hero-badge .animate-pulse {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Language button positioning */
body[dir="rtl"] #language-toggle {
    flex-direction: row-reverse;
}

body[dir="rtl"] #language-toggle i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Grid and Layout RTL */
body[dir="rtl"] .grid {
    direction: ltr;
}

body[dir="rtl"] .grid > * {
    direction: rtl;
}

/* Expertise cards RTL */
body[dir="rtl"] .expertise-card {
    text-align: center;
}

/* Projects section RTL */
body[dir="rtl"] .projects-soon-container {
    direction: ltr;
}

body[dir="rtl"] .soon-badge {
    direction: ltr;
}

/* Footer RTL */
body[dir="rtl"] footer {
    text-align: center;
}

/* Contact section RTL */
body[dir="rtl"] #contact {
    text-align: center;
}

/* Fix for specific elements that should remain LTR */
body[dir="rtl"] .w-20.h-20,
body[dir="rtl"] .w-10.h-10,
body[dir="rtl"] .w-12.h-12 {
    direction: ltr;
}

/* Animation adjustments for RTL */
body[dir="rtl"] .group-hover\\:translate-x-1:hover {
    transform: translateX(-0.25rem) !important;
}

body[dir="rtl"] .hover\\:transform:hover {
    transform: scale(1.05) !important;
}

/* Text alignment fixes */
body[dir="rtl"] .developer-card h3,
body[dir="rtl"] .developer-card h4,
body[dir="rtl"] .developer-card p {
    text-align: right;
}

body[dir="rtl"] .work-feature h3 {
    text-align: right;
}

/* Navigation improvements */
body[dir="rtl"] nav {
    direction: rtl;
}

body[dir="rtl"] .nav-link {
    text-align: center;
}

/* Responsive adjustments for Arabic */
@media (max-width: 768px) {
    body.arabic-font {
        font-size: 14px;
    }
    
    body[dir="rtl"] .work-feature p {
        margin-right: 0;
        margin-top: 0.5rem;
        text-align: right;
    }
    
    body[dir="rtl"] .hero-cta {
        flex-direction: column;
    }
    
    body[dir="rtl"] .developer-card .flex.items-center {
        flex-direction: column;
        text-align: center;
    }
    
    body[dir="rtl"] .developer-card .w-20.h-20 {
        margin-left: 0;
        margin-bottom: 1rem;
    }
    
    body[dir="rtl"] .space-x-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    body[dir="rtl"] .space-x-8 {
        flex-direction: column;
        gap: 1rem;
    }
    
    body[dir="rtl"] .hidden.md\\:flex {
        flex-direction: column;
    }
    
    /* Mobile navigation RTL */
    body[dir="rtl"] .mobile-menu-btn {
        order: -1;
    }
    
    /* Mobile hero section RTL */
    body[dir="rtl"] .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    /* Mobile developer cards RTL */
    body[dir="rtl"] .developer-card {
        text-align: center;
    }
    
    body[dir="rtl"] .developer-card .grid {
        direction: ltr;
    }
    
    /* Mobile work features RTL */
    body[dir="rtl"] .work-feature {
        text-align: center;
    }
    
    body[dir="rtl"] .work-feature .flex.items-center {
        justify-content: center;
        flex-direction: row;
    }
    
    body[dir="rtl"] .work-feature h3 {
        text-align: center;
    }
    
    body[dir="rtl"] .work-feature p {
        text-align: center;
        margin: 0.5rem 0 0 0;
    }
}

/* Additional RTL improvements */
body[dir="rtl"] .developer-card .skill-tag {
    justify-content: center;
}

body[dir="rtl"] .expertise-card h3,
body[dir="rtl"] .expertise-card p {
    text-align: center;
}

/* Fix for language toggle in RTL */
body[dir="rtl"] .flex.items-center.space-x-4 {
    flex-direction: row-reverse;
}

body[dir="rtl"] .flex.items-center.space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

/* Ensure proper text direction for mixed content */
body[dir="rtl"] .skill-tag,
body[dir="rtl"] .soon-badge,
body[dir="rtl"] .hero-badge {
    unicode-bidi: embed;
}

/* Fix for WhatsApp stats alignment */
body[dir="rtl"] .work-card .mt-6.flex {
    direction: ltr;
}

body[dir="rtl"] .work-card .text-center {
    direction: rtl;
}

/* Enhanced Footer Styles */
.developer-credits {
    position: relative;
    overflow: hidden;
}

.developer-credits::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.8s ease;
}

.developer-credits:hover::before {
    left: 100%;
}

.developer-tag {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.developer-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.developer-tag:nth-child(2):hover {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.developer-tag .w-8.h-8 {
    animation: pulse-dev 2s ease-in-out infinite;
}

@keyframes pulse-dev {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Footer RTL adjustments */
body[dir="rtl"] .developer-credits .flex.items-center {
    flex-direction: row-reverse;
}

body[dir="rtl"] .developer-tag {
    flex-direction: row-reverse;
}

body[dir="rtl"] .developer-tag .mr-3 {
    margin-right: 0;
    margin-left: 0.75rem;
}

body[dir="rtl"] .developer-credits .mr-4 {
    margin-right: 0;
    margin-left: 1rem;
}

body[dir="rtl"] .developer-credits .mr-2 {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Language Toggle Button */
.language-btn {
    position: relative;
    overflow: hidden;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.language-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(6, 182, 212, 0.03) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(139, 92, 246, 0.03) 100px
        );
    pointer-events: none;
    z-index: 1;
}

/* Floating particles */
.floating-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(6, 182, 212, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Custom Cursor Styles */
* {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #06b6d4, #8b5cf6, #ec4899);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: cursor-rotate 3s linear infinite;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(6, 182, 212, 0.4);
    border-right: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: cursor-pulse 2s infinite, cursor-spin 4s linear infinite;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 50%;
    animation: cursor-pulse-reverse 1.5s infinite;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.8);
    background: linear-gradient(45deg, #ec4899, #f59e0b, #10b981);
    box-shadow: 
        0 0 30px rgba(236, 72, 153, 0.8),
        0 0 60px rgba(245, 158, 11, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    animation: cursor-rotate 1s linear infinite, cursor-glow 0.5s ease-in-out infinite alternate;
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.6);
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #ef4444);
    box-shadow: 
        0 0 40px rgba(251, 191, 36, 1),
        0 0 80px rgba(245, 158, 11, 0.8);
}

@keyframes cursor-rotate {
    0% {
        background: linear-gradient(0deg, #06b6d4, #8b5cf6, #ec4899);
    }
    33% {
        background: linear-gradient(120deg, #06b6d4, #8b5cf6, #ec4899);
    }
    66% {
        background: linear-gradient(240deg, #06b6d4, #8b5cf6, #ec4899);
    }
    100% {
        background: linear-gradient(360deg, #06b6d4, #8b5cf6, #ec4899);
    }
}

@keyframes cursor-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes cursor-pulse-reverse {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

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

@keyframes cursor-glow {
    0% {
        filter: brightness(1) saturate(1);
    }
    100% {
        filter: brightness(1.3) saturate(1.5);
    }
}

/* Mouse glow effect */
#mouse-glow {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(147, 51, 234, 0.2) 50%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(20px);
    mix-blend-mode: screen;
}

/* Enhanced Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.nav-link {
    color: #e2e8f0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #06b6d4;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover::after {
    opacity: 1;
}

/* Logo animation */
header .w-10.h-10 {
    animation: logo-pulse 2s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
    0% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    }
}

/* Enhanced Hero Section */
.hero-badge {
    animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero-title {
    animation: title-glow 4s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

@keyframes title-glow {
    0% {
        text-shadow: 
            0 0 30px rgba(6, 182, 212, 0.3),
            0 0 60px rgba(139, 92, 246, 0.2);
    }
    100% {
        text-shadow: 
            0 0 40px rgba(6, 182, 212, 0.5),
            0 0 80px rgba(139, 92, 246, 0.3),
            0 0 120px rgba(236, 72, 153, 0.2);
    }
}

.hero-subtitle p {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle p:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-subtitle p:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    animation: fade-in-up 1s ease-out 0.9s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #06b6d4, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0891b2, #7c3aed);
}

/* Skill tags styling */
.skill-tag {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-tag::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: left 0.5s ease;
}

.skill-tag:hover {
    border-color: rgba(6, 182, 212, 0.6);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(147, 51, 234, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.skill-tag:hover::before {
    left: 100%;
}

/* Enhanced Developer Cards */
.developer-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.developer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.developer-card:hover::after {
    opacity: 1;
}

.developer-card .relative.z-10 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.developer-card .flex.space-x-4 {
    margin-top: auto;
}

/* Enhanced Avatar Styling */
.developer-card .w-20.h-20 {
    position: relative;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2);
    animation: avatar-glow 3s ease-in-out infinite alternate;
}

@keyframes avatar-glow {
    0% {
        box-shadow: 
            0 0 20px rgba(6, 182, 212, 0.4),
            0 0 40px rgba(139, 92, 246, 0.2);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(6, 182, 212, 0.6),
            0 0 60px rgba(139, 92, 246, 0.4);
    }
}

.developer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

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

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

/* Expertise cards */
.expertise-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.expertise-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
}

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

/* Animated gradient text */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #06b6d4, #8b5cf6, #ec4899, #06b6d4);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

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

/* Glitch effect for hover states */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #06b6d4, -0.05em -0.025em 0 #ec4899, 0.025em 0.05em 0 #8b5cf6;
    }
    15% {
        text-shadow: 0.05em 0 0 #06b6d4, -0.05em -0.025em 0 #ec4899, 0.025em 0.05em 0 #8b5cf6;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #06b6d4, 0.025em 0.025em 0 #ec4899, -0.05em -0.05em 0 #8b5cf6;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #06b6d4, 0.025em 0.025em 0 #ec4899, -0.05em -0.05em 0 #8b5cf6;
    }
    50% {
        text-shadow: 0.025em 0.05em 0 #06b6d4, 0.05em 0 0 #ec4899, 0 -0.05em 0 #8b5cf6;
    }
    99% {
        text-shadow: 0.025em 0.05em 0 #06b6d4, 0.05em 0 0 #ec4899, 0 -0.05em 0 #8b5cf6;
    }
    100% {
        text-shadow: -0.025em 0 0 #06b6d4, -0.025em -0.025em 0 #ec4899, -0.025em -0.05em 0 #8b5cf6;
    }
}

.glitch:hover {
    animation: glitch 0.5s infinite;
}

/* Particle effect */
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 3s ease-out forwards;
}

@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skill-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .developer-card {
        padding: 1.5rem;
    }
    
    .expertise-card {
        padding: 1.5rem;
    }
}

/* Custom button hover effects */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Text reveal animation */
@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: text-reveal 0.8s ease-out forwards;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Icon animations */
.skill-tag i {
    transition: all 0.3s ease;
    transform: scale(1);
}

.skill-tag:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

/* Expertise card icon animations */
.expertise-card i {
    transition: all 0.4s ease;
    display: inline-block;
}

.expertise-card:hover i {
    transform: scale(1.1) rotate(10deg);
    filter: drop-shadow(0 0 10px currentColor);
}

/* Icon color transitions */
.skill-tag:hover .fa-html5 { color: #e34c26 !important; }
.skill-tag:hover .fa-css3-alt { color: #1572b6 !important; }
.skill-tag:hover .fa-js-square { color: #f7df1e !important; }
.skill-tag:hover .fa-bootstrap { color: #7952b3 !important; }
.skill-tag:hover .fa-php { color: #777bb4 !important; }
.skill-tag:hover .fa-laravel { color: #ff2d20 !important; }
.skill-tag:hover .fa-java { color: #ed8b00 !important; }
.skill-tag:hover .fa-wordpress { color: #21759b !important; }
.skill-tag:hover .fa-git-alt { color: #f05032 !important; }
.skill-tag:hover .fa-github { color: #ffffff !important; }
.skill-tag:hover .fa-sass { color: #cc6699 !important; }

/* Developer cards grid alignment */
.grid.md\\:grid-cols-2 {
    align-items: stretch;
}

/* Button styling consistency */
.developer-card button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Enhanced Work with Us Section */
#work-with-us {
    position: relative;
    overflow: hidden;
}

#work-with-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.work-feature {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    overflow: hidden;
}

.work-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.6s ease;
}

.work-feature:hover::before {
    left: 100%;
}

.work-feature.animate {
    opacity: 1;
    transform: translateY(0);
}

.work-feature:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.3);
}

.work-feature:hover .w-12 {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.work-card {
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

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

.work-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(34, 197, 94, 0.2);
}

/* WhatsApp button animations */
.work-card a {
    position: relative;
    overflow: hidden;
}

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

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

.work-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

/* Stats animation */
.work-card .text-2xl {
    transition: all 0.3s ease;
}

.work-card:hover .text-2xl {
    transform: scale(1.1);
}

/* Our Projects Section Styles */
#projects {
    position: relative;
    overflow: hidden;
}

.projects-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.soon-badge {
    animation: float-soon 4s ease-in-out infinite;
    position: relative;
}

@keyframes float-soon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.soon-badge:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.soon-badge .fas.fa-rocket {
    animation: rocket-bounce 2s ease-in-out infinite;
}

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

/* Slow spin animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Projects section background effects */
#projects::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-bg-1 6s ease-in-out infinite;
}

#projects::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-bg-2 8s ease-in-out infinite reverse;
}

@keyframes float-bg-1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes float-bg-2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(15px) translateX(-15px);
    }
}

/* Responsive adjustments for work section */
@media (max-width: 768px) {
    .work-feature p {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .work-card {
        margin-top: 2rem;
    }
    
    #work-with-us h2 {
        font-size: 3rem;
    }
    
    .soon-badge {
        width: 160px !important;
        height: 160px !important;
    }
    
    .soon-badge .text-5xl {
        font-size: 2.5rem;
    }
    
    .soon-badge .text-2xl {
        font-size: 1.5rem;
    }
}
