/* Custom CSS for Mona Beauty Salon */

* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff69b4;
    --secondary-color: #ffc0cb;
    --accent-color: #ff1493;
    --light-pink: #ffe4e1;
    --dark-text: #333;
    --light-text: #666;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: 100%;
    height: auto;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
}

.brand-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    color: rgba(51, 51, 51, 0.9) !important;
    transition: all 0.3s ease;
    margin: 0 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
    text-shadow: 0 2px 4px rgba(255, 105, 180, 0.3);
}

.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar.scrolled .nav-link {
    color: var(--dark-text) !important;
    text-shadow: none;
}

.navbar.scrolled .brand-text {
    text-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255, 105, 180, 0.3), rgba(255, 20, 147, 0.3)),
                url('mona.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    margin-top: -8px;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
    margin-top: -8px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.btn-primary:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:disabled {
    background: #6c757d;
    border: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Section Titles */
.section-title {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover,
.gallery-item:focus-within {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Video Section */
.video-item {
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-item:hover,
.video-item:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.2);
}

.video-item video {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-item video:hover,
.video-item video:focus {
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.video-item p {
    color: var(--dark-text);
    font-weight: 500;
    margin-top: 1rem;
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: var(--dark-text);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-label {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid rgba(255, 105, 180, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 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(255, 105, 180, 0.2);
    outline: none;
}

.contact-image img {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.product-video video {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Location */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.location-info {
    padding: 2rem;
}

.location-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.location-item:hover,
.location-item:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.15);
}

.location-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.location-item p {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.location-item i {
    color: var(--primary-color);
    margin-left: 8px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.social-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link {
        margin: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .video-item {
        padding: 1.5rem;
    }
    
    .location-item {
        padding: 1.5rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .video-item {
        padding: 1rem;
    }
    
    .location-item {
        padding: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nav-link:focus,
    .btn-primary:focus,
    .form-control:focus {
        outline: 3px solid;
        outline-offset: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-text: #f8f9fa;
        --light-text: #adb5bd;
    }
    
    .service-card,
    .contact-form,
    .location-item {
        background: #2d3748;
        color: var(--dark-text);
    }
    
    .bg-light {
        background-color: #1a202c !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .video-item,
    footer {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-title {
        color: black;
    }
    
    .gallery-item,
    .service-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}