/* ==========================================
   Nokhbehsho Custom Styles
   ========================================== */

   :root {
    --primary-blue: #2563EB;
    --navy-bg: #0B1220;
    --sky-highlight: #60A5FA;
    --mint-success: #10B981;
    --silver-lines: #E5E7EB;
    --warning-accent: #F59E0B;
    --gold: #D4AF37;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    background-color: #F9FAFB;
    color: #1F2937;
    overflow-x: hidden;
}

/* Hero Gradient Animation */
.hero-gradient {
    background: linear-gradient(135deg, #0B1220 0%, #1E3A8A 25%, #2563EB 50%, #60A5FA 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass Morphism */
.glass-card {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hover Lift Effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* CTA Shimmer */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse Animation */
.pulse-tag {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

/* Counter Animation */
.count-up {
    filter: blur(2px);
    opacity: 0;
    transform: translateY(20px);
}

.count-up.active {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

/* Tab Underline */
.tab-underline {
    position: relative;
}

.tab-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 50%;
    background: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.tab-underline.active::after {
    width: 100%;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Magnetic Button */
.magnetic-btn {
    transition: transform 0.2s ease;
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--sky-highlight));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sticky Header */
.sticky-header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

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

/* Neon Ring */
.neon-ring {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2),
                0 0 20px rgba(37, 99, 235, 0.1);
}

/* Blob Animation */
.blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(45deg, var(--primary-blue), var(--sky-highlight));
    opacity: 0.1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.98);
    background: #1F2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Marquee */
.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    min-width: 100%;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-open .accordion-content {
    max-height: 500px;
}

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

.accordion-open .accordion-icon {
    transform: rotate(180deg);
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #fff 0%, #e5e7eb 100%);
}

/* Project Card Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Blog Card */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-image {
    transition: transform 0.3s ease;
}

/* Stats Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-item {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

.stats-item:nth-child(1) { animation-delay: 0.1s; }
.stats-item:nth-child(2) { animation-delay: 0.2s; }
.stats-item:nth-child(3) { animation-delay: 0.3s; }
.stats-item:nth-child(4) { animation-delay: 0.4s; }

/* Audio Player Styles */
.play-icon, .pause-icon {
    transition: opacity 0.3s ease;
}

.playing .play-icon {
    display: none;
}

.playing .pause-icon {
    display: block !important;
}

.transcript-icon.rotate-180 {
    transform: rotate(180deg);
}

.hidden {
    display: none;
}