/* Custom styles for Shamsia Group website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Active navigation link */
.nav-link.active {
    color: #1E6B5E;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F8B500;
}

.nav-link {
    color: #333;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #1E6B5E;
}

.mobile-nav-link.active {
    color: #1E6B5E;
    font-weight: 600;
}

/* Language dropdown styling */
.language-dropdown {
    position: relative;
}

#language-dropdown-toggle {
    font-weight: 500;
    border: 1px solid #1E6B5E;
    transition: all 0.2s ease;
}

#language-dropdown-toggle:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
}

#language-dropdown-menu {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.lang-option {
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: #f9fafb;
}

.current-lang {
    min-width: 24px;
    text-align: center;
}

/* Form styling */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 107, 94, 0.1);
}

/* Project card hover effect */
.hover\:shadow-xl {
    transition: box-shadow 0.3s ease;
}

/* RTL support for Arabic */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .text-right {
    text-align: left;
}

html[dir="rtl"] .mr-3 {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .mr-4 {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .ml-2 {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Animation for stats */
@keyframes countUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stats-animate {
    animation: countUp 0.8s ease-out;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, #0B3D32, #1E6B5E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 107, 94, 0.3);
    border-radius: 50%;
    border-top-color: #1E6B5E;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-menu-open {
        display: flex !important;
        flex-direction: column;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1E6B5E;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0B3D32;
}

.grecaptcha-badge {
    visibility: hidden;
}