/* 
 * Nalma Design Agency - Main Stylesheet
 * Dark theme with dramatic contrast and glowing accents
 */

/* ===== FONT IMPORTS ===== */
@font-face {
    font-family: 'NalmaEnglish';
    src: url('../assets/fonts/english-font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NalmaArabic';
    src: url('../assets/fonts/arabic-font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
    /* Dark Theme (Default) */
    --bg-color: #030303;
    --text-color: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --accent-color: #CE7528;
    --accent-glow: rgba(206, 117, 40, 0.4);
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --header-bg: rgba(3, 3, 3, 0.9);
    --card-bg: rgba(15, 15, 15, 0.8);
    --input-bg: rgba(30, 30, 30, 0.5);

    /* Animation & Font Variables */
    --transition-slow: 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    --transition-medium: 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    --transition-fast: 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    --font-english: 'NalmaEnglish', sans-serif;
    --font-arabic: 'NalmaArabic', sans-serif;
}

/* Light Theme Variables */
body.light-mode {
    --bg-color: #f8f9fa;
    --text-color: #121212;
    --text-dim: rgba(18, 18, 18, 0.7);
    --accent-color: #CE7528;
    --accent-glow: rgba(206, 117, 40, 0.3);
    --overlay-bg: rgba(248, 249, 250, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 1);
    --input-bg: rgba(240, 240, 240, 1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --button-shadow: 0 5px 15px rgba(206, 117, 40, 0.2);
    --section-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-english);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 1s ease, color 1s ease, opacity 1s ease;
}

body.loading {
    overflow: hidden;
}

body[data-language="ar"] {
    font-family: var(--font-arabic);
    direction: rtl;
}

/* Fix for Arabic navigation in light mode */
body.light-mode[data-language="ar"] .nav-link {
    font-weight: normal;
    text-shadow: none;
}

body[data-language="ar"] .nav-container {
    right: auto;
    left: -100%;
}

body[data-language="ar"] .mobile-menu-close {
    right: auto;
    left: 2rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ===== LOADER & THEME TRANSITION ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease, background-color 0.5s ease;
}

/* Theme Change Ripple Effect */
.theme-change-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 9998;
    transition: transform 1s cubic-bezier(0.33, 1, 0.68, 1), opacity 1s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    position: absolute;
    box-shadow: 0 0 20px var(--accent-glow);
}

.loader-lines {
    width: 60px;
    height: 60px;
    position: relative;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

header.scrolled {
    background-color: var(--header-bg);
    padding: 1rem 4rem;
    backdrop-filter: blur(10px);
}

body.light-mode header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    position: relative;
    z-index: 2;
}

nav ul {
    display: flex;
    gap: 3rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-close span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    position: absolute;
    top: 50%;
    left: 0;
    border-radius: 1px;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(3px);
}

.nav-link {
    position: relative;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0;
}

body.light-mode .nav-link {
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-medium);
}

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

.language-switcher {
    position: relative;
    z-index: 2;
    margin-right: 1.5rem;
}

body[data-language="ar"] .language-switcher {
    margin-right: 0;
    margin-left: 1.5rem;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 25px;
    background-color: var(--accent-color);
    border-radius: 25px;
    padding: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all var(--transition-medium);
    box-shadow: 0 2px 10px var(--accent-glow);
    overflow: hidden;
}

body.light-mode .theme-toggle {
    box-shadow: 0 4px 15px rgba(206, 117, 40, 0.3);
}

.theme-toggle-handle {
    position: relative;
    width: 19px;
    height: 19px;
    background-color: var(--bg-color);
    border-radius: 50%;
    transition: transform var(--transition-medium), background-color var(--transition-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body[data-language="ar"] .theme-toggle {
    direction: ltr;
    /* Force LTR for the toggle regardless of page direction */
}

.theme-toggle-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 12px;
}

.theme-toggle-icon.sun {
    opacity: 0;
    transform: scale(0.5);
}

.theme-toggle-icon.moon {
    opacity: 1;
    transform: scale(1);
}

body.light-mode .theme-toggle-handle {
    transform: translateX(25px);
}

body[data-language="ar"].light-mode .theme-toggle-handle {
    transform: translateX(-25px);
}

body.light-mode .theme-toggle-icon.sun {
    opacity: 1;
    transform: scale(1);
}

body.light-mode .theme-toggle-icon.moon {
    opacity: 0;
    transform: scale(0.5);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
    z-index: -1;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    perspective: 1000px;
}

.lang-option {
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.lang-option.active {
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text-container {
    position: relative;
    z-index: 3;
}

.hero-cta {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 2.5s forwards;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(206, 117, 40, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.2) 50%, transparent 75%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(206, 117, 40, 0.4);
    color: var(--bg-color);
}

@keyframes shimmer {
    0% {
        background-position: -100% -100%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(206, 117, 40, 0.1), rgba(206, 117, 40, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(206, 117, 40, 0.2);
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 10%;
    animation: float 6s ease-in-out infinite 1s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 25%;
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particle-canvas {
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: pulseIndicator 2s infinite;
}

@keyframes pulseIndicator {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: scrollArrow 2s infinite;
}

@keyframes scrollArrow {
    0% {
        transform: rotate(45deg) translate(-5px, -5px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(5px, 5px);
        opacity: 0;
    }
}

/* ===== WORK SECTION ===== */
.work-section {
    padding: 8rem 4rem;
    position: relative;
}

/* Creative Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1000;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

body.light-mode .scroll-progress-container {
    background-color: rgba(0, 0, 0, 0.05);
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--accent-color);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

body.light-mode .project-card {
    box-shadow: var(--card-shadow);
    background-color: var(--card-bg);
}

body.light-mode .project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 3, 3, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

body.light-mode .project-overlay {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(0px);
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

/* Ensure image is visible on hover in light mode */
body.light-mode .project-card:hover .project-image img {
    opacity: 1;
}

.project-info {
    padding: 1.5rem 0;
}

body.light-mode .project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-dim);
    font-size: 1rem;
}

.project-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.nav-button {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--text-dim);
    border-radius: 30px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    z-index: -1;
    transition: width var(--transition-medium);
}

.nav-button:hover {
    color: var(--dark-bg);
    border-color: var(--accent-color);
}

.nav-button:hover::before {
    width: 100%;
}

.more-work {
    display: flex;
    justify-content: center;
}

.more-work-btn {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

body.light-mode .more-work-btn {
    box-shadow: var(--button-shadow);
}

.more-work-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    z-index: -1;
    transition: width var(--transition-medium);
}

.more-work-btn:hover {
    color: var(--dark-bg);
}

.more-work-btn:hover::before {
    width: 100%;
}

/* ===== PURPOSE SECTION ===== */
.purpose-section {
    padding: 8rem 4rem;
    position: relative;
    overflow: hidden;
}

body.light-mode .purpose-section {
    background-color: var(--section-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.03) inset;
}

.purpose-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.purpose-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.purpose-text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.animated-text {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding-bottom: 1rem;
}

.animated-text.visible {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 8rem 4rem;
    position: relative;
}

body.light-mode .contact-section {
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    padding: 2rem;
}

body.light-mode .contact-form {
    background-color: var(--section-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-family: inherit;
    resize: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(206, 117, 40, 0.15);
    border-color: var(--accent-color);
}

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

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    pointer-events: none;
    transition: all var(--transition-medium);
    color: var(--text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.7;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label {
    top: -1rem;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-medium);
}

.form-group input:focus~.input-line,
.form-group textarea:focus~.input-line {
    width: 100%;
}

.submit-btn {
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 1rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

body.light-mode .submit-btn {
    box-shadow: var(--button-shadow);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    z-index: -1;
    transition: width var(--transition-medium);
}

.submit-btn:hover {
    color: var(--dark-bg);
}

.submit-btn:hover::before {
    width: 100%;
}

.contact-map {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.light-mode .map-container {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

#jeddah-map {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
}

.map-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 3s forwards ease-in-out;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.office-location {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        r: 8;
        opacity: 1;
    }

    50% {
        r: 12;
        opacity: 0.7;
    }

    100% {
        r: 8;
        opacity: 1;
    }
}

.office-info {
    padding: 1.5rem;
}

body.light-mode .office-info {
    background-color: var(--section-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-top: 2rem;
}

.office-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.office-info p {
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

/* ===== FOOTER ===== */
footer {
    padding: 4rem;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
}

body.light-mode footer {
    background-color: var(--section-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-dim);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-medium);
}

body.light-mode .social-icon {
    border: 1px solid var(--border-color);
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.copyright {
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.copyright-text {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Hide custom cursor on mobile devices */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }

    body {
        cursor: auto !important;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: -4px;
    transform: translate(0, 0);
    transition: transform 0.1s ease;
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -20px;
    transform: translate(0, 0);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

    header {
        padding: 1.5rem 2rem;
    }

    header.scrolled {
        padding: 1rem 2rem;
    }

    .work-section,
    .purpose-section,
    .contact-section {
        padding: 6rem 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-section {
        height: 90vh;
    }

    .project-image {
        aspect-ratio: 4/3;
    }

    .animated-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu Styles */
    .mobile-menu-toggle {
        display: flex;
    }

    body.light-mode .mobile-menu-toggle span {
        background-color: var(--text-color);
    }

    /* Fix for hero title on mobile */
    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Arabic title needs even smaller font */
    body[data-language="ar"] .hero-title {
        font-size: 2.2rem;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--header-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 6rem 2rem 2rem;
        z-index: 99;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), left 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        /* box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3); */
        backdrop-filter: blur(10px);
        overflow-y: auto;
    }

    body.light-mode .nav-container {
        /* box-shadow: -5px 0 20px rgba(0, 0, 0, 0); */
    }

    body.menu-open .nav-container {
        right: 0;
        display: flex !important;
    }

    body[data-language="ar"].menu-open .nav-container {
        right: auto;
        left: 0;
        display: flex !important;
    }

    body.menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-close {
        display: block;
        position: fixed;
    }

    body.light-mode .mobile-menu-close span {
        background-color: var(--text-color);
    }

    body.light-mode .mobile-menu-overlay {
        background-color: rgba(0, 0, 0, 0.5);
    }

    nav {
        width: 100%;
        margin-bottom: 2rem;
        display: block !important;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        width: 100%;
        display: flex !important;
    }

    .nav-link {
        font-size: 1.5rem;
        display: block;
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    body.light-mode .nav-link {
        color: var(--text-color);
    }

    body.light-mode[data-language="ar"] .nav-link {
        font-weight: normal;
    }

    .language-switcher {
        margin-top: 2rem;
    }

    /* Other Mobile Styles */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .project-image {
        aspect-ratio: 16/9;
    }

    .project-info {
        text-align: center;
    }

    .purpose-text {
        gap: 1.5rem;
    }

    .animated-text {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    .contact-form {
        padding: 1rem 0;
    }

    .footer-content {
        gap: 1.5rem;
    }

    /* Adjust padding for mobile */
    header {
        padding: 1.5rem 2rem;
    }

    .hero-section {
        padding-top: 6rem;
        justify-content: flex-start;
        padding-top: 10rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 1rem;
    }

    /* Even smaller hero title for very small screens */
    .hero-title {
        font-size: 2rem;
    }

    body[data-language="ar"] .hero-title {
        font-size: 2rem;
    }

    .logo {
        transform: scale(0.8);
    }

    .mobile-menu-toggle {
        width: 25px;
        height: 18px;
        margin-right: 0;
    }

    header {
        justify-content: space-between;
    }

    .nav-container {
        width: 85%;
        padding: 4rem 1.5rem;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .language-toggle {
        transform: scale(0.9);
    }

    .work-section,
    .purpose-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .hero-section {
        height: 100vh;
        padding: 0 1.5rem;
        padding-top: 5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        padding: 0;
        height: auto;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 auto;
        max-width: 280px;
    }

    .hero-cta {
        margin-top: 2rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 220px;
    }

    /* Adjust floating shapes for mobile */
    .shape-1 {
        width: 80px;
        height: 80px;
        top: 10%;
        left: 5%;
    }

    .shape-2 {
        width: 60px;
        height: 60px;
        top: 70%;
        right: 5%;
    }

    .shape-3 {
        width: 40px;
        height: 40px;
        bottom: 20%;
        left: 15%;
    }

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

    .section-title::after {
        width: 50px;
        height: 2px;
    }

    .project-card {
        margin-bottom: 0.5rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-desc {
        font-size: 0.9rem;
    }

    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-button {
        width: 100%;
    }

    .more-work-btn {
        width: 100%;
        margin-top: 1rem;
    }

    .animated-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 0.8rem;
    }

    .office-info h3 {
        font-size: 1.5rem;
    }

    .office-info p {
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .copyright-text {
        font-size: 0.8rem;
    }

    /* Improve touch targets for mobile */
    .nav-link,
    .lang-option,
    .social-icon,
    .more-work-btn,
    .submit-btn {
        padding: 0.8rem;
    }

    /* Improve map container on mobile */
    .map-container {
        height: 250px;
    }

    .map-container iframe {
        height: 100%;
    }

    /* Adjust contact form on mobile */
    .contact-container {
        gap: 2rem;
    }

    /* Adjust footer on mobile */
    footer {
        padding: 3rem 1.5rem;
    }
}

/* RTL Specific Adjustments */
body[data-language="ar"] .nav-link::after {
    left: auto;
    right: 0;
}

body[data-language="ar"] .form-group label {
    left: auto;
    right: 0;
}

body[data-language="ar"] .input-line {
    left: auto;
    right: 0;
}

body[data-language="ar"] .submit-btn::before {
    left: auto;
    right: 0;
}

body[data-language="ar"] .project-info {
    text-align: right;
}

body[data-language="ar"] .project-desc {
    direction: rtl;
}

body[data-language="ar"] .animated-text {
    direction: rtl;
}

body[data-language="ar"] .office-info {
    text-align: right;
}

/* Mobile Menu RTL Adjustments */
body[data-language="ar"] .nav-container {
    right: auto;
    left: -100%;
    /* box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3); */
}

body[data-language="ar"] .mobile-menu-close {
    right: auto;
    left: 2rem;
}

body[data-language="ar"].menu-open .nav-container {
    left: 0;
}

/* Additional Mobile-specific RTL adjustments */
@media (max-width: 768px) {
    body[data-language="ar"] .project-info {
        text-align: center;
    }

    body[data-language="ar"] .mobile-menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }

    body[data-language="ar"] .logo {
        margin-right: 0;
        margin-left: auto;
    }
}