/* ASA Quality Services - Custom Styles */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px; /* Account for fixed navbar */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 50%, rgba(240, 147, 251, 0.95) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(1px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
    animation: gradientShift 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)" /></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 2;
    animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255,255,255,0.4);
    font-size: 2rem;
    animation: floatIcon 6s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.floating-icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.floating-icon-3 {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
}

.floating-icon-4 {
    top: 70%;
    left: 15%;
    animation-delay: 3s;
}

.floating-icon-5 {
    top: 15%;
    right: 35%;
    animation-delay: 4s;
}

.floating-icon-6 {
    top: 50%;
    right: 10%;
    animation-delay: 5s;
}

@keyframes floatIcon {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.7;
    }
}

/* Hero Elements */
.hero-badge .badge {
    border-radius: 50px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(13, 110, 253, 0.5); }
    to { box-shadow: 0 0 20px rgba(13, 110, 253, 0.8); }
}

.typing-effect {
    animation: fadeInUp 1s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
}

.glow-btn {
    position: relative;
}

.glow-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: inherit;
    filter: blur(15px);
    opacity: 0.7;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.glass-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    color: white;
}

.glass-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Hero Stats */
.hero-stats {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4aa;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* VR Headset Graphic */
.hero-graphic {
    position: relative;
    text-align: center;
    opacity: 0;
    animation: fadeInRight 1s ease-out 2s forwards;
}

.vr-headset-graphic {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto;
}

.headset-main {
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

.headset-lens {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #1e1b4b, #312e81);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #60a5fa;
    animation: pulse 2s ease-in-out infinite;
}

.headset-lens.left {
    left: 30px;
}

.headset-lens.right {
    right: 30px;
}

.headset-strap {
    width: 250px;
    height: 20px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 125px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top: none;
    animation: float 3s ease-in-out infinite 0.5s;
}

/* Page Headers */
.page-header {
    padding: 8rem 0 4rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Button Styles */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.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);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        0 0 20px rgba(13, 110, 253, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6, var(--primary-dark));
    background-size: 200% 200%;
    animation: gradientMove 3s ease-in-out infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7C3AED, #0a58ca);
    animation: gradientMove 1s ease-in-out infinite;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(220, 53, 69, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 30px rgba(13, 110, 253, 0.2);
}

.card-img-top {
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.card:hover .card-img-top {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

.card-body {
    position: relative;
    z-index: 3;
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    color: white;
    box-shadow: 
        0 8px 25px rgba(13, 110, 253, 0.3),
        0 0 20px rgba(13, 220, 255, 0.2);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 3s ease-in-out infinite;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.service-icon:hover {
    transform: scale(1.2) rotateY(180deg);
    box-shadow: 
        0 15px 35px rgba(13, 110, 253, 0.4),
        0 0 30px rgba(13, 220, 255, 0.3);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3), 0 0 20px rgba(13, 220, 255, 0.2); }
    50% { box-shadow: 0 12px 35px rgba(13, 110, 253, 0.5), 0 0 30px rgba(13, 220, 255, 0.4); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Rating Stars */
.rating {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.rating .fas,
.rating .far {
    margin-right: 2px;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-check-input {
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.invalid-feedback {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, var(--dark-color), #495057);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: #ffed4e;
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(13,110,253,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.filter-container {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.filter-title h4 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Review Filters */
.filter-buttons .filter-btn {
    margin: 0.25rem;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-buttons .filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.filter-buttons .filter-btn:hover::before {
    left: 100%;
}

.filter-buttons .filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.filter-buttons .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
    color: white;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

.filter-buttons .filter-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7C3AED);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.5);
}

/* Review Items */
.review-item {
    transition: all 0.3s ease;
}

.review-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #495057 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.success-message {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeInUp 0.5s ease;
}

/* Error States */
.error-message {
    background: linear-gradient(45deg, var(--danger-color), #e74c3c);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeInUp 0.5s ease;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .cookie-consent .col-md-4 {
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 5rem 0 2rem;
    }

    .card-body.p-5 {
        padding: 2rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        padding: 2rem 0;
        background: none !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* High Performance CSS */
.card-img-top,
.hero-section {
    will-change: transform;
}

/* Optimize font loading */
@font-display: swap;

/* About Page Specific Styles */
.about-content p {
    color: #2c3e50 !important;
    font-weight: 500;
    line-height: 1.7;
}

.about-content .lead {
    color: #34495e !important;
    font-weight: 600;
}

.about-content h2 {
    color: #2c3e50 !important;
}

.about-content .d-flex span {
    color: #2c3e50 !important;
    font-weight: 500;
}
