/* Custom CSS for kamuicode Workflows Demo */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

header .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Section Styles */
.demo-section {
    padding: 4rem 0;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Media Styles */
.video-grid {
    max-width: 100%;
    max-height: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-grid:hover {
    transform: scale(1.02);
}

.audio-player .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.audio-player audio {
    height: 50px;
    border-radius: 10px;
}

/* Subtitle Display */
.subtitle-display .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.subtitle-display .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    font-weight: 600;
}

.subtitle-display pre {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
}

.subtitle-display code {
    background: transparent;
    color: #2c3e50;
}

/* Tech Stack Section */
.tech-stack-section {
    border-radius: 0;
}

.tech-item {
    padding: 2rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.tech-item h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-item p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

/* Workflow Section */
.workflow-step .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.workflow-step .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.workflow-step .card-title {
    color: #667eea;
    font-weight: 600;
}

.workflow-step .card-subtitle {
    font-weight: 500;
}

/* Image Styles */
img.img-fluid {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

img.img-fluid:hover {
    transform: scale(1.02);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Footer Styles */
footer {
    background: #2c3e50 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #667eea !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-section {
        padding: 2rem 0;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
    
    .video-grid {
        max-height: 300px;
    }
    
    .subtitle-display pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .demo-section {
        padding: 1.5rem 0;
    }
    
    header {
        padding: 3rem 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.25rem;
    }
    
    .tech-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
video, audio {
    background: #f8f9fa;
}

/* Focus states for accessibility */
video:focus, audio:focus, .btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}