/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --border-glow: 0 0 10px rgba(52, 152, 219, 0.5);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Noto Sans Arabic', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.company-name {
    font-weight: 600;
    font-size: 16px;
}

.separator {
    color: rgba(255,255,255,0.5);
}

.top-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-link:hover {
    color: var(--warning-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--border-glow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: white;
    z-index: 1100;
    transition: left 0.4s ease;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-header img {
    height: 40px;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    transform: rotate(90deg);
}

.mobile-nav {
    list-style: none;
    padding: 20px;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bubble-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.bubble-btn:hover,
.bubble-btn.active {
    background: white;
    color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: var(--border-glow);
}

/* Hero Slider */
.hero-slider {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide:nth-child(1) {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/slider1.jpg');
}

.slider-slide:nth-child(2) {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/slider2.jpg');
}

.slider-slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
    animation: slideUp 1s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.slide-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--accent-color), var(--warning-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: white;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.slider-prev,
.slider-next {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-prev:hover,
.slider-next:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Sections Common Styles */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.section-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

/* Description Section */
.description-section {
    padding: 80px 0;
    background: white;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea0d 0%, #764ba20d 100%);
}

.services-category {
    margin-bottom: 60px;
}

.services-category h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    border: 2px solid transparent;
}

.service-card.animate-left {
    transform: translateX(-100px);
}

.service-card.animate-right {
    transform: translateX(100px);
}

.service-card.animated {
    opacity: 1;
    transform: translate(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--secondary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color), var(--warning-color));
    z-index: -1;
    border-radius: 17px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-card h4 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 22px;
}

.service-card p {
    padding: 0 20px 20px;
    color: #666;
}

.whatsapp-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--secondary-color);
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background: white;
}

.reviews-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.reviews-container::-webkit-scrollbar {
    height: 8px;
}

.reviews-container::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.review-card {
    min-width: 280px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.review-card:hover::before {
    animation: borderGlow 2s linear infinite;
}

.review-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.review-card p {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.rating {
    color: var(--warning-color);
    font-size: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-col p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

/* Fixed Buttons */
.fixed-whatsapp,
.fixed-call {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    z-index: 1000;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fixed-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    bottom: 30px;
    right: 30px;
}

.fixed-call {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    bottom: 30px;
    left: 30px;
}

.fixed-whatsapp:hover,
.fixed-call:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Page Transitions */
.page-transition {
    animation: pageLoad 0.8s ease;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Page Specific */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.contact-card:hover::before {
    animation: borderGlow 2s linear infinite;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .top-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .separator {
        display: none;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-whatsapp,
    .fixed-call {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .fixed-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .fixed-call {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }
    
    .slide-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .service-card h4 {
        font-size: 20px;
    }
}

/* Remove these lines from CSS file (if exist) */
.slider-slide:nth-child(1) {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/slider1.jpg');
}

.slider-slide:nth-child(2) {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/slider2.jpg');
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
}

/* Remove any specific nth-child background styles */
/* .slider-slide:nth-child(1) and .slider-slide:nth-child(2) styles remove karna hai */


/* Description Text Formatting */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.section-description {
    text-align: justify;
    text-justify: inter-word;
    max-width: 1000px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #444;
    line-height: 1.8;
    padding: 20px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Ensure even line distribution */
.section-description br {
    display: block;
    margin-bottom: 8px;
    content: "";
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
        padding: 0 15px 15px;
        line-height: 1.4;
    }
    
    .section-description {
        font-size: 16px;
        line-height: 1.6;
        padding: 15px;
        text-align: left;
    }
    
    .section-description br {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 22px;
    }
    
    .section-description {
        font-size: 15px;
        line-height: 1.5;
    }
}