:root {
    --primary-color: #323088;
    --secondary-color: #c7a557;
    --primary-hover: #26246b;
    --secondary-hover: #b39247;
    --text-main: #333333;
    --text-muted: #8f8f8f;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Security Protections */
.protect-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* SEO Hidden Text */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img, svg {
    pointer-events: none;
}

/* Floating Action Buttons can be clicked */
.fab svg, a svg {
    pointer-events: auto;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Header */
header {
    background-color: var(--bg-white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

.logo-text h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.logo-text p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(50, 48, 136, 0.85), rgba(26, 25, 84, 0.95)), url('assets/مخطوطة عبدالإله المهنا.png') center/cover;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--secondary-color);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

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

/* About Section */
.about {
    padding: 5rem 5%;
    display: flex;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-white);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-strong);
}

.business-cards {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin: 0 auto;
    perspective: 1200px;
}

.business-cards img {
    position: absolute;
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
    transform-style: preserve-3d;
}

.card-front {
    top: 0;
    right: 0;
    z-index: 2;
    transform: rotateY(-15deg) rotateX(5deg) translateZ(30px);
}

.card-back {
    top: 30px;
    right: 30px;
    z-index: 1;
    transform: rotateY(-15deg) rotateX(5deg) translateZ(-10px);
    opacity: 0.8;
}

.business-cards:hover .card-front {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0px) translateY(-15px) translateX(15px);
}

.business-cards:hover .card-back {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0px) translateY(15px) translateX(-25px);
    opacity: 1;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--bg-light);
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-bottom: 4px solid var(--secondary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(199, 165, 87, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.service-card h3 {
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Map Section */
.map-section {
    padding: 0;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4rem 5% 1.5rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.footer-info p {
    color: #cccccc;
    margin-top: 1rem;
}

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

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cccccc;
    font-size: 0.9rem;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-whatsapp {
    background-color: #25D366;
}

.fab-phone {
    background-color: var(--primary-color);
}

.fab svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about {
        flex-direction: column;
    }
    
    .fab-container {
        bottom: 20px;
        left: 20px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
    }
    
    .fab svg {
        width: 25px;
        height: 25px;
    }
}
