/* Enhanced Styles for New Insight Website - Additional Features */

/* Transparent Navigation Bar */
.header.transparent {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Enhanced Language Toggle */
.language-toggle {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.language-toggle::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;
}

.language-toggle:hover::before {
    left: 100%;
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 111, 179, 0.3);
}

/* Profile and Appointment Buttons */
.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-btn, .appointment-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.profile-btn {
    background: var(--gradient-2);
    color: var(--white);
}

.appointment-btn {
    background: transparent;
    color: var(--primary-color-1);
    border-color: var(--primary-color-1);
}

.profile-btn:hover, .appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.appointment-btn:hover {
    background: var(--primary-color-1);
    color: var(--white);
}

/* Enhanced WhatsApp Float with Pulse Animation */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}

/* WhatsApp Dropdown Menu */
.whatsapp-dropdown {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    min-width: 250px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.whatsapp-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.whatsapp-option:hover {
    background: rgba(37, 211, 102, 0.1);
    transform: translateX(5px);
}

.whatsapp-option i {
    color: #25D366;
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.whatsapp-option .country {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.whatsapp-option .number {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Animated Counters */
.counter-section {
    background: var(--gradient-mixed);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.counter-item {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px);
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Enhanced Marketing Text */
.hero-enhanced h1 {
 
    -webkit-background-clip: text;
    color: white;
}
@media (min-width: 992px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 عروض في الصف */
  }
}

@media (min-width: 1400px) {
  .offers-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 عروض في الصف للشاشات الكبيرة */
  }
}


/* Offers Section */
.offers-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.offer-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-mixed);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.offer-media {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offer-content {
    padding: 1.5rem;
}

.offer-title {
    color: var(--primary-color-1);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.offer-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Side Entrance Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Enhanced Footer */
.footer-enhanced {
    background: linear-gradient(135deg, var(--text-dark), #2c3e50);
    position: relative;
    overflow: hidden;
}

.footer-enhanced::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="footerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
}

.footer-content {
    position: relative;
    z-index: 2;
}

/* Enhanced Contact Form */
.contact-form-enhanced {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-mixed);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control-enhanced {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control-enhanced:focus {
    border-color: var(--primary-color-1);
    background: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(13, 111, 179, 0.15);
    outline: none;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-control-enhanced:focus + .form-label,
.form-control-enhanced:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color-1);
    background: var(--white);
    padding: 0 0.5rem;
}

/* Service Selection Dropdown */
.service-select {
    position: relative;
}

.service-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color-1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.service-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.service-option {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.service-option:hover {
    background: rgba(13, 111, 179, 0.1);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .header-buttons {
        flex-direction: inherit;
        gap: 0.5rem;
    }
    
    .profile-btn, .appointment-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-dropdown {
        bottom: 75px;
        right: 15px;
        min-width: 220px;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-enhanced {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-dropdown {
        min-width: 200px;
        padding: 0.8rem;
    }
    
    .whatsapp-option {
        padding: 0.6rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .counter-item {
        padding: 1.5rem 1rem;
    }
}

/* Loading Animation for Counters */
.counter-loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.counter-loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Improved Works Section */
.works-enhanced .swiper-slide {
    transition: all 0.3s ease;
}

.works-enhanced .swiper-slide:hover {
    transform: scale(1.02);
}

.work-card-enhanced {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--white);
}

.work-card-enhanced:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.work-media-enhanced {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card-enhanced:hover .work-media-enhanced {
    transform: scale(1.05);
}

.work-content-enhanced {
    padding: 1.5rem;
}

.work-title-enhanced {
    color: var(--primary-color-1);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.work-description-enhanced {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

