/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - Based on your logo */
    --primary-color: #d31145;
    --secondary-color: #d31145;
    --accent-color: #d31145;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #7f8c8d;
    --light-gray: #ecf0f1;
    --success-color: #27ae60;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #d31145 0%, #d31145 100%);
    --secondary-gradient: linear-gradient(135deg, #d31145 0%, #d31145 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #d31145 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* RTL Support */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .nav-container {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[lang="ar"] .nav-logo {
    order: 3;
}

[lang="ar"] .nav-menu {
    order: 2;
}

[lang="ar"] .nav-links {
    margin-right: 0;
    margin-left: 0;
}

[lang="ar"] .language-toggle {
    margin-left: var(--spacing-lg);
}

[lang="ar"] .hamburger {
    order: 1;
}

[lang="ar"] .hero-buttons {
    flex-direction: row-reverse;
}

[lang="ar"] .about-features {
    direction: rtl;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--light-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin-right: var(--spacing-lg);
}

[lang="ar"] .nav-links {
    margin-right: 0;
    margin-left: var(--spacing-lg);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-icon {
    font-size: 18px;
    transition: var(--transition-normal);
    filter: grayscale(30%);
}

.lang-btn.active .flag-icon,
.lang-btn:hover .flag-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #d31145;
    backdrop-filter: blur(10px);
    border-bottom: none;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: #d31145;
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    gap: var(--spacing-xl);
    min-height: 75px;
}

[lang="ar"] .nav-container {
    flex-direction: row-reverse;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 75px;
}

.nav-logo .logo-img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    flex: 1;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark-color);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(229, 62, 62, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: var(--light-color);
}

.hero-text {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-title .line {
    display: block;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 300;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--light-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--light-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--light-gray);
    margin-top: var(--spacing-sm);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--light-color);
    border-radius: 12px;
    position: relative;
    opacity: 0.7;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--light-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-text h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.about-text p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    color: var(--gray-color);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: var(--font-size-2xl);
    color: var(--secondary-color);
    width: 50px;
    text-align: center;
}

.feature-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-color);
}

.feature-item p {
    font-size: var(--font-size-sm);
    color: var(--gray-color);
    margin: 0;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.about-logo-container {
    background: var(--primary-gradient);
    padding: var(--spacing-3xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-logo-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    animation: pulse-border 2s ease-in-out infinite;
}

.about-logo {
    max-width: 200px;
    height: auto;
    transition: var(--transition-normal);
}

.about-logo-container:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.about-logo-container:hover .about-logo {
    transform: scale(1.1);
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Profile Button */
.btn-profile {
    margin-top: var(--spacing-xl);
    background: #d31145;
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(211, 17, 69, 0.3);
}

.btn-profile:hover {
    background: #b00d3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 17, 69, 0.4);
}

.btn-profile i {
    font-size: 1.2em;
}

/* Profile Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 1100px;
    max-height: 95vh;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d31145;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: var(--transition-normal);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: #b00d3a;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, #d31145 0%, #b00d3a 100%);
    color: white;
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: var(--font-size-xl);
    margin: 0;
    font-weight: 700;
}

.modal-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-viewer {
    width: 100%;
    flex: 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    min-height: 500px;
    display: flex;
}

.pdf-viewer iframe,
.pdf-viewer object,
.pdf-viewer embed {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.btn-download {
    background: #d31145;
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(211, 17, 69, 0.3);
}

.btn-download:hover {
    background: #b00d3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 17, 69, 0.4);
}

.btn-download i {
    font-size: 1.2em;
}

/* RTL Support for Modal */
[lang="ar"] .modal-close {
    right: auto;
    left: 15px;
}

[lang="ar"] .modal-header h2 {
    direction: rtl;
}

[lang="ar"] .btn-profile,
[lang="ar"] .btn-download {
    flex-direction: row-reverse;
}

@keyframes pulse-border {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--light-color);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--secondary-gradient);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--light-color);
    font-size: var(--font-size-2xl);
}

.service-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-color);
}

.service-card p {
    font-size: var(--font-size-base);
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: var(--spacing-sm) 0;
    color: var(--gray-color);
    position: relative;
    padding-left: var(--spacing-lg);
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    background: var(--light-gray);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.portfolio-item {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    color: var(--light-color);
    padding: var(--spacing-lg);
}

.portfolio-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.portfolio-content p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.portfolio-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.portfolio-link {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

.portfolio-link:hover {
    background: var(--light-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-color);
}

.contact-details p {
    font-size: var(--font-size-base);
    color: var(--gray-color);
}

.social-links h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    gap: var(--spacing-lg);
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--light-color);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    background: var(--light-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* RTL - Move dropdown arrow to left side in Arabic */
[lang="ar"] .form-group select {
    background-position: left 12px center;
    padding-right: var(--spacing-md);
    padding-left: calc(var(--spacing-md) + 20px);
}

.form-group label {
    position: absolute;
    top: -10px;
    left: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--gray-color);
    background: var(--light-color);
    padding: 0 var(--spacing-xs);
    transition: var(--transition-normal);
}

.form-group.input-label label {
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-base);
    color: var(--gray-color);
    pointer-events: none;
}

.form-group.textarea-label label {
    top: var(--spacing-lg);
    transform: none;
}

.form-group.input-label input:focus + label,
.form-group.input-label input:valid + label,
.form-group.textarea-label textarea:focus + label,
.form-group.textarea-label textarea:valid + label {
    top: -10px;
    left: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
    background: var(--light-color);
    padding: 0 var(--spacing-xs);
    transform: none;
}

/* Cloudflare Turnstile Captcha Styling */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

[lang="ar"] .cf-turnstile {
    direction: ltr; /* Keep captcha in LTR even in Arabic */
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--light-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-logo img {
    height: 180px;
    margin-bottom: var(--spacing-lg);
}

.footer-section p {
    color: var(--gray-color);
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--gray-color);
}

/* Video Hero Mobile Optimization */
@media (max-width: 768px) {
    .hero-video {
        /* On mobile, we might want to adjust video positioning */
        min-width: 120%;
        min-height: 120%;
    }
    
    .hero-overlay {
        background: rgba(229, 62, 62, 0.6); /* Stronger overlay on mobile for better text readability */
    }
}

/* Very small mobile devices - fallback to image if needed */
@media (max-width: 480px) and (max-height: 600px) {
    .hero-video-container {
        background: linear-gradient(rgba(229, 62, 62, 0.7), rgba(26, 26, 26, 0.8)), url('assets/vlcsnap-1762-06-16-09h38m47s514.png') center/cover;
    }
    
    .hero-video {
        display: none; /* Hide video on very small devices to save bandwidth */
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-stats {
        gap: var(--spacing-xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Mobile menu link colors - make them visible on light background */
    .nav-link {
        color: var(--dark-color);
    }
    
    .nav-link:hover {
        color: var(--primary-color);
    }
    
    .nav-link::after {
        background: var(--primary-color);
    }
    
    .language-toggle {
        justify-content: center;
        background: rgba(229, 62, 62, 0.1);
        width: fit-content;
        align-self: center;
    }
    
    [lang="ar"] .nav-menu {
        flex-direction: column;
    }
    
    [lang="ar"] .nav-links {
        flex-direction: column;
    }
    
    /* Hamburger positioning - move to opposite end in mobile */
    .hamburger {
        display: flex;
        order: 10; /* Push hamburger to the right in English */
    }
    
    [lang="ar"] .hamburger {
        order: -1; /* Push hamburger to the left in Arabic (which appears on right in RTL) */
    }
    
    .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-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    /* Mobile Modal Adjustments */
    .modal-container {
        width: 95%;
        max-height: 92vh;
    }
    
    .modal-header {
        padding: var(--spacing-md);
    }
    
    .modal-body {
        padding: var(--spacing-md);
    }
    
    .pdf-viewer {
        min-height: 400px;
    }
    
    .modal-header h2 {
        font-size: var(--font-size-lg);
    }
    
    .btn-profile,
    .btn-download {
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}