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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    direction: rtl;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    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: #1e3a8a;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #d97706;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d97706;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #b45309;
    border-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1e3a8a;
    border-color: #1e3a8a;
}

.btn-secondary:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* Featured Projects */
.featured-projects {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

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

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

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.project-icon i {
    font-size: 2rem;
    color: white;
}

.project-card h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #b45309;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

.footer-info h3 {
    color: #d97706;
    margin-bottom: 0.5rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

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

.footer-links a:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    opacity: 0.7;
}

/* 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: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-img {
        width: 280px;
        height: 280px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}


/* Portfolio Page Styles */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.projects-section {
    padding: 80px 0;
    background: #f8fafc;
}

.projects-grid-detailed {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-detailed {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-detailed:hover {
    transform: translateY(-5px);
}

.project-image {
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-detailed:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 3rem;
}

.project-content h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-section {
    margin-bottom: 2.5rem;
}

.project-section h3 {
    color: #d97706;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-section h3 i {
    font-size: 1.1rem;
}

.project-section p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project-section ul {
    list-style: none;
    padding: 0;
}

.project-section li {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
}

.project-section li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #d97706;
    font-weight: bold;
}

.project-section strong {
    color: #1e3a8a;
    font-weight: 600;
}

/* Responsive for Portfolio */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .project-content h2 {
        font-size: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
}


/* About Page Styles */
.about-section {
    padding: 80px 0;
    background: white;
}

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

.about-text h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-text p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.philosophy-section {
    background: #f8fafc;
    padding: 4rem 0;
    border-radius: 20px;
    margin-bottom: 4rem;
}

.philosophy-section h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.philosophy-text p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.1rem;
}

.philosophy-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.philosophy-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.philosophy-item i {
    font-size: 2.5rem;
    color: #d97706;
    margin-bottom: 1rem;
}

.philosophy-item h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.philosophy-item p {
    color: #64748b;
    font-size: 0.9rem;
}

.skills-section {
    margin-bottom: 4rem;
}

.skills-section h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.skill-category {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #d97706;
}

.skill-category h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    color: #64748b;
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.skill-category li::before {
    content: '▶';
    position: absolute;
    right: 0;
    color: #d97706;
    font-size: 0.8rem;
}

.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #f8fafc;
    padding: 3rem;
    border-radius: 20px;
}

.additional-info h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.language-level {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: #d97706;
    border-radius: 4px;
}

.certifications ul {
    list-style: none;
    padding: 0;
}

.certifications li {
    color: #64748b;
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.certifications li::before {
    content: '🏆';
    position: absolute;
    right: 0;
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
    background: white;
}

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

.contact-info h2,
.contact-form-container h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info p,
.contact-form-container p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.contact-details h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

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

.contact-link:hover {
    color: #b45309;
}

.availability {
    background: #e0f2fe;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid #0284c7;
}

.availability h3 {
    color: #0284c7;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.availability p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d97706;
}

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

.why-contact {
    padding: 80px 0;
    background: #f8fafc;
}

.why-contact h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.reason-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
}

.reason-item i {
    font-size: 3rem;
    color: #d97706;
    margin-bottom: 1rem;
}

.reason-item h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.reason-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Responsive for About and Contact */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .philosophy-icons {
        flex-direction: row;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .philosophy-icons {
        flex-direction: column;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}


/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    opacity: 0.7;
}

/* Make images clickable */
.project-image img, .hero-img, .about-img {
    cursor: pointer;
}

/* Translation Button */
.translate-btn {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.translate-btn:hover {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* English Translation Styles */
body.english {
    direction: ltr;
}

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

body.english .hero-content {
    grid-template-columns: 1fr 2fr;
}

body.english .hero-content .hero-text {
    order: 2;
}

body.english .hero-content .hero-image {
    order: 1;
}

@media (max-width: 768px) {
    body.english .hero-content {
        grid-template-columns: 1fr;
    }
    
    body.english .hero-content .hero-text,
    body.english .hero-content .hero-image {
        order: unset;
    }
}



/* Responsive for Contact Page */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-info h2, .contact-form-container h2 {
        font-size: 1.8rem;
    }
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    .contact-icon {
        margin-bottom: 1rem;
    }
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-info h2, .contact-form-container h2 {
        font-size: 1.5rem;
    }
    .contact-method {
        padding: 1rem;
    }
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}




/* General Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero {
        padding: 100px 0 60px;
    }
    .stats {
        padding: 60px 0;
    }
    .featured-projects {
        padding: 60px 0;
    }
    .cta {
        padding: 60px 0;
    }
    .footer {
        padding: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-label {
        font-size: 1rem;
    }
    .project-card h3 {
        font-size: 1.3rem;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .cta-content p {
        font-size: 1rem;
    }
}


