/* ========================================
   Professional Design Enhancements
======================================== */

/* ========================================
   Custom Scrollbar
======================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

/* ========================================
   Selection Styling
======================================== */

::selection {
    background: var(--secondary-color);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--secondary-color);
    color: var(--text-white);
}

/* ========================================
   Enhanced Navigation
======================================== */

.navbar {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-menu a {
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* ========================================
   Enhanced About Section
======================================== */

.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 180, 76, 0.05), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.about-text .lead {
    position: relative;
    padding-right: 20px;
}

body[dir="ltr"] .about-text .lead {
    padding-right: 0;
    padding-left: 20px;
}

.about-text .lead::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

body[dir="ltr"] .about-text .lead::before {
    right: auto;
    left: 0;
}

/* ========================================
   Enhanced Work Method Section
======================================== */

.step {
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

body[dir="ltr"] .step::after {
    right: auto;
    left: calc(100% + 15px);
    background: linear-gradient(270deg, var(--primary-color), var(--secondary-color));
}

.step:first-child::after {
    display: none;
}

/* ========================================
   Enhanced Team Section
======================================== */

.quality-item {
    position: relative;
}

.quality-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quality-item:hover::before {
    opacity: 1;
}

/* ========================================
   Enhanced Clients Section
======================================== */

.sector-card {
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent, var(--primary-color));
    transition: height 0.4s ease;
}

.sector-card:hover::before {
    height: 100%;
}

.sector-card i,
.sector-card h3 {
    position: relative;
    z-index: 1;
}

/* ========================================
   Enhanced Licenses Section
======================================== */

.license-card {
    position: relative;
}

.license-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.license-card:hover::before {
    opacity: 1;
}

.license-card:hover {
    background: var(--bg-white);
}

/* ========================================
   Enhanced Contact Section
======================================== */

.contact-item {
    position: relative;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-10px);
}

body[dir="ltr"] .contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    transition: all 0.4s ease;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(10, 71, 159, 0.3);
}

/* ========================================
   Enhanced Footer
======================================== */

.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-section ul a {
    position: relative;
    display: inline-block;
}

.footer-section ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

body[dir="ltr"] .footer-section ul a::after {
    right: auto;
    left: 0;
}

.footer-section ul a:hover::after {
    width: 100%;
}

.social-links a {
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 0.2;
}

/* ========================================
   Floating Animation for Icons
======================================== */

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-icon i,
.feature-icon i,
.stat-icon i {
    animation: float-icon 3s ease-in-out infinite;
}

.service-card:nth-child(1) .service-icon i { animation-delay: 0s; }
.service-card:nth-child(2) .service-icon i { animation-delay: 0.2s; }
.service-card:nth-child(3) .service-icon i { animation-delay: 0.4s; }
.service-card:nth-child(4) .service-icon i { animation-delay: 0.6s; }
.service-card:nth-child(5) .service-icon i { animation-delay: 0.8s; }
.service-card:nth-child(6) .service-icon i { animation-delay: 1s; }
.service-card:nth-child(7) .service-icon i { animation-delay: 1.2s; }
.service-card:nth-child(8) .service-icon i { animation-delay: 1.4s; }
.service-card:nth-child(9) .service-icon i { animation-delay: 1.6s; }

/* ========================================
   Text Gradient Effect
======================================== */

.gradient-heading {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Loading State
======================================== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   Responsive Enhancements
======================================== */

@media (max-width: 768px) {
    .about::before {
        width: 200px;
        height: 200px;
        right: -100px;
    }
    
    .step::after {
        display: none;
    }
}

/* ========================================
   Print Styles
======================================== */

@media print {
    .navbar,
    .lang-toggle,
    .scroll-top,
    .hero-shapes,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-overlay {
        opacity: 0.3;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}