

/* ----- ANIMATIONS ----- */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}
.animate-slide-left {
    animation: slideInLeft 0.7s ease forwards;
}
.animate-slide-right {
    animation: slideInRight 0.7s ease forwards;
}
.animate-scale {
    animation: scaleIn 0.6s ease forwards;
}
.animate-bounce {
    animation: bounceIn 0.8s ease forwards;
}
.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.25s;
}
.delay-3 {
    animation-delay: 0.4s;
}
.delay-4 {
    animation-delay: 0.55s;
}
.delay-5 {
    animation-delay: 0.7s;
}
.delay-6 {
    animation-delay: 0.85s;
}

/* Navbar */
.navbar-toggler {
    padding: 0;
}

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

.navbar-toggler-icon {
    width: 1.6rem;
    height: 1.6rem;
}


.language-switch{
    border-radius: 5px;
    color: var(--color-white);
    padding: 9px 17px;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--color-secondary);
    border-radius: 3rem;
}

.language-switch:hover{
    background-color: var(--bg-secondary);
    color: var(--color-primary);
}

.language-switch img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-left: 8px;
}

/* Header / Footer */
.header-gradient {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--color-secondary);
}
.bg-warning{
    background-color: var(--bg-secondary) !important;
    color: var(--color-primary) !important;
}
.footer-gradient {
    background: linear-gradient(135deg, #091a28 0%, #1a3347 100%);
    border-top: 3px solid var(--color-secondary);
}
.nav-link-custom {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    transition: 0.25s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    text-decoration: none !important;       
}
.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--color-secondary) !important;
    border-bottom-color: var(--color-secondary);
}
.section-title {
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-primary);
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 4px;
}
.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards & Components */
.card-hover {
    transition: all 0.35s ease;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.card-hover:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
.card-hover .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-hover:hover .card-img-top {
    transform: scale(1.04);
}
.badge-category {
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-electric {
    background: #0d6efd;
    color: white;
}
.badge-plumbing {
    background: #0dcaf0;
    color: var(--color-primary);
}
.btn-outline-gold {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    transition: 0.3s;
}
.btn-outline-gold:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.25);
}
.btn-dark-gold {
    background: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    transition: 0.3s;
}
.btn-dark-gold:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.3);
}

.custom-tab {
    background: var(--bg-secondary);
    color: var(--color-primary);
    border: 1px solid var(--bg-secondary);
    border-radius: 50px;
    padding: 9px 20px;
    transition: all .3s ease;
}

.custom-tab:hover {
    background: var(--bg-primary);
    color: var(--color-secondary);
}

.custom-tab.active,
.custom-tab.active:hover,
.nav-link.custom-tab.active {
    background: var(--bg-primary) !important;
    color: var(--color-secondary) !important;
    border-color: var(--bg-primary) !important;
}

.custom-tab:focus {
    box-shadow: none;
}

.hero-section {
    background: linear-gradient(rgb(15 23 42 / 59%), rgb(15 23 42 / 80%)), url(/assets/images/banner.png) center center / cover no-repeat;
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

.language-toggle {
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    min-width: 120px;
  }
  
  .language-toggle:hover {
    background-color: rgb(255 193 6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
  }
  
  .language-toggle i {
    transition: transform 0.3s ease;
  }
  
  .language-toggle:hover i {
    transform: rotate(180deg);
  }
  
  .pulse-glow-subtle {
    animation: pulseGlow 2s ease-in-out infinite;
  }
  
  @keyframes pulseGlow {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.1);
    }
    50% {
      box-shadow: 0 0 20px 5px rgba(255, 193, 7, 0.15);
    }
  }

/* Optional: make text white */
.hero-section h1,
.hero-section p,
.hero-section .text-dark {
    color: #fff !important;
}

.hero-section .text-warning {
    color: var(--color-secondary) !important;
}
.hero-icon {
    font-size: 2.8rem;
    color: var(--color-primary);
    background: white;
    width: 76px;
    height: 76px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}
.hero-icon:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
}
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}
.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.service-icon-box {
    background: var(--color-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: 0.3s;
}
.service-item:hover .service-icon-box {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: rotate(6deg) scale(1.05);
}
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 28px 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.testimonial-card i {
    color: var(--color-secondary);
    font-size: 1.8rem;
}
.team-card {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.team-card img {
    height: 260px;
    object-fit: cover;
}
.pulse-glow {
    animation: pulseGlow 2s infinite;
}
.floating-badge {
    animation: float 3s ease-in-out infinite;
}
.nav-pills .nav-link {
    border-radius: 40px;
    padding: 10px 28px;
    font-weight: 600;
    color: #2c3e50;
    background: #eef2f7;
}
.nav-pills .nav-link.active {
    background: var(--color-primary);
    color: var(--color-secondary);
}
.nav-pills .nav-link:hover:not(.active) {
    background: #d9e2ec;
}
.img-placeholder {
    background: #e9edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #2c3e50;
}
.card-equal {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-equal .card-body {
    flex: 1;
}
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 400;
}
.footer-link:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}
/* Services Hero */
    .services-hero {
      background: linear-gradient(135deg, #fbbf24 0%, var(--color-secondary) 100%);
      padding: 80px 0;
      position: relative;0
      overflow: hidden;
    }
    
    .services-hero::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 600px;
      height: 600px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
    }
    
    .services-hero h1 {
      font-weight: 900;
      color: #0a1a2b;
      font-size: 3.5rem;
      letter-spacing: -1px;
    }
    
    .services-hero p {
      color: #0a1a2b;
      opacity: 0.9;
      font-size: 1.25rem;
      max-width: 600px;
    }

/* Service Cards */
.service-card-main {
    background: white;
    border-radius: 24px;
    padding: 40px 35px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.error-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.error-box {
    text-align: center;
    max-width: 700px;
    padding: 40px 20px;
}

.error-code {
    font-size: 140px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.error-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.error-text {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 35px;
}

.btn-home {
    padding: 12px 35px;
    border-radius: 50px;
}

.service-card-main:hover::before {
    transform: scaleX(1);
}

.service-card-main:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-icon-main {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #0a1a2b;
    margin-bottom: 20px;
}

.service-card-main h3 {
    font-weight: 700;
    color: var(--color-primary);
}

.service-card-main p {
    color: #4a5b6e;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.service-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2a3b4e;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: var(--color-secondary);
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #fbbf24, var(--color-secondary));
    padding: 60px 0;
}

.btn-dark-custom {
    background: #0a1a2b;
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-dark-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
    background: #1a2a3b;
    text-decoration: none;

}

.btn-outline-dark-custom {
    background: transparent;
    color: #0a1a2b;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #0a1a2b;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-dark-custom:hover {
    background: #0a1a2b;
    color: white;
    transform: translateY(-3px);
    text-decoration: none;

}

/* ================================
   Floating Contact Buttons
================================ */

.floating-contact {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.rtl .floating-contact {
    right: auto;
    left: 25px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    transition: all .3s ease;
}

.floating-btn:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.08);
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.call {
    background: #0d6efd;
}

.list-unstyled {
    padding-right: 0;
}


/* Mobile */
@media (max-width: 991.98px) {

    .navbar-collapse {
        background: #0f172a;
        margin-top: 15px;
        padding: 20px;
        border-radius: 16px;
    }

    .navbar-nav {
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .nav-link-custom {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .language-switch {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .language-switch img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }

    .pulse-glow {
        display: inline-flex;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        bottom: 15px;
    }

    .rtl .floating-contact {
        right: auto;
        left: 15px;
    }

    .floating-btn {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .error-title {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .error-code {
        font-size: 100px;
        font-weight: 800;
        color: var(--color-primary);
        line-height: 1;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0 30px;
    }
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .services-hero h1 {
        font-size: 2.5rem;
    }
    .category-tabs {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
    }
    .category-tab {
        text-align: center;
    }
}
