:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --dark-gold: #B8860B;
    --light-gold: #F5E6A8;
    --dark-green: #1B4332;
    --medium-green: #2D5016;
    --light-green: #40916C;
    --cream: #FAF3E0;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #2C2C2C;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --shadow: rgba(212, 175, 55, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.arabic-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

.english-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow-dark);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gold) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--dark-green);
}

.hero-title .arabic-text {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-title .english-text {
    display: block;
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--medium-green);
    line-height: 1.8;
}

.hero-subtitle-en {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometric-pattern {
    position: relative;
    width: 400px;
    height: 400px;
}

.star-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--primary-gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: rotate 20s linear infinite;
}

.circle-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 3px solid var(--secondary-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-gold), var(--secondary-gold));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.islamic-pattern {
    width: 200px;
    height: 200px;
    background: var(--white);
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    opacity: 0.9;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 30px var(--shadow-dark);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: var(--light-gray);
}

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

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px var(--shadow-dark);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 2rem;
    color: var(--white);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-gold);
    color: var(--dark-green);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--medium-gray);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px var(--shadow-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--secondary-gold);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow);
    background: linear-gradient(135deg, var(--secondary-gold), var(--primary-gold));
}

.lang-btn i {
    font-size: 1rem;
}

/* English Version Styles */
body.english {
    direction: ltr;
    text-align: left;
}

body.english .nav-container {
    flex-direction: row;
}

body.english .nav-logo {
    order: 1;
}

body.english .nav-menu {
    order: 2;
}

body.english .hamburger {
    order: 3;
}

body.english .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

body.english .hero-content {
    text-align: left;
}

body.english .hero-title .english-text {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
}

body.english .hero-title .arabic-text {
    display: block;
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: 400;
}

body.english .hero-subtitle-ar {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    font-family: 'Cairo', sans-serif;
    font-style: italic;
    direction: rtl;
    text-align: right;
}

body.english .section-header {
    text-align: center;
}

body.english .about-text {
    text-align: left;
}

body.english .contact-details {
    text-align: left;
}

body.english .footer-content {
    text-align: left;
}

body.english .footer-bottom {
    text-align: center;
}

/* Form direction for English */
body.english .form-group input,
body.english .form-group textarea {
    direction: ltr;
    text-align: left;
}

/* Stats alignment for English */
body.english .stats {
    justify-content: flex-start;
}

/* Project tags alignment */
body.english .project-tags {
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .language-switcher {
        margin: 1rem 0 0 0;
        display: flex;
        justify-content: center;
    }

    body.english .language-switcher {
        margin: 1rem 0 0 0;
    }

    body.english .nav-menu {
        right: -100%;
        left: auto;
    }

    body.english .nav-menu.active {
        right: 0;
        left: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title .arabic-text {
        font-size: 2.5rem;
    }

    .hero-title .english-text {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        justify-content: center;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title .arabic-text {
        font-size: 2rem;
    }

    .hero-title .english-text {
        font-size: 1.2rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .geometric-pattern {
        width: 250px;
        height: 250px;
    }

    .star-pattern {
        width: 150px;
        height: 150px;
    }

    .circle-pattern {
        width: 200px;
        height: 200px;
    }

    .hero-container{
        margin-top: 25px;;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
