
/*
Theme Name: ENJZ Theme
Theme URI: https://example.com/enjz
Author: ENJZ
Author URI: https://enjz.org
Description: A polished WordPress theme based on the ENJZ landing design (RTL/LTR), including a bottom 'Rate Us' bar and enhancements.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: enjz
*/


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

:root {
    --primary: #000000;
    --secondary: #1a1a1a;
    --accent: #ffd700;
    --gold: #ffb300;
    --gold-glow: #ffd700;
    --white: #ffffff;
    --light-gray: #0d0d0d;
    --dark-gray: #888888;
    --gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    --shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    --glow: 0 0 20px rgba(255, 215, 0, 0.5);
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    overflow-x: hidden;
    background: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    padding: 5px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn.active {
    background: var(--gold-gradient);
    color: var(--primary);
    box-shadow: var(--glow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

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

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--accent);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Page Content */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,215,0,0.1)" points="0,1000 1000,800 1000,1000"/><polygon fill="rgba(255,215,0,0.05)" points="0,800 1000,600 1000,800 0,1000"/></svg>') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gold-gradient);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: var(--glow);
    border: 2px solid var(--accent);
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.6);
    filter: brightness(1.2);
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent);
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) { width: 8px; height: 8px; top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 12px; height: 12px; top: 60%; right: 15%; animation-delay: 2s; }
.particle:nth-child(3) { width: 6px; height: 6px; bottom: 30%; left: 20%; animation-delay: 4s; }
.particle:nth-child(4) { width: 10px; height: 10px; top: 40%; right: 30%; animation-delay: 1s; }
.particle:nth-child(5) { width: 14px; height: 14px; bottom: 20%; right: 10%; animation-delay: 3s; }

/* Services Page */
.services-page {
    padding: 8rem 5% 5rem;
    background: var(--secondary);
}

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

.page-title {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--dark-gray);
}

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

.service-card {
    background: var(--primary);
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.4);
    border-color: var(--accent);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2.5rem;
    box-shadow: var(--glow);
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--white);
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.portfolio-item {
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4);
}

.portfolio-image {
    height: 250px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Reviews Section */
.reviews-section {
    padding: 5rem 5%;
    background: var(--secondary);
}

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

.review-card {
    background: var(--primary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.review-text {
    color: var(--white);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.reviewer {
    color: var(--accent);
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: var(--primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    color: var(--primary);
    box-shadow: var(--glow);
    font-size: 1.5rem;
}

.contact-form {
    background: rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--glow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gold-gradient);
    color: var(--primary);
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
    filter: brightness(1.2);
}

/* Stats Counter */
.stats-section {
    padding: 4rem 5%;
    background: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: var(--glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.stat-label {
    color: var(--white);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 3rem 5% 2rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 215, 0, 0.3);
    }

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

    .mobile-menu {
        display: flex;
    }

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

    .hero p {
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .whatsapp-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* English RTL Override */
.en {
    direction: ltr;
    text-align: left;
}

.en .nav-link::after {
    right: auto;
    left: 0;
}

.en .contact-item i {
    margin-left: 0;
    margin-right: 1rem;
}

.en .whatsapp-btn {
    left: auto;
    right: 30px;
}


/* === ENJZ extra fixes & rating bar === */
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 100%; }

.rate-us-bar{
    position:fixed; bottom:0; left:0; right:0;
    background:rgba(0,0,0,.92);
    border-top:2px solid rgba(255,215,0,.3);
    display:flex; align-items:center; gap:1rem;
    padding:.75rem 1rem; z-index:1002;
}
.rate-us-bar .label{color:var(--accent); font-weight:900;}
.rate-stars{display:flex; gap:.5rem; cursor:pointer;}
.rate-stars .star{font-size:1.6rem; color:#888; transition:transform .2s, color .2s;}
.rate-stars .star:hover, .rate-stars .star.active{color:var(--accent); transform:translateY(-2px);}

.rate-feedback{display:none; gap:.5rem; margin-inline-start:auto; align-items:center;}
.rate-feedback.show{display:flex;}
.rate-feedback input, .rate-feedback textarea{
    border:1px solid rgba(255,215,0,.3);
    background:rgba(0,0,0,.4); color:#fff; border-radius:10px; padding:.5rem .75rem;
}
.rate-feedback button{
    background:var(--gold-gradient); color:#000; border:none;
    border-radius:10px; padding:.6rem 1rem; font-weight:700; cursor:pointer;
}

.rate-modal{position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:1003;}
.rate-modal.show{display:flex;}
.rate-modal .box{
    background:#111; border:2px solid rgba(255,215,0,.3); border-radius:16px; padding:1.5rem;
    max-width:420px; text-align:center; box-shadow:0 15px 35px rgba(255,215,0,.25)
}
.rate-modal .box h3{color:var(--accent); margin-bottom:.5rem;}
.rate-modal .actions{display:flex; gap:.75rem; justify-content:center; margin-top:1rem;}
.btn{padding:.6rem 1rem; border-radius:10px; font-weight:700; cursor:pointer;}
.btn-primary{background:var(--gold-gradient); color:#000; border:none;}
.btn-ghost{background:transparent; border:1px solid rgba(255,215,0,.3); color:var(--accent);}

@media (max-width:768px){
    .rate-feedback{flex-direction:column; align-items:stretch;}
}
