/* ============================================
   VisualHub - Common Theme Styles
   Shared animations and utilities for all themes
   ============================================ */

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal animations */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* Glow effects */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-accent-glow), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        var(--color-bg-secondary) 0%,
        var(--color-bg-tertiary) 50%,
        var(--color-bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Portfolio card common styles */
.portfolio-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: 1.5rem;
}

.portfolio-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.portfolio-card-content p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.portfolio-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(55, 182, 255, 0.1);
    border: 1px solid var(--color-accent-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--color-accent-primary);
    margin-top: 0.75rem;
}

/* Hero section common patterns */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Background patterns */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(55, 182, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-pattern-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(55, 182, 255, 0.05) 10px,
        rgba(55, 182, 255, 0.05) 20px
    );
}

/* Glass morphism effect */
.glass {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text utility */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service grid common patterns */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Process timeline common patterns */
.process-container {
    margin-top: 3rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding-top: 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme-specific body classes */
body.theme-luxury {
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-accent-primary: var(--color-gold-primary);
    --color-accent-secondary: var(--color-gold-secondary);
}

body.theme-light {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #4a5568;
    --color-border: rgba(0, 0, 0, 0.1);
}
