/* Custom CSS for Contemporary Systems (CSC) */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --accent-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Utility Classes */
.min-vh-100 {
    min-height: 100vh;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Arabic Language Support */
body[dir="rtl"] {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    text-align: right;
}

body[dir="rtl"] .navbar-nav {
    margin-right: 0;
    margin-left: auto;
}

body[dir="rtl"] .carousel-control-prev {
    right: 0;
    left: auto;
}

body[dir="rtl"] .carousel-control-next {
    left: 0;
    right: auto;
}

body[dir="rtl"] .language-switcher {
    left: 20px;
    right: auto;
}

body[dir="rtl"] .floating-action {
    left: 30px;
    right: auto;
}

body[dir="rtl"] .contact-info i {
    margin-left: 15px;
    margin-right: 0;
}

body[dir="rtl"] .d-flex.align-items-center i {
    margin-left: 15px;
    margin-right: 0;
}

/* Typography Enhancements */
.display-4, .display-5 {
    font-weight: 800;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.lead {
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.3rem;
    line-height: 1.6;
}

h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--text-dark);
}

/* Add Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.language-switcher .btn {
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.language-switcher .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 1);
}

/* Navigation */
.custom-navbar {
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(108, 117, 125, 0.95)) !important;
    transition: all 0.4s ease;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.custom-navbar.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.98), rgba(108, 117, 125, 0.98)) !important;
}

.custom-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.custom-brand:hover {
    transform: scale(1.05);
    color: #ffd700 !important;
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 5px;
    opacity: 0.8;
}

.custom-nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    border-radius: 8px;
    padding: 8px 16px !important;
    display: flex;
    align-items: center;
}

.custom-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
}

/* Custom Hamburger Menu */
.custom-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: brightness(1);
}

.custom-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 991px) {
    .custom-navbar {
        padding: 12px 0;
    }
    
    .custom-nav-link {
        margin: 5px 0;
        padding: 12px 16px !important;
        border-radius: 6px;
        width: 100%;
        text-align: left;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        width: 100%;
    }
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Carousel */
.hero-carousel {
    margin-top: 76px; /* Add space for fixed navbar */
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section.bg-primary {
    background: var(--primary-gradient) !important;
}

/* Footer Styles */
.footer-section {
    background: var(--dark-color) !important;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-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="footerGrain" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23footerGrain)"/></svg>');
    pointer-events: none;
}

.footer-widget h3,
.footer-widget h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* About Page Styles */
.about-hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 70vh;
    color: white;
    overflow: hidden;
}

.about-hero-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="aboutGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23aboutGrain)"/></svg>');
    pointer-events: none;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: rgba(255, 255, 255, 0.5);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* RTL Language Support */
body[dir="rtl"] {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

body[dir="rtl"] .navbar-nav {
    /* Remove flex-direction: row-reverse to maintain menu order */
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Ensure proper RTL spacing for navbar items */
body[dir="rtl"] .navbar-nav .nav-item {
    margin-left: 0;
    margin-right: 0.5rem;
}

body[dir="rtl"] .navbar-nav .nav-item:last-child {
    margin-right: 0;
}

body[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "\\";
    margin-right: 0.5rem;
    margin-left: 0;
}

body[dir="rtl"] .footer-links a:hover {
    padding-right: 5px;
    padding-left: 0;
}

body[dir="rtl"] .contact-info i {
    margin-left: 10px;
    margin-right: 0;
}

/* Contact Form Styles */
.form-control.bg-dark {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.form-control.bg-dark:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: #ffffff !important;
}

.form-control.bg-dark::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-select.bg-dark {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.form-select.bg-dark:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: #ffffff !important;
}

.form-select.bg-dark option {
    background-color: #343a40;
    color: #ffffff;
}

.carousel-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth carousel transitions */
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-item::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(102,126,234,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.carousel-content {
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Enhanced carousel content animations */
.carousel-item .container > .row > .col-lg-6 {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(30px);
    opacity: 0;
}

.carousel-item.active .container > .row > .col-lg-6 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.carousel-item.active .container > .row > .col-lg-6:nth-child(2) {
    transition-delay: 0.5s;
}

/* Smooth Bootstrap carousel override for better performance */
.carousel-inner .carousel-item {
    transition: transform 0.6s ease-in-out !important;
}

.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    transition: transform 0.6s ease-in-out !important;
}

/* Prevent layout shifts and flashing */
.carousel-fade .carousel-item {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item:not(.active) {
    opacity: 0;
}

/* Force consistent positioning */
.carousel-item {
    position: relative !important;
    display: none;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block !important;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-indicators {
    bottom: 40px;
    z-index: 3;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-indicators button.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
    visibility: visible;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%, 100%;
    filter: invert(1);
}

/* Fix carousel transition flashing */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

/* Remove any flickering during transitions */
.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

.active.carousel-item-start,
.active.carousel-item-end {
    transform: translateX(0);
}

/* Service Icons */
.service-icon {
    width: 90px;
    height: 90px;
    border-radius: 25px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.service-icon::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.5s;
}

.service-icon i {
    font-size: 2.2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-hover);
}

.card:hover .service-icon::before {
    left: 100%;
}

/* Project Icons */
.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.project-icon i {
    font-size: 2rem;
    color: white;
}

.card:hover .project-icon {
    transform: scale(1.1);
}

/* Cards */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 1);
}

.card-body {
    padding: 2.5rem 2rem;
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    font-weight: 400;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 15px 35px;
    transition: all 0.3s 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.5s;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    color: white;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Contact Section */
.contact-info i {
    width: 20px;
}

/* Social Links */
.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating Action Button */
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.floating-action:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.floating-action i {
    color: white;
    font-size: 1.5rem;
}

/* Modern Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved Responsive Design */
@media (max-width: 768px) {
    .hero-carousel {
        margin-top: 0;
    }
    
    .carousel-item {
        min-height: 80vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .language-switcher .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .floating-action {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        min-height: 70vh;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Carousel Transitions */
.carousel-inner {
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Improved image animations within carousel */
.carousel-item img {
    transition: all 0.8s ease;
    transform: scale(1);
}

.carousel-item.active img {
    transform: scale(1.02);
}

/* Prevent layout shift during transitions */
.carousel-item .container {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Section Spacing */
section {
    padding: 100px 0;
    position: relative;
}

section:nth-child(even) {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
}

section:nth-child(odd) {
    background: rgba(255, 255, 255, 0.9);
}

/* Remove padding from hero section */
#home {
    padding: 0;
}

/* Background Patterns */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 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: #0056b3;
}

/* Performance Optimizations */
.carousel-item,
.carousel-item *,
.btn,
.card,
.service-icon {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none;
    }
    
    .carousel-item .container > .row > .col-lg-6 {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .btn,
    .card,
    .service-icon {
        transition: none;
    }
}

/* Hardware acceleration for smooth animations */
.carousel-item,
.carousel-content,
.btn,
.card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Badge Styling */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 15px;
}

/* Image Hover Effects */
.img-fluid {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Footer Enhancement */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Form Enhancement */
#contact .form-control,
#contact .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 15px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact .form-control:focus,
#contact .form-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

/* Contact Section Enhancement */
#contact {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    pointer-events: none;
} 