/* Arabic Font */
* {
    font-family: 'Cairo', sans-serif;
}

body {
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.header-section {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    font-size: 14px;
}

.top-bar .contact-info span {
    margin-left: 15px;
}

.navbar-brand {
    font-size: 1.2rem;
    color: #B78D65 !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #B78D65 !important;
}

/* Hero Section */
.hero-section {
    margin-top: 0;
}

.hero-slide {
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(183, 141, 101, 0.3), rgba(139, 111, 71, 0.3));
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-slide h1 {
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero-slide p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7), 0 0 15px rgba(0,0,0,0.5);
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.about-card {
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.icon-wrapper {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 20px;
}

.icon-wrapper i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #B78D65;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #B78D65;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
}

.icon-wrapper:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    width: 100px;
    height: 100px;
}

.icon-wrapper:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
    width: 120px;
    height: 120px;
}

.icon-wrapper:hover i {
    transform: scale(1.1);
}

/* Pulse Animation for Icon Circles */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.icon-wrapper:hover::before {
    animation: pulse 2s ease-in-out infinite;
}

.service-icon:hover::before {
    animation: pulse 2s ease-in-out infinite;
}

/* President Message */
.president-message {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.president-message .card {
    border-radius: 15px;
    border: none;
}

.president-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.president-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid #B78D65;
    transition: transform 0.3s ease;
}

.president-image:hover {
    transform: scale(1.05);
}

.message-content p {
    line-height: 2;
    text-align: justify;
    margin-bottom: 15px;
}

/* Services Section */
.services-section {
    background-color: #ffffff;
}

.service-card {
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.service-icon {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 20px;
}

.service-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #B78D65;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #B78D65;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
}

.service-icon:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    width: 100px;
    height: 100px;
}

.service-icon:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
    width: 120px;
    height: 120px;
}

.service-icon:hover i {
    transform: scale(1.1);
}

.service-card .btn {
    margin-top: 15px;
}

/* Complaints Section */
.complaints-section {
    background: linear-gradient(to bottom, #e9ecef 0%, #f8f9fa 100%);
}

.complaints-section .card {
    border-radius: 15px;
    border: none;
}

.contact-box {
    border: 1px solid #dee2e6;
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.footer-section a {
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #B78D65 !important;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 350px;
        padding: 30px 0 !important;
    }
    
    .hero-slide h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-slide p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .top-bar .contact-info {
        font-size: 12px;
    }
    
    .top-bar .contact-info span {
        display: block;
        margin: 5px 0;
    }
    
    .president-image {
        width: 150px;
        height: 150px;
    }
    
    .president-message .card-body {
        padding: 1.5rem !important;
    }
    
    .message-content p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    .about-card,
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand strong {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .icon-wrapper,
    .service-icon {
        padding: 15px;
    }
    
    .icon-wrapper::before,
    .service-icon::before {
        width: 80px;
        height: 80px;
    }
    
    .icon-wrapper::after,
    .service-icon::after {
        width: 100px;
        height: 100px;
    }
    
    .icon-wrapper:hover::before,
    .service-icon:hover::before {
        width: 80px;
        height: 80px;
    }
    
    .icon-wrapper:hover::after,
    .service-icon:hover::after {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        min-height: 300px;
    }
    
    .hero-slide h1 {
        font-size: 1.5rem;
    }
    
    .hero-slide p {
        font-size: 0.85rem;
    }
    
    .president-image {
        width: 120px;
        height: 120px;
    }
    
    .president-message .card-body {
        padding: 1rem !important;
    }
    
    .message-content p {
        font-size: 0.85rem;
        text-align: right;
    }
    
    .about-card,
    .service-card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .navbar-brand strong {
        font-size: 0.8rem;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* Performance Optimizations */
.hero-slide,
.president-image,
.about-card,
.service-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Loading State */
body.loading {
    overflow: hidden;
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

.slide-in {
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
}

/* Staggered Animation Delays */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

.about-card,
.service-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #B78D65;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B6F47;
}

/* Custom Primary Color Override */
.btn-primary,
.bg-primary {
    background-color: #B78D65 !important;
    border-color: #B78D65 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #8B6F47 !important;
    border-color: #8B6F47 !important;
}

.text-primary {
    color: #B78D65 !important;
}

.btn-outline-primary {
    color: #B78D65 !important;
    border-color: #B78D65 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #B78D65 !important;
    border-color: #B78D65 !important;
    color: #fff !important;
}

.badge.bg-primary {
    background-color: #B78D65 !important;
}

.president-message .text-primary {
    color: #B78D65 !important;
}

/* Section Visibility Animation */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .about-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    .about-card:active,
    .service-card:active {
        transform: scale(0.98);
    }
    
    .icon-wrapper:hover::before,
    .icon-wrapper:hover::after,
    .service-icon:hover::before,
    .service-icon:hover::after {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    
    .icon-wrapper:active::before,
    .service-icon:active::before {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    
    .icon-wrapper:active::after,
    .service-icon:active::after {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.4;
    }
}

