/* Custom styles for Shamsia Group website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Active navigation link */
.nav-link.active {
    color: #1b4f9c;
    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: #1b4f9c;
}

.mobile-nav-link.active {
    color: #1b4f9c;
    font-weight: 600;
}

/* Logo link styling */
.group:hover #site-title {
    color: #1B4F9C !important;
}

.group {
    text-decoration: none !important;
}

/* Language dropdown styling */
.language-dropdown {
    position: relative;
}

#language-dropdown-toggle {
    font-weight: 500;
    border: 1px solid #1b4f9c;
    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, #1b4f9c, #1b4f9c);
    -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: #1b4f9c;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Slide Animation */
#mobile-menu {
    position: fixed;
    top: 72px; /* Adjust based on header height */
    left: 0;
    right: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(27, 79, 156, 0.05);
    color: #1b4f9c;
    border-left-color: #1b4f9c;
    padding-left: 1.75rem;
}

.mobile-nav-link.active {
    color: #1b4f9c;
    background: rgba(27, 79, 156, 0.05);
    border-left-color: #1b4f9c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mobile-menu {
        top: 64px; /* Slightly smaller for mobile if header shrinks */
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1b4f9c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1b4f9c;
}

.grecaptcha-badge {
    visibility: hidden;
}
