/* أوطاس للحج والعمرة - Custom CSS with Bootstrap 5 */

/* ==================== CSS Variables ==================== */
:root {
    --primary-color: #076385;
    --primary-dark: #054a5f;
    --secondary-color: #c3942d;
    --secondary-dark: #a67d1f;
    --accent-color: #076385;
    --text-dark: #076385;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --black: #000000;
    
    /* Bootstrap overrides */
    --bs-primary: #076385;
    --bs-secondary: #c3942d;
    --bs-warning: #c3942d;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transitions */
    --transition-fast: all 0.15s ease-in-out;
    --transition-normal: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
}

/* ==================== Base Styles ==================== */
body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Hide content while loading */
body.loading {
    overflow: hidden;
}

body.loading .navbar,
body.loading .hero-section,
body.loading .about-section,
body.loading .video-section,
body.loading .services-section,
body.loading .journey-section,
body.loading .gallery-section,
body.loading .contact-section,
body.loading .footer,
body.loading .floating-contact {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.loaded .navbar,
body.loaded .hero-section,
body.loaded .about-section,
body.loaded .video-section,
body.loaded .services-section,
body.loaded .journey-section,
body.loaded .gallery-section,
body.loaded .contact-section,
body.loaded .footer,
body.loaded .floating-contact {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Loading Screen ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    margin-bottom: 3rem;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo-text {
    margin-top: 1rem;
}

.loading-logo-text h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-logo-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loading-spinner {
    margin-bottom: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    margin-bottom: 1rem;
}

.loading-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--white));
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 3s ease-in-out infinite;
}

/* Loading Animations */
@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(2deg); 
    }
}

@keyframes textGlow {
    0% { 
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(195, 148, 45, 0.3); 
    }
    100% { 
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 30px rgba(195, 148, 45, 0.6); 
    }
}

@keyframes loadingProgress {
    0% { 
        width: 0%; 
    }
    50% { 
        width: 70%; 
    }
    100% { 
        width: 100%; 
    }
}

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

/* Loading Screen Responsive */
@media (max-width: 768px) {
    .loading-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .loading-logo-text h1 {
        font-size: 2rem;
    }
    
    .loading-logo-text p {
        font-size: 1rem;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .loading-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .loading-logo-text h1 {
        font-size: 1.5rem;
    }
    
    .loading-logo-text p {
        font-size: 0.9rem;
    }
    
    .spinner {
        width: 30px;
        height: 30px;
    }
    
    .loading-bar {
        width: 120px;
    }
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 800;
}

.lead {
    font-weight: 500;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-warning {
    color: var(--secondary-color) !important;
}

/* ==================== Navigation ==================== */
.navbar {
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(-5px);
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.brand-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    background: linear-gradient(45deg, rgba(7, 99, 133, 0.8), rgba(5, 74, 95, 0.9));
}

.hero-logo {
    position: relative;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-logo {
    max-width: 500px;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoSlideIn 1.5s ease-out;
    object-fit: contain;
}

.hero-content {
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
}

.hero-content h2 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.hero-content p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
}

.logo-text-fallback h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-text-fallback p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-warning:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-warning {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-outline-warning:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== About Section ==================== */
.about-section {
    background-color: var(--white);
}

/* ==================== Video Section ==================== */
.video-section {
    background: linear-gradient(135deg, var(--primary-color), #054a5f);
    position: relative;
    overflow: hidden;
}

.video-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 1000 1000"><defs><pattern id="video-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23video-pattern)"/></svg>');
    opacity: 0.3;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.video-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.play-btn {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(195, 148, 45, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(195, 148, 45, 0.6);
}

.play-btn i {
    margin-right: -5px;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(195, 148, 45, 0.1), transparent);
    transition: var(--transition-slow);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.stat-icon {
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    transition: var(--transition-normal);
}

/* ==================== Services Section ==================== */
.services-section {
    background-color: #f8f9fa;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(195, 148, 45, 0.1), transparent);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    margin-bottom: 1rem;
    flex-grow: 0;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 0;
}

/* ==================== Journey Section ==================== */
.journey-section {
    background-color: var(--white);
    position: relative;
}

.info-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    height: 100%;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition-normal);
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.info-card:hover .info-icon {
    transform: scale(1.1);
}

.price-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-2xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

/* ==================== Gallery Section ==================== */
.gallery-section {
    background-color: #f8f9fa;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: perspective(1000px) rotateY(5deg) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-normal);
    filter: grayscale(20%) brightness(0.9);
}

.gallery-item:hover img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition-normal);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--secondary-color);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* ==================== Contact Section ==================== */
.contact-section {
    background-color: var(--white);
}

.contact-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--primary-color) !important;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-links li a {
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links li a:hover {
    color: var(--white) !important;
    transform: translateX(-5px);
}

.footer-links li a:hover i {
    color: var(--white) !important;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    border-width: 2px;
}

.social-icon:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(195, 148, 45, 0.4);
}

.contact-info-footer a {
    transition: var(--transition-fast);
}

.contact-info-footer a:hover {
    color: var(--white) !important;
}

/* ==================== Floating Contact Button ==================== */
.floating-contact {
    z-index: 1000;
}

.floating-contact .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.floating-contact .btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ==================== Animations ==================== */
@keyframes logoSlideIn {
    0% { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-20px) scale(0.95);
        filter: blur(5px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}


@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==================== Scroll Animations ==================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Bootstrap Overrides ==================== */
.alert {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
}

.alert-warning {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
}

.alert-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
}

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

.rounded-pill {
    border-radius: 50rem !important;
}

/* ==================== Responsive Design ==================== */

/* Responsive Typography Classes */
@media (min-width: 768px) {
    .display-md-4 {
        font-size: 3rem !important;
    }
    
    .display-md-3 {
        font-size: 3.5rem !important;
    }
    
    .display-md-2 {
        font-size: 4rem !important;
    }
    
    .fs-md-4 {
        font-size: 1.5rem !important;
    }
    
    .fs-md-5 {
        font-size: 1.25rem !important;
    }
    
    .px-md-5 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
    
    .py-md-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .gap-md-3 {
        gap: 1rem !important;
    }
    
    .mb-md-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-md-5 {
        margin-bottom: 3rem !important;
    }
}

@media (min-width: 992px) {
    .display-lg-3 {
        font-size: 4rem !important;
    }
    
    .display-lg-2 {
        font-size: 4.5rem !important;
    }
    
    .display-lg-1 {
        font-size: 5rem !important;
    }
}

@media (max-width: 1199.98px) {
    .main-logo {
        max-width: 450px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .main-logo {
        max-width: 350px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .hero-content {
        text-align: center !important;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        justify-content: center !important;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 3rem 0 !important;
    }
    
    .footer .col-lg-4,
    .footer .col-md-6 {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .social-links {
        text-align: center;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 90px 0 50px !important;
    }
    
    .main-logo {
        max-width: 250px !important;
    }
    
    .display-3 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .hero-content {
        padding: 1rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .hero-content .lead {
        font-size: 1rem !important;
    }
    
    .video-container {
        border-radius: 10px;
    }
    
    .video-container video {
        border-radius: 10px;
    }
    
    .play-btn {
        width: 80px;
        height: 80px;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.95rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .hero-buttons .btn i {
        font-size: 1rem;
    }
    
    .service-card,
    .contact-card {
        margin-bottom: 1rem;
    }
    
    .price-card {
        margin-top: 2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .floating-contact {
        bottom: 1rem !important;
        right: 1rem !important;
    }
    
    .floating-contact .btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 2.5rem 0 !important;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer-links li a {
        font-size: 0.85rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 80px 0 40px !important;
    }
    
    .main-logo {
        max-width: 200px !important;
        padding: 8px;
    }
    
    .display-3 {
        font-size: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .display-5 {
        font-size: 1.3rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content p,
    .hero-content .lead {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons {
        gap: 0.6rem !important;
    }
    
    .hero-buttons .btn {
        font-size: 0.85rem !important;
        padding: 0.65rem 1.2rem !important;
    }
    
    .hero-buttons .btn i {
        font-size: 0.9rem;
    }
    
    .service-card,
    .contact-card,
    .info-card,
    .stat-card {
        padding: 1.5rem;
    }
    
    .price-card {
        padding: 2rem 1.5rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
}

/* Extra Small Devices (< 400px) */
@media (max-width: 399.98px) {
    .hero-section {
        padding: 75px 0 35px !important;
    }
    
    .main-logo {
        max-width: 180px !important;
    }
    
    .hero-content h2 {
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-content p,
    .hero-content .lead {
        font-size: 0.85rem !important;
    }
    
    .hero-buttons .btn {
        font-size: 0.8rem !important;
        padding: 0.6rem 1rem !important;
    }
    
    .hero-buttons .btn i {
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .navbar,
    .floating-contact,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* ==================== Loading Animation ==================== */
.loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loaded {
    opacity: 1;
}

/* ==================== Utility Classes ==================== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-sm {
    box-shadow: var(--shadow-sm);
}

.box-shadow-md {
    box-shadow: var(--shadow-md);
}

.box-shadow-lg {
    box-shadow: var(--shadow-lg);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-warning {
    border-color: var(--secondary-color) !important;
}

/* ==================== Loading Icon Animation ==================== */
.loading-icon {
    display: inline-block;
}

.loading-icon i {
    animation: spin 2s linear infinite;
}

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

/* ==================== Custom Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== Accessibility ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== High Contrast Mode ==================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ffff00;
        --text-dark: #000000;
        --text-light: #000000;
    }
}