:root {
    --bg-color: #ffffff;
    --bg-darker: #f9f9f9;
    --text-primary: #121212;
    --text-secondary: #555555;
    --gold: #f8b825; /* Logo Yellow */
    --gold-hover: #e0a31a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Support */
body[dir="rtl"] {
    font-family: var(--font-ar);
}

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

.bg-darker {
    background-color: var(--bg-darker);
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-img {
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}

body[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

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

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

.lang-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--gold);
    color: var(--bg-darker);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(248, 184, 37, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(45deg, #121212, #555555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-backdrop {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--gold);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    opacity: 0.2;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title .line {
    width: 70px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

/* About Us */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.about-image {
    flex: 1;
    height: 400px;
    position: relative;
    border-radius: 14px;
    padding: 8px;
    background: linear-gradient(45deg, var(--gold), transparent);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Services */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.card i {
    font-size: 45px;
    color: var(--gold);
    margin-bottom: 25px;
}

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

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Why Choose Us */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 35px;
    color: var(--gold);
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: var(--gold);
    color: var(--bg-darker);
    transform: scale(1.1) rotate(5deg);
}

.feature h3 {
    font-size: 1.3rem;
}

/* Portfolio */
.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.portfolio-item {
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.03);
    border-color: rgba(212, 175, 55, 0.3);
}

.port-image {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.port-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .port-image img {
    transform: scale(1.1);
}

.portfolio-item h4 {
    font-size: 1.3rem;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    padding: 50px;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--gold);
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.15rem;
}

.contact-info i {
    color: var(--gold);
    font-size: 1.2rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 70px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-brand p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
    text-decoration: none;
}

body[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .about-content, .contact-wrapper, .hero-content-wrapper {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 35px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-image {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(8, 8, 10, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
    }
    
    body[dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    body[dir="rtl"] .nav-links.active {
        right: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
