/* ============================================
   COMPONENT STYLES - MALATH EVENTS
   ============================================ */

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
    padding: var(--space-4) 0;
    /* Slightly more padding for a comfortable feel */
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) 0;
    /* Reduced padding when scrolled */
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    /* Removed wrapper padding as it's now on navbar */
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: radial-gradient(circle at 50% 30%, #FFF 0%, #FDF9F3 100%);
    box-shadow: 0 4px 10px rgba(169, 135, 95, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    position: relative;
    margin-right: var(--space-4);
    overflow: hidden;
}

.nav-logo::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px dashed var(--gold-light);
    border-radius: 50%;
    animation: rotate-slow 30s linear infinite;
}

.logo-art {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(2px);
}

.logo-main-icon {
    font-size: 1.4rem;
    color: var(--gold-dark);
    filter: drop-shadow(0 1px 2px rgba(169, 135, 95, 0.3));
    z-index: 1;
}

.logo-crown {
    position: absolute;
    top: -9px;
    font-size: 0.7rem;
    color: var(--gold);
    animation: float 3s ease-in-out infinite;
}

.logo-text-small {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold-dark);
    margin-top: 0;
    z-index: 2;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.nav-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: var(--gold-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
}

.nav-link {
    font-family: var(--font-arabic);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    /* Ensure underline animation stays within bounds */
    outline-offset: 4px;
    /* Improved focus outline */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-dark);
    /* Deeper gold on hover/active */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    /* Added a subtle border */
    background: var(--surface-glass);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    /* Subtle shadow */
}

.theme-toggle:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.1) rotate(5deg);
    /* Added a slight rotate effect */
    box-shadow: var(--shadow-md);
    /* Enhanced shadow on hover */
}

.theme-toggle i {
    position: absolute;
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.sun-icon {
    color: var(--gold);
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    /* Initial state */
}

.moon-icon {
    color: var(--white);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    /* Initial state, rotated for transition */
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
    /* Rotated out of view */
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    /* Rotated into view */
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    /* Slightly increased gap for better touch target */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    width: 48px;
    /* Larger touch area */
    height: 48px;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--surface-glass);
    /* Subtle background on hover */
    border-radius: var(--radius-md);
}

.mobile-menu-toggle span {
    width: 30px;
    /* Slightly wider bars */
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    /* Adjusted translate for wider bars */
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    /* Adjusted translate for wider bars */
}

/* Adjust navbar height for better padding */
.navbar {
    padding: var(--space-3) 0;
    /* Reduced padding for a slightly smaller navbar */
}

.navbar.scrolled {
    padding: var(--space-2) 0;
    /* Even smaller when scrolled */
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    background: var(--surface-glass);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--gold);
    transform: scale(1.1);
}

.theme-toggle i {
    position: absolute;
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.sun-icon {
    color: var(--gold);
    opacity: 1;
}

.moon-icon {
    color: var(--white);
    opacity: 0;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    /* Darker overlay */
    backdrop-filter: blur(5px);
    /* Subtle blur effect */
    -webkit-backdrop-filter: blur(5px);
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(135deg, rgba(51, 43, 32, 0.7) 0%, rgba(106, 91, 74, 0.5) 100%);
    /* Darker light mode overlay */
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: var(--space-8);
}

.hero-title {
    font-size: var(--text-7xl);
    /* Larger font size for Amiri font */
    margin-bottom: var(--space-6);
    animation-delay: 0.2s;
    font-weight: 800;
    /* Bolder for impact */
}

.hero-title .arabic-text {
    display: block;
    font-family: var(--font-arabic);
    /* Ensure Arabic font for Arabic text */
    color: var(--white);
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    /* Stronger shadow */
}

.hero-title .english-subtitle {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    /* Slightly larger English subtitle */
    color: var(--gold-light);
    margin-top: var(--space-4);
    font-weight: 500;
    /* Adjusted font weight */
}

.hero-description {
    font-family: var(--font-arabic);
    font-size: var(--text-xl);
    color: var(--beige-light);
    margin-bottom: var(--space-8);
    line-height: 1.8;
    animation-delay: 0.4s;
    max-width: 700px;
    /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation-delay: 0.6s;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-3xl);
    /* Larger scroll icon */
    color: var(--gold-light);
    /* Lighter gold for better visibility */
    animation: float 3s ease-in-out infinite, pulse 2s infinite;
    /* Added pulse animation */
}

/* === ABOUT SECTION === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Adjusted ratio for text content */
    gap: var(--space-12);
    align-items: center;
    margin-top: var(--space-12);
}

.about-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: rotate(-3deg);
    /* Subtle rotation for visual interest */
    transition: transform var(--transition-base) ease-in-out;
}

.about-image:hover {
    transform: rotate(0deg) scale(1.02);
    /* Straighten and slight scale on hover */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.about-image:hover img {
    transform: scale(1.08);
    /* More pronounced zoom on image */
}

.about-badge {
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    /* Gold gradient */
    color: var(--white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    /* Bolder text */
    box-shadow: var(--shadow-gold);
    transform: translateY(10px);
    /* Slightly lift badge */
    opacity: 0.95;
    transition: all var(--transition-base);
}

.about-image:hover .about-badge {
    transform: translateY(0);
    /* Return to original position on hover */
    opacity: 1;
}

.about-text h3 {
    font-family: var(--font-arabic);
    color: var(--gold-dark);
    /* Deeper gold for heading */
    margin-bottom: var(--space-6);
    font-weight: 700;
}

.about-text p {
    font-family: var(--font-arabic);
    line-height: 2;
    /* Increased line-height for paragraphs */
    margin-bottom: var(--space-5);
    color: var(--text-secondary);
    font-size: var(--text-base);
}

.about-features {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-arabic);
    font-weight: 500;
    color: var(--text-primary);
    /* Primary text color for features */
}

.feature-item i {
    color: var(--gold);
    font-size: var(--text-2xl);
    /* Slightly larger icons */
    animation: bounceIn 0.8s ease-out forwards;
    /* Added bounce animation */
    animation-delay: var(--delay);
}

.feature-item:nth-child(1) i {
    --delay: 0.1s;
}

.feature-item:nth-child(2) i {
    --delay: 0.2s;
}

.feature-item:nth-child(3) i {
    --delay: 0.3s;
}

.feature-item:nth-child(4) i {
    --delay: 0.4s;
}

/* === SECTION HEADER === */
.section-header {
    margin-bottom: var(--space-12);
}

.section-title {
    font-family: var(--font-arabic);
    color: var(--gold);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-family: var(--font-arabic);
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Adjusted min-width for more flexibility */
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.service-card {
    text-align: center;
    padding: 0;
    border-radius: var(--radius-2xl);
    background: var(--bg-elevated);
    transition: all var(--transition-base) ease-in-out;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: var(--space-8);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.service-icon {
    width: 100%;
    height: 250px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    display: block;
    box-shadow: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    display: none;
}

.service-icon img {
    width: 90%;
    height: 100%;
    margin: 10px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-arabic);
    margin: var(--space-6) var(--space-6) var(--space-3);
    color: var(--gold-dark);
    font-weight: 700;
}

.service-card p {
    font-family: var(--font-arabic);
    margin: 0 var(--space-6) var(--space-6);
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0 var(--space-6);
    margin: 0;
    text-align: right;
    width: 100%;
}

.service-features li {
    font-family: var(--font-arabic);
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    position: relative;
    padding-right: var(--space-8);
    /* Increased padding for checkmark */
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.service-features li::before {
    content: '\f00c';
    /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 6 Free';
    /* Specify Font Awesome font */
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--gold);
    font-size: var(--text-base);
    top: 50%;
    transform: translateY(-50%);
}

.service-action {
    padding: 0 var(--space-6);
    margin-top: var(--space-4);
    width: 100%;
}

.btn-details {
    width: 100%;
    border-color: var(--gold-light);
    color: var(--gold-dark);
    font-weight: 700;
}

.btn-details:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* === GALLERY === */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    padding: 0 var(--space-4);
    /* Added padding for better spacing */
}

.filter-btn {
    padding: var(--space-3) var(--space-6);
    background: var(--bg-elevated);
    /* Changed to elevated background */
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-arabic);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* Ensures ::before pseudo-element works correctly */
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(169, 135, 95, 0.2), transparent);
    /* Updated gold shade */
    transition: left 0.5s ease-out;
    z-index: -1;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    /* More pronounced lift */
    box-shadow: var(--shadow-gold);
}

.filter-btn.active::before {
    left: 100%;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    /* Adjusted padding */
    direction: ltr;
    /* Force LTR direction as requested */
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-8);
    /* Space for scrollbar/shadow */
}

/* Hide scrollbar for cleaner look but keep functionality */
.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background-color: var(--gold-light);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base) ease-in-out;
    flex: 0 0 350px;
    /* Fixed width */
    scroll-snap-align: center;
    direction: rtl;
    /* Reset content direction */
}

.gallery-item:hover {
    transform: scale(1.03) translateY(-5px);
    /* Lift and slight scale */
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.15);
    /* More pronounced zoom */
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    /* Darker overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: var(--font-arabic);
    color: var(--white);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
    /* Larger title in overlay */
}

.gallery-overlay .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-fast) 0.1s, transform var(--transition-fast) 0.1s;
}

.gallery-item:hover .gallery-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

/* === BOOKING FORM === */
/* === TESTIMONIALS === */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Adjusted for more flexible columns */
    gap: var(--space-8);
    margin-top: var(--space-12);
    padding: 0 var(--space-6);
}

.testimonial-card {
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base) ease-in-out;
    border: 1px solid var(--border-color);
    text-align: center;
    /* Centered text for testimonials */
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    color: var(--gold);
    justify-content: center;
    /* Center the stars */
    font-size: var(--text-xl);
    /* Larger stars */
}

.testimonial-text {
    font-family: var(--font-arabic);
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-6);
    font-style: italic;
    color: var(--text-primary);
    /* Primary text color for readability */
}

.testimonial-author h5 {
    font-family: var(--font-arabic);
    margin-bottom: var(--space-1);
    color: var(--gold-dark);
    /* Deeper gold for author name */
    font-weight: 700;
}

.testimonial-author span {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: block;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-10);
    /* Increased margin top */
}

.slider-btn {
    width: 56px;
    /* Slightly larger buttons */
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    /* Larger icon in button */
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
    /* Added rotate effect */
    box-shadow: var(--shadow-md);
}

/* === CONTACT === */
.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Adjusted ratio for contact info prominence */
    gap: var(--space-12);
    margin-top: var(--space-12);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-8);
    /* Added padding to info section */
    background: var(--bg-secondary);
    /* Subtle background for info */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.contact-icon {
    width: 55px;
    /* Slightly larger icon */
    height: 55px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    /* Gold gradient */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    /* Larger icon size */
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg);
    /* Subtle effect on hover */
    box-shadow: var(--shadow-md);
}

.contact-details h4 {
    font-family: var(--font-arabic);
    margin-bottom: var(--space-2);
    color: var(--gold-dark);
    /* Deeper gold for titles */
    font-weight: 700;
}

.contact-note {
    font-family: var(--font-arabic);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: var(--space-1) 0 0;
}

.contact-details a,
.contact-details p {
    font-family: var(--font-arabic);
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-details a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
    /* Increased margin top */
    justify-content: flex-start;
    /* Align to start */
}

.social-link {
    width: 50px;
    /* Slightly larger social links */
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    /* Larger icon */
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    /* Lift and scale with color change */
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: var(--bg-elevated);
    padding: var(--space-10);
    /* Increased padding for form */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    /* Stronger shadow for the form */
    border: 1px solid var(--border-color);
}

/* === FOOTER === */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--surface) 100%);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--gold-light);
    overflow: hidden;
}

/* Decorative top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forced 4 columns for desktop */
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 1;
}

.footer-section {
    padding: var(--space-2);
}

.footer-section .nav-logo {
    width: 90px;
    height: 90px;
    margin-right: 0;
    margin-bottom: var(--space-4);
    font-size: 1.2em;
    /* Scale text/icon inside */
}

/* Ensure icons scale properly inside larger footer logo */
.footer-section .nav-logo .logo-main-icon {
    font-size: 1.8rem;
}

.footer-section .nav-logo .logo-crown {
    font-size: 0.9rem;
    top: -12px;
}

.footer-section .nav-logo .logo-text-small {
    font-size: 1.3rem;
}

/* Previously used .footer-logo class style (can be removed or kept if image used elsewhere) */
.footer-logo {
    width: 90px;
    height: 90px;
    margin-bottom: var(--space-4);
    filter: drop-shadow(0 4px 6px rgba(169, 135, 95, 0.2));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-section h3 {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    color: var(--gold-dark);
}

.footer-section p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0.9;
}

/* Section Headers */
.footer-section h4 {
    font-family: var(--font-arabic);
    color: var(--gold-dark);
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}



/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '‹';
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.footer-links a:hover {
    color: var(--gold-dark);
    transform: translateX(-5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact List */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-contact i {
    width: 38px;
    height: 38px;
    background: var(--bg-elevated);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.footer-contact li:hover i {
    background: var(--gold);
    color: var(--white);
    transform: rotate(15deg);
    border-color: var(--gold);
}

.footer-contact a,
.footer-contact span {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--gold-dark);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(169, 135, 95, 0.15);
    padding-top: var(--space-8);
    margin-top: var(--space-4);
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-arabic);
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

/* === FLOATING BUTTONS === */
.floating-buttons {
    position: fixed;
    bottom: var(--space-8);
    /* Increased bottom spacing */
    right: var(--space-8);
    /* Changed to right */
    left: auto;
    /* Ensure left is unset */
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    /* Increased gap between buttons */
    z-index: var(--z-fixed);
}

@keyframes float-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.floating-btn {
    width: 65px;
    /* Slightly larger buttons */
    height: 65px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    /* Larger icons */
    color: var(--white);
    box-shadow: var(--shadow-xl);
    /* Stronger shadow */
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth transition */
    animation: float-pulse 3s ease-in-out infinite;
    /* Combined animation */
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-btn:hover {
    transform: translateY(-8px) scale(1.15);
    /* More pronounced lift and scale */
    box-shadow: 0 18px 45px rgba(37, 211, 102, 0.5);
    /* Stronger shadow on hover */
    animation-play-state: paused;
    /* Pause animation on hover */
}

.call-btn {
    background: #25D366;
}

.call-btn:hover {
    transform: translateY(-8px) scale(1.15);
    /* More pronounced lift and scale */
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    /* Stronger green shadow on hover */
    animation-play-state: paused;
    /* Pause animation on hover */
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--surface-glass);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.lightbox-close {
    top: var(--space-6);
    right: var(--space-6);
}

.lightbox-prev {
    left: var(--space-6);
}

.lightbox-next {
    right: var(--space-6);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    transform: scale(1.1);
}

/* === SERVICE SLIDER ANIMATION === */
.service-slider {
    display: inline-grid;
    /* Keeps items centered */
    place-items: center;
    position: relative;
    height: 1.5em;
    /* Fits one line of text */
    overflow: hidden;
    vertical-align: text-bottom;
    min-width: 250px;
    /* Prevents layout shift */
    margin: 0 var(--space-1);
    color: var(--gold);
    font-weight: 700;
}

.service-item {
    grid-area: 1 / 1;
    /* Stack all items on top of each other */
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.service-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.service-item.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* === RESPONSIVE === */
@media (max-width: 1023px) {

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-8) var(--space-6);
        box-shadow: var(--shadow-2xl);
        transition: right var(--transition-base) ease-in-out;
        gap: var(--space-4);
        justify-content: flex-start;
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        /* Full width for menu items */
    }

    .nav-link {
        padding: var(--space-3) var(--space-4);
        /* Adjusted padding */
        font-size: var(--text-lg);
        /* Larger font size for mobile */
        text-align: right;
        /* Align text to the right for RTL */
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: var(--z-fixed);
        /* Ensure toggle is above menu for closing */
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-cta {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        flex: 0 0 85vw;
        /* Responsive width for mobile */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo,
    .footer-section .nav-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .form-progress {
        flex-direction: column;
        gap: var(--space-4);
    }

    .progress-step::before {
        display: none;
    }

    .floating-buttons {
        left: auto;
        right: var(--space-4);
    }
}