/* أنماط CSS الرئيسية للموقع */
:where([class^="ri-"])::before { content: "\f3c2"; }

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#007AFF, #6E44FF);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#6E44FF, #007AFF);
}

/* Enhanced smooth scroll animation */
[data-scroll] {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
}

[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0) !important;
    transition-delay: calc(var(--scroll-delay, 0) * 0.1s);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0A;
    color: #fff;
}

.glass-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(10,10,10,0.8);
}

.gradient-border {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #007AFF, #6E44FF);
}

.gradient-text {
    background: linear-gradient(90deg, #007AFF, #6E44FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-icon {
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.1);
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.1);
}

.gradient-btn {
    background: linear-gradient(90deg, #007AFF, #6E44FF);
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    background: linear-gradient(90deg, #6E44FF, #007AFF);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 68, 255, 0.3);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #007AFF;
}

input, textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #007AFF;
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.typing-effect::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

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

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(45deg, rgba(0, 122, 255, 0.2), rgba(110, 68, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}