@tailwind base;
@tailwind components;
@tailwind utilities;

/* Loading */
.animate-loading {
    animation: loading 1.8s infinite ease-in-out;
}
@keyframes loading {
    0% { width: 0%; left: 0; }
    50% { width: 100%; }
    100% { width: 0%; left: 100%; }
}

/* Project Cards */
.project-card {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover {
    transform: translateY(-25px) scale(1.02);
}
.project-card img {
    transition: transform 0.9s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.project-card:hover img {
    transform: scale(1.12);
}

/* Hero Background */
#hero-bg {
    background-image: url('images/mimiart.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(0.60);
    filter: blur(5px);
    box-shadow: 0 0 80px rgba(0,0,0,0.8) inset;
}

#hero-title {
    transition: opacity 0.8s ease-in-out;
    font-size: 2.1rem;
    line-height: 1.4;
    font-weight: 300;
    text-align: center;
    direction: rtl;
    unicode-bidi: embed;
}

#hero-title > span {
    direction: rtl;
    unicode-bidi: isolate;
}

#hero-title .hero-highlight {
    color: #fcd34d;
    font-weight: 500;
    padding: 0 4px;
}

@media (min-width: 640px) {
    #hero-title { font-size: 2.7rem; line-height: 1.3; }
}
@media (min-width: 768px) {
    #hero-title { font-size: 3.2rem; line-height: 1.25; }
}
@media (min-width: 1024px) {
    #hero-title { font-size: 3.85rem; line-height: 1.2; }
}

/* Contact Title */
#contact-title {
    transition: all 0.3s ease;
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    padding: 2.5rem 2rem 2rem;
    backdrop-filter: blur(12px);
}