/* ============================
   الأساس الذهبي - Shared Styles
   Brand Identity 2026
   ============================ */

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #114550; }
::-webkit-scrollbar-thumb { background: #a4a265; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8a8a50; }

/* === Glassmorphism === */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(164, 162, 101, 0.2);
}
.glass-teal {
    background: rgba(17, 69, 80, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(164, 162, 101, 0.15);
}
.glass-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(164, 162, 101, 0.12);
    box-shadow: 0 2px 20px rgba(17, 69, 80, 0.06);
}

/* === Navbar === */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 30px rgba(17, 69, 80, 0.1) !important;
}
.navbar-white {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(17, 69, 80, 0.08);
}

/* === Nav Links === */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: #a4a265;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #114550 !important; }

/* === Brand Text Gradients === */
.gold-text {
    background: linear-gradient(135deg, #a4a265, #d1ca88, #a4a265);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.teal-text {
    background: linear-gradient(135deg, #114550, #1c737a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Gold Shimmer === */
.gold-shimmer {
    background: linear-gradient(90deg, #a4a265, #d1ca88, #f9f0a2, #d1ca88, #a4a265);
    background-size: 300% 100%;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === Teal Shimmer === */
.teal-shimmer {
    background: linear-gradient(90deg, #114550, #1c737a, #29a0a3, #1c737a, #114550);
    background-size: 300% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

/* === Hero Background === */
.hero-bg {
    background: linear-gradient(135deg, #114550 0%, #165a63 40%, #1c737a 100%);
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(164, 162, 101, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(41, 160, 163, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(164, 162, 101, 0.06) 0%, transparent 50%);
}

/* === Page Hero (inner pages) === */
.page-hero {
    background: linear-gradient(135deg, #f0f7f8 0%, #e8f4f5 50%, #f0f7f8 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(164, 162, 101, 0.2);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(17, 69, 80, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(164, 162, 101, 0.05) 0%, transparent 50%);
}

/* === Particles === */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #d1ca88;
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 6s ease-in-out infinite;
}
@keyframes float-particle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 0.5; transform: translateY(-100px) scale(1); }
}

/* === Service Cards === */
.service-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(17, 69, 80, 0.12);
    border-color: rgba(164, 162, 101, 0.4);
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(180deg);
    background: linear-gradient(135deg, #a4a265, #d1ca88) !important;
    color: #ffffff !important;
}
.service-icon { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* === Buttons === */
.btn-gold {
    background: linear-gradient(135deg, #a4a265, #8a8a50);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 162, 101, 0.4);
}

.btn-teal {
    background: linear-gradient(135deg, #114550, #1c737a);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
}
.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 69, 80, 0.4);
}

.btn-outline-gold {
    border: 2px solid #a4a265;
    color: #a4a265;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline-gold:hover {
    background: #a4a265;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 162, 101, 0.3);
}

.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.6);
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* === Section Divider === */
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #a4a265, #d1ca88);
    margin: 0 auto;
    border-radius: 2px;
}
.section-divider-teal {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #114550, #29a0a3);
    margin: 0 auto;
    border-radius: 2px;
}

/* === Form Inputs === */
.form-input {
    background: #ffffff;
    border: 1.5px solid rgba(17, 69, 80, 0.15);
    transition: all 0.3s ease;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.form-input:focus {
    border-color: #114550;
    box-shadow: 0 0 0 3px rgba(17, 69, 80, 0.08);
    outline: none;
}

/* === WhatsApp Float === */
.whatsapp-float { animation: pulse-whatsapp 2s ease-in-out infinite; }
@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* === Back to Top === */
.back-to-top { opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* === Counter === */
.stat-number { font-variant-numeric: tabular-nums; }

/* === Mobile Menu === */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* === Loading Screen === */
.loader {
    position: fixed; inset: 0;
    background: #114550;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
    width: 60px; height: 60px;
    border: 3px solid rgba(164, 162, 101, 0.2);
    border-top-color: #a4a265;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Social Icons === */
.social-icon { transition: all 0.3s ease; }
.social-icon:hover {
    color: #a4a265 !important;
    transform: translateY(-4px);
    border-color: rgba(164, 162, 101, 0.4) !important;
}

/* === Testimonial Card === */
.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(17, 69, 80, 0.1);
}

/* === Timeline === */
.timeline-item { position: relative; padding-right: 40px; }
.timeline-item::before {
    content: '';
    position: absolute; right: 0; top: 8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #a4a265;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(164, 162, 101, 0.2);
    z-index: 1;
}
.timeline-item::after {
    content: '';
    position: absolute; right: 7px; top: 24px;
    width: 2px; height: calc(100% - 8px);
    background: rgba(164, 162, 101, 0.2);
}
.timeline-item:last-child::after { display: none; }

/* === Process Steps === */
.process-step { transition: all 0.3s ease; }
.process-step:hover { transform: translateY(-8px); }

/* === FAQ Accordion === */
.faq-item { transition: all 0.3s ease; }
.faq-item.active { border-color: rgba(164, 162, 101, 0.4); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 300px; padding-top: 16px; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* === Page Transition === */
.page-transition { animation: fadeInUp 0.6s ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Breadcrumb === */
.breadcrumb a { transition: color 0.3s ease; }
.breadcrumb a:hover { color: #a4a265; }

/* === Team Card === */
.team-card { transition: all 0.4s ease; }
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(17, 69, 80, 0.1);
}
.team-card:hover .team-avatar { border-color: #a4a265; }
.team-avatar { transition: border-color 0.3s ease; }

/* === Swiper Pagination === */
.swiper-pagination-bullet {
    background: rgba(164, 162, 101, 0.3) !important;
    opacity: 1 !important; width: 10px !important; height: 10px !important;
}
.swiper-pagination-bullet-active {
    background: #a4a265 !important;
    width: 30px !important; border-radius: 5px !important;
}

/* === Floating Decorations === */
.float-decoration {
    position: absolute;
    border: 1px solid rgba(164, 162, 101, 0.15);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* === Teal Sections === */
.bg-teal-section {
    background: linear-gradient(135deg, #114550 0%, #165a63 100%);
}
.bg-teal-mid {
    background: linear-gradient(135deg, #165a63 0%, #1c737a 100%);
}

/* === Accent badge === */
.badge-gold {
    background: rgba(164, 162, 101, 0.12);
    color: #8a8a50;
    border: 1px solid rgba(164, 162, 101, 0.25);
}
.badge-teal {
    background: rgba(17, 69, 80, 0.08);
    color: #114550;
    border: 1px solid rgba(17, 69, 80, 0.15);
}
