/* Musical Week - Custom Styles */

/* Root Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-dark: #212529;
    --text-light: #6c757d;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: var(--primary-color);
}

.language-switcher {
    display: flex;
    align-items: center;
}

.flag-icon {
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.flag-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section h1 {
    animation: fadeInUp 1s ease;
}

.hero-section .lead {
    animation: fadeInUp 1.2s ease;
}

.hero-section .btn {
    animation: fadeInUp 1.4s ease;
}

.hero-section img {
    animation: fadeIn 1.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Spacing */
section {
    padding: 80px 0;
}

section h2 {
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

/* Service Section */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: var(--primary-color);
    font-weight: bold;
}

/* Process Section */
.process-step img {
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.process-step:hover img {
    transform: scale(1.05);
}

.process-step h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 1rem;
}

/* Screenshot Zoom */
.screenshot-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.screenshot-thumb:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#imageZoomModal .modal-dialog {
    max-width: 90%;
}

#imageZoomModal .modal-body {
    padding: 1rem;
    background-color: #f8f9fa;
}

#imageZoomModal #zoomedImage {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pricing Section */
.pricing .card {
    border: 2px solid var(--primary-color);
}

.pricing .display-4 {
    color: var(--primary-color);
    font-weight: bold;
}

/* Registration Form */
#registrationForm {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: none;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

#formMessage {
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

#formMessage.success {
    display: block;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#formMessage.error {
    display: block;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Contact Section */
#contact .card {
    border-left: 4px solid var(--primary-color);
}

#contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Cookie Consent Modal */
#cookieConsentModal .modal-content {
    border-radius: 8px;
}

#cookieConsentModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .language-switcher {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    #registrationForm {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
