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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    transition: direction 0.3s ease;
}

/* Arabic/RTL Support */
body[dir="rtl"] {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

html[lang="ar"] body {
    direction: rtl;
}

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

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

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

.nav-logo h2 {
    color: #FF9966;
    font-weight: 700;
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF9966;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFCC66 0%, #FF9966 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 400;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #FF9966;
    color: white;
    border-color: #FF9966;
}

.btn-primary:hover {
    background: #FF8533;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 153, 102, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #FF9966;
}

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

.hero-graphic {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #FFCC66, #FF9966);
    border-radius: 50%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

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

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text .section-subtitle {
    text-align: left;
    color: #FF9966;
    font-weight: 600;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: #FF9966;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat p {
    color: #666;
    font-weight: 500;
}

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

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #FFCC66 0%, #FF9966 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(255, 153, 102, 0.3);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: #f8fafc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-grid.single-client {
    max-width: 500px;
    margin: 0 auto 60px auto;
    grid-template-columns: 1fr;
}

.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #FFCC66 0%, #FF9966 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-metrics {
    display: flex;
    gap: 15px;
}

.metric {
    background: #FF9966;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonials {
    text-align: center;
    margin-top: 60px;
}

.testimonials h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #333;
    font-weight: 600;
}

.testimonial-author span {
    color: #666;
    display: block;
    margin-top: 5px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.member-photo {
    margin-bottom: 20px;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FFCC66 0%, #FF9966 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: white;
}

.team-member h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.member-role {
    color: #FF9966;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.member-social a:hover {
    background: #FF9966;
    color: white;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #FFCC66 0%, #FF9966 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    color: white;
    margin-bottom: 20px;
}

.contact-info .section-subtitle {
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

.btn-full {
    width: 100%;
    justify-self: stretch;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: #FF9966;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text .section-title,
    .about-text .section-subtitle {
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info .section-title,
    .contact-info .section-subtitle {
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-graphic {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
}

/* ================================
   RTL (Arabic) Support Styles
   ================================ */

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 5px;
    display: flex;
    gap: 5px;
}

.language-switcher button {
    background: transparent;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.language-switcher button.active {
    background: #FF9966;
    color: white;
}

.language-switcher button:hover:not(.active) {
    background: rgba(255, 153, 102, 0.1);
    color: #FF9966;
}

/* RTL Navigation */
[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hamburger {
    order: -1;
}

/* RTL Hero Section */
[dir="rtl"] .hero-container {
    grid-template-columns: 1fr 1fr;
}

[dir="rtl"] .hero-content {
    order: 2;
    text-align: right;
}

[dir="rtl"] .hero-visual {
    order: 1;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-end;
}

/* RTL About Section */
[dir="rtl"] .about-content {
    grid-template-columns: 1fr 1fr;
}

[dir="rtl"] .about-text {
    order: 2;
    text-align: right;
}

[dir="rtl"] .about-image {
    order: 1;
}

[dir="rtl"] .about-text .section-title,
[dir="rtl"] .about-text .section-subtitle {
    text-align: right;
}

/* RTL Contact Section */
[dir="rtl"] .contact-content {
    grid-template-columns: 1fr 1fr;
}

[dir="rtl"] .contact-info {
    order: 2;
    text-align: right;
}

[dir="rtl"] .contact-form-container {
    order: 1;
}

[dir="rtl"] .contact-info .section-title,
[dir="rtl"] .contact-info .section-subtitle {
    text-align: right;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 20px;
}

[dir="rtl"] .contact-item span {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .social-links {
    justify-content: flex-end;
}

/* RTL Footer */
[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

/* RTL Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 70px;
        left: auto;
        z-index: 1001;
        padding: 3px;
        transform: scale(0.8);
    }
    
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 70px;
    }
    
    [dir="rtl"] .nav-menu {
        text-align: right;
    }
    
    [dir="rtl"] .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    [dir="rtl"] .hero-content {
        order: 1;
        text-align: center;
    }
    
    [dir="rtl"] .hero-visual {
        order: 2;
    }
    
    [dir="rtl"] .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    [dir="rtl"] .about-text {
        order: 1;
    }
    
    [dir="rtl"] .about-image {
        order: 2;
    }
    
    [dir="rtl"] .about-text .section-title,
    [dir="rtl"] .about-text .section-subtitle {
        text-align: center;
    }
    
    [dir="rtl"] .contact-content {
        grid-template-columns: 1fr;
    }
    
    [dir="rtl"] .contact-info {
        order: 1;
        text-align: center;
    }
    
    [dir="rtl"] .contact-form-container {
        order: 2;
    }
    
    [dir="rtl"] .contact-info .section-title,
    [dir="rtl"] .contact-info .section-subtitle {
        text-align: center;
    }
    
    [dir="rtl"] .contact-item {
        justify-content: flex-start;
        text-align: left;
    }
    
    [dir="rtl"] .social-links {
        justify-content: center;
    }
    
    [dir="rtl"] .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    [dir="rtl"] .footer-links {
        justify-content: center;
    }
}

/* RTL Typography */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
    text-align: center;
}

[dir="rtl"] .service-card,
[dir="rtl"] .portfolio-card,
[dir="rtl"] .team-member,
[dir="rtl"] .testimonial {
    text-align: center;
}

/* RTL Form Styling */
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

[dir="rtl"] .form-group input::placeholder,
[dir="rtl"] .form-group textarea::placeholder {
    text-align: right;
}