/* Al-Wahaat | شركة الواحات - Styles */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --accent: #34d399;
    --secondary: #0ea5e9;
    --bg: #ffffff;
    --bg-alt: #f0fdf4;
    --text: #1f2937;
    --text-light: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 40px rgba(5, 150, 105, 0.1);
    --shadow-lg: 0 20px 60px rgba(5, 150, 105, 0.15);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --card: #1e293b;
    --border: #334155;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    max-width: 100vw;
}

[dir="ltr"] body {
    font-family: 'Poppins', 'Cairo', sans-serif;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: var(--primary);
    padding: 10px;
    border-radius: 12px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1em;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-dark);
}

[data-theme="dark"] .logo-text {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

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

.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

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

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 18px;
}

.control-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1f2937 0%, #047857 100%);
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&fit=crop') center/cover;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.45) 0%, rgba(31, 41, 55, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

[dir="ltr"] .hero-content {
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.text-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 211, 153, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(20px); }
}

/* Sections */
section {
    padding: 100px 0;
    background: var(--bg);
    overflow-x: hidden;
}

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

.section-tag {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text);
    margin-top: 10px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Services */
.services {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: white;
    font-size: 32px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.service-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.service-icon.gray { background: linear-gradient(135deg, #64748b, #475569); }
.service-icon.emerald { background: linear-gradient(135deg, #34d399, #10b981); }

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.service-list {
    list-style: none;
    text-align: right;
}

[dir="ltr"] .service-list {
    text-align: left;
}

.service-list li {
    padding: 10px 0;
    color: var(--text-light);
    padding-right: 24px;
    position: relative;
}

[dir="ltr"] .service-list li {
    padding-right: 0;
    padding-left: 24px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

[dir="ltr"] .service-list li::before {
    right: auto;
    left: 0;
}

/* Projects */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.project-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    cursor: pointer;
}

.project-item.hexagon {
    clip-path: polygon(0 10%, 100% 0%, 100% 90%, 0% 100%);
}

.project-item:nth-child(even).hexagon {
    clip-path: polygon(0 0%, 100% 10%, 100% 100%, 0% 90%);
}

.project-item.hidden {
    display: none;
}

.project-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.project-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 150, 105, 0.95), rgba(4, 120, 87, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: white;
    text-align: right;
    width: 100%;
}

[dir="ltr"] .project-info {
    text-align: left;
}

.project-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Videos */
.videos-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid var(--border);
}

.videos-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 50px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 40px;
}

.video-card {
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(5, 150, 105, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h4 {
    padding: 24px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

[dir="ltr"] .video-card h4 {
    text-align: left;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.geometric-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.geo-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: -50px;
    right: -50px;
}

[dir="ltr"] .shape-1 {
    right: auto;
    left: -50px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
}

[dir="ltr"] .shape-2 {
    left: auto;
    right: -50px;
}

.about-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(5, 150, 105, 0.15);
}

.about-content h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 30px;
    text-align: right;
}

[dir="ltr"] .about-content h2 {
    text-align: left;
}

.vision-card,
.mission-card {
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    text-align: right;
    border-right: 5px solid var(--primary);
    transition: all 0.3s;
}

[dir="ltr"] .vision-card,
[dir="ltr"] .mission-card {
    text-align: left;
    border-right: none;
    border-left: 5px solid var(--primary);
}

.mission-card {
    border-right-color: var(--secondary);
}

[dir="ltr"] .mission-card {
    border-left-color: var(--secondary);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-lg);
}

[dir="ltr"] .vision-card:hover,
[dir="ltr"] .mission-card:hover {
    transform: translateX(10px);
}

.card-icon {
    display: inline-flex;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 15px;
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
}

.mission-card .card-icon {
    background: linear-gradient(135deg, var(--secondary), #38bdf8);
}

.vision-card h4,
.mission-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.vision-card p,
.mission-card p {
    color: var(--text-light);
    line-height: 1.9;
}

/* Clients */
.clients {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: rgba(5, 150, 105, 0.1);
    transform: skewX(-12deg);
}

[dir="ltr"] .clients::before {
    right: auto;
    left: 0;
    transform: skewX(12deg);
}

.clients .section-tag {
    color: var(--accent);
}

.clients .section-title {
    color: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.client-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.client-icon {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 48px;
}

.client-card h3 {
    font-size: 20px;
    font-weight: 700;
}

/* Contact */
.contact-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 40px;
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 60px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.contact-wrapper::before,
.contact-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.contact-wrapper::before {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
}

[dir="ltr"] .contact-wrapper::before {
    right: auto;
    left: -100px;
}

.contact-wrapper::after {
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}

[dir="ltr"] .contact-wrapper::after {
    right: auto;
    left: -50px;
}

.contact-info {
    color: white;
    text-align: right;
    position: relative;
    z-index: 1;
}

[dir="ltr"] .contact-info {
    text-align: left;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: row-reverse;
}

[dir="ltr"] .info-item {
    flex-direction: row;
}

.info-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 12px;
    font-size: 24px;
}

.info-item div {
    text-align: right;
}

[dir="ltr"] .info-item div {
    text-align: left;
}

.info-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.contact-info .info-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info .info-link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--card);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

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

.form-group {
    text-align: right;
}

[dir="ltr"] .form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--bg);
    color: var(--text);
}

.form-group input[type="email"],
.form-group input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-alt);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
    justify-items: center;
}

[dir="ltr"] .footer-grid {
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

[dir="ltr"] .footer-logo {
    justify-content: center;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-dark);
}

[data-theme="dark"] .footer-logo span {
    color: var(--primary-light);
}

.footer-col p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
    text-align: center;
}

.footer-col ul li {
    padding: 8px 0;
    color: var(--text-light);
}

.footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 14px;
}

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

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px;
}

.modal-content h3 {
    color: white;
    margin-top: 24px;
    font-size: 28px;
    font-weight: 700;
}

.video-modal-content iframe {
    width: 100%;
    height: 70vh;
    border-radius: 20px;
}

.modal-close {
    position: absolute;
    top: -60px;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 20px;
}

[dir="ltr"] .modal-close {
    left: auto;
    right: 0;
}

.modal-close:hover {
    background: white;
    color: #1f2937;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - 80px);
        background: var(--bg);
        flex-direction: column;
        padding: 24px 16px;
        transition: right 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }

    [dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
        transition: left 0.3s ease;
    }

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

    [dir="ltr"] .nav-links.active {
        left: 0;
        right: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .logo-text {
        font-size: 22px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 40px;
    }

    .projects-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .projects-filter {
        gap: 10px;
        padding: 0 4px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .contact-wrapper {
        padding: 28px 16px;
        border-radius: 24px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .contact-info h2 {
        font-size: 26px;
    }

    .vision-card,
    .mission-card {
        padding: 24px 20px;
    }

    .footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* شاشات صغيرة جداً (موبايل) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header,
    .contact-info,
    .contact-form-wrapper,
    .about-content,
    .footer-grid {
        text-align: center;
    }

    [dir="ltr"] .section-header,
    [dir="ltr"] .contact-info,
    [dir="ltr"] .contact-form-wrapper {
        text-align: center;
    }

    .form-group {
        text-align: center;
    }

    section {
        padding: 48px 0;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-wrapper {
        padding: 24px 12px;
    }

    .contact-form-wrapper {
        padding: 20px 12px;
    }

    .project-image {
        height: 280px;
    }

    .videos-title {
        font-size: 24px;
    }
}
