/* Custom Styles for Majid Ghohroodi */
/* Modern Blue & Gray Color Palette */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.page-top-spacing {
    padding-top: 8rem;
}

@media (max-width: 1024px) {
    .page-top-spacing {
        padding-top: 7rem;
    }
}

@media (max-width: 640px) {
    .page-top-spacing {
        padding-top: 6.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Animations */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Image hover effects */
.image-hover-zoom {
    overflow: hidden;
}

.image-hover-zoom img {
    transition: transform 0.5s ease;
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Prose styling for rich text content */
.prose {
    max-width: 65ch;
}

.prose.max-w-none {
    max-width: none;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose a {
    color: #0ea5e9;
    text-decoration: underline;
}

.prose a:hover {
    color: #0284c7;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol {
    padding-right: 1.625em;
    padding-left: 0;
}

/* Loading spinner */
.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0ea5e9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Button styles */
.btn-primary {
    background-color: #0284c7;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

/* Lightbox styles */
#lightbox {
    backdrop-filter: blur(10px);
}

#lightbox img {
    animation: fade-in 0.3s ease-out;
}

/* Slideshow styles */
.slideshow-container {
    position: relative;
}

.slide {
    transition: opacity 1s ease-in-out;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .prose {
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}