/* CSS Variables */
:root {
    --primary-color: #1a365d;
    /* Navy Blue */
    --primary-dark: #0f172a;
    --primary-light: #2c5282;
    --secondary-color: #d4af37;
    /* Gold */
    --secondary-light: #fef08a;
    --secondary-dark: #b45309;
    --bg-light: #fafaf9;
    /* Warm White / Beige */
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;

    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Cairo', sans-serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
    --shadow-float: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.py-section {
    padding: 100px 0;
}

/* Backgrounds & Ornamentation */
.islamic-bg {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #0f172a 100%);
    color: var(--text-light);
    overflow: hidden;
}

#hero.islamic-bg {
    background-image:
        linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%),
        url('../assets/images/makkah-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.islamic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* Mandalas/Ornaments using pseudo elements for modern luxury look */
.islamic-bg .ornament-tr {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="none" stroke="rgba(212,175,55,0.2)" stroke-width="1" stroke-dasharray="2 4"/><path d="M50 0 Q60 40 100 50 Q60 60 50 100 Q40 60 0 50 Q40 40 50 0" fill="rgba(212,175,55,0.1)"/></svg>') no-repeat center center;
    background-size: contain;
    animation: slowRotate 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.islamic-bg .ornament-bl {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="none" stroke="rgba(212,175,55,0.2)" stroke-width="1" stroke-dasharray="2 4"/><path d="M50 0 Q60 40 100 50 Q60 60 50 100 Q40 60 0 50 Q40 40 50 0" fill="rgba(212,175,55,0.1)"/></svg>') no-repeat center center;
    background-size: contain;
    animation: slowRotate 80s linear infinite reverse;
    z-index: 0;
    pointer-events: none;
}

.bg-light-pattern {
    background-color: #fafaf9;
    background-image: radial-gradient(rgba(212, 175, 55, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-float);
    z-index: 1000;
    transition: var(--transition);
    animation: pulseGlow 2s infinite;
}

.floating-contact svg {
    width: 35px;
    height: 35px;
}

.floating-contact:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-float);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 999;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, transparent 70%);
    transition: var(--transition);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.4);
    color: #fff;
}

.scroll-top:hover::before {
    transform: scale(2);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8) 0%, transparent 70%);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 50px;
    /* Modern pill shape */
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

.btn-primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    box-shadow: var(--shadow-gold);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background-color: rgba(26, 54, 93, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled .header-content {
    height: 80px;
}

.logo img {
    height: 115px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled .logo img {
    height: 55px;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: #fde047; /* Lighter gold on hover */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn svg {
    width: 30px;
    height: 30px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--secondary-color);
    font-size: 4rem;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: #e2e8f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .btn svg {
    width: 24px;
    height: 24px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 15px;
}

/* Services - Modern Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.service-card:hover::before {
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-dark);
    transform: rotate(45deg);
}

.service-icon svg {
    width: 45px;
    height: 45px;
    transform: rotate(-45deg);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-features {
    text-align: right;
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.service-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Features - Modern Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 40px 8px 40px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 15px rgba(26, 54, 93, 0.2);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Proof Section - Scrollable Carousel */
.proof-carousel-wrapper {
    position: relative;
    width: 100%;
}

.proof-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.proof-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.proof-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: var(--bg-white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.proof-card::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-card:hover::before {
    transform: scale(1.6);
    opacity: 1;
}

.proof-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44, 82, 130, 0.3);
}

.video-thumbnail {
    position: relative;
    height: 220px;
    background: var(--primary-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M20 0l2 8 8 2-8 2-2 8-2-8-8-2 8-2z" fill="rgba(255, 255, 255, 0.05)"/></svg>');
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    /* Visual center adjustment for play icon */
}

.play-button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.proof-content {
    padding: 25px;
    text-align: right;
}

.proof-content h4 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.proof-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* FAQ */
.accordion {
    max-width: 850px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 20px;
    background: var(--bg-white);
    border-radius: 30px 8px 30px 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.accordion-header {
    width: 100%;
    padding: 25px 30px;
    text-align: right;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-header svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    transition: transform 0.4s ease;
}

.accordion-header.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding: 0 30px 25px;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--secondary-color);
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
    opacity: 0.9;
}

/* Footer */
.main-footer {
    padding: 80px 0 30px;
    border-top: 5px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about img {
    height: 70px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Make logo white if it's dark */
}

.footer-about p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 8px;
}

.footer-contact ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
    font-size: 1.1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.footer-contact svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom p {
    color: #94a3b8;
}

.creator-badge {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 auto;
}

.creator-badge strong {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 140px;
    }

    .logo img {
        height: 115px;
    }

    .main-nav {
        position: fixed;
        top: 140px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 140px);
        background-color: var(--primary-color);
        background-image: radial-gradient(circle at top left, rgba(212, 175, 55, 0.15), transparent 60%);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s, height 0.3s;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-header.scrolled .main-nav {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: right;
        gap: 0;
        margin-bottom: 30px;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        font-size: 1.4rem;
        color: var(--text-light);
        display: block;
        padding: 20px 30px;
        transition: var(--transition);
        position: relative;
        border-right: 4px solid transparent;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover,
    .main-nav a:active {
        background-color: rgba(255, 255, 255, 0.03);
        color: var(--secondary-color);
        border-right-color: var(--secondary-color);
        padding-right: 40px;
        /* Slight indent effect */
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .floating-contact {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .scroll-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .proof-card {
        flex: 0 0 300px;
    }
}