@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

:root {
    --blue: #2f80ff;
    --blue-light: #63a4ff;
    --dark: #07111f;
    --dark-card: #0d1a2c;
    --dark-light: #12243c;
    --white: #f8fbff;
    --gray: #9cacbf;
    --border: rgba(255, 255, 255, 0.10);
}

/* Light Theme Variables */
.light-theme {
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --dark: #ffffff;
    --dark-card: #f8fafc;
    --dark-light: #f1f5f9;
    --white: #0f172a;
    --gray: #64748b;
    --border: rgba(0, 0, 0, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--white);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
color: inherit;
text-decoration: none;
}

.background-glow {
position: fixed;
width: 550px;
height: 550px;
border-radius: 50%;
filter: blur(130px);
opacity: 0.12;
z-index: -1;
}

.glow-one {
top: -250px;
right: -180px;
background: var(--blue);
}

.glow-two {
bottom: 0;
left: -300px;
background: #1866d9;
}

/* Navigation */

.navbar {
    width: 100%;
    height: 82px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgba(7, 17, 31, 0.80);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.90);
}

.logo {
font-family: "Outfit", sans-serif;
font-size: 25px;
font-weight: 800;
}

.logo span {
color: var(--blue);
}

nav {
display: flex;
gap: 30px;
}

nav a {
    color: #b7c3d3;
    font-size: 14px;
    transition: 0.25s;
}

.light-theme nav a {
    color: #64748b;
}

nav a:hover {
    color: var(--white);
}

.light-theme nav a:hover {
    color: #0f172a;
}

.nav-button,
.primary-button {
    background: linear-gradient(
        135deg,
        #2f80ff,
        #1662d6
    );
    padding: 13px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.25s;
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
}

.light-theme .nav-button,
.light-theme .primary-button {
    border: 1px solid rgba(0,0,0,0.1);
}

.nav-button:hover,
.primary-button:hover {
transform: translateY(-3px);
box-shadow: 0 15px 35px rgba(47, 128, 255, 0.28);
}

.primary-button {
display: inline-flex;
gap: 10px;
align-items: center;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 9px;
    border: 1px solid var(--border);
    color: var(--white);
    transition: 0.25s;
}

.light-theme .secondary-button {
    color: #0f172a;
}

[dir="rtl"] .secondary-button span[data-i18n="contact.phone"] {
    direction: ltr;
    unicode-bidi: embed;
}

.secondary-button:hover {
border-color: var(--blue);
background: rgba(47, 128, 255, 0.08);
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    color: white;
    font-size: 23px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.light-theme .menu-button {
    color: #0f172a;
}

/* Nav Controls - Language & Theme */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.25s;
}

.light-theme .theme-toggle {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
}

.theme-toggle:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

.language-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.light-theme .lang-btn {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
}

.lang-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.light-theme .lang-dropdown {
    background: white;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.light-theme .lang-option {
    color: #0f172a;
}

.lang-option:hover,
.lang-option.active {
    background: var(--blue);
    color: white;
}

/* RTL Support */
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-flag {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

.hero {
min-height: 100vh;
padding: 145px 8% 80px;
display: grid;
grid-template-columns: 1.1fr 0.9fr;
align-items: center;
gap: 70px;
}

.hello,
.section-heading > p,
.contact-box > p {
    color: var(--blue-light);
    letter-spacing: 4px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* RTL language adjustments */
[dir="rtl"] .hello,
[dir="rtl"] .section-heading > p {
    letter-spacing: 0;
    line-height: 1.4;
}

.hero h1 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1.1;
    letter-spacing: -3px;
    min-height: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[dir="rtl"] .hero h1 {
    letter-spacing: 0;
    line-height: 1.3;
}

.hero h1 span,
.section-heading h2 span {
color: var(--blue);
}

.hero h2 {
    color: #c5d0de;
    font-size: 25px;
    margin-top: 20px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[dir="rtl"] .hero h2 {
    letter-spacing: 0;
    line-height: 1.4;
}

.light-theme .hero h2 {
    color: #475569;
}

.hero-description {
    color: var(--gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 24px 0 31px;
    font-size: 15px;
}

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

@media (max-width: 600px) {
    .hero-buttons {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .hero-buttons .primary-button,
    .hero-buttons .secondary-button {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }
}

.social-links {
display: flex;
gap: 12px;
margin-top: 32px;
}

.social-links a,
.footer-socials a {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #c5d0de;
    transition: 0.25s;
}

.light-theme .social-links a,
.light-theme .footer-socials a {
    color: #475569;
}

.social-links a:hover,
.footer-socials a:hover {
background: var(--blue);
color: white;
transform: translateY(-3px);
}

/* Hero Image */

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

.image-border {
    width: min(420px, 90vw);
    height: min(520px, 115vw);
    padding: 6px;
    border-radius: 32px;
    background: linear-gradient(
        60deg,
        #001f3f,
        #003366,
        #004080,
        #0059b3,
        #0073e6,
        #0088ff,
        #00a3ff,
        #00bfff,
        #00d4ff,
        #001f3f
    );
    background-size: 300% 300%;
    animation: gradientBorder 4s ease infinite;
    box-shadow: 0 0 30px rgba(0, 115, 230, 0.4),
                0 0 60px rgba(0, 136, 255, 0.3),
                0 0 90px rgba(0, 191, 255, 0.2);
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.light-theme .image-border {
    background: linear-gradient(
        60deg,
        #003366,
        #0059b3,
        #0073e6,
        #0088ff,
        #00a3ff,
        #00bfff,
        #00d4ff,
        #0059b3
    );
    background-size: 300% 300%;
    animation: gradientBorder 4s ease infinite;
    box-shadow: 0 0 30px rgba(0, 89, 179, 0.4),
                0 0 60px rgba(0, 115, 230, 0.3),
                0 0 90px rgba(0, 191, 255, 0.2);
}

.image-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 20px;
    background: var(--dark-light);
}

.experience-card,
.developer-card {
    position: absolute;
    background: rgba(13, 26, 44, 0.88);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    border-radius: 13px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 10;
}

.light-theme .experience-card,
.light-theme .developer-card {
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.developer-card {
    top: 16px;
    left: -20px;
    display: flex;
    gap: 11px;
    align-items: center;
}

.experience-card {
    bottom: 16px;
    right: -20px;
}

@media (max-width: 600px) {
    .developer-card {
        top: 10px;
        left: -10px;
        padding: 10px;
        gap: 6px;
        max-width: 140px;
    }
    
    .developer-card strong {
        font-size: 16px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .developer-card span {
        font-size: 9px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .developer-card i {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .experience-card {
        bottom: 10px;
        right: -10px;
        padding: 12px;
    }
    
    .experience-card strong {
        font-size: 20px;
    }
    
    .experience-card span {
        font-size: 10px;
    }
}

.experience-card strong {
display: block;
font-size: 28px;
color: var(--blue-light);
}

.developer-card i {
color: var(--blue);
font-size: 22px;
}

.developer-card strong {
display: block;
font-size: 28px;
color: var(--blue-light);
}

.experience-card span,
.developer-card span {
color: var(--gray);
font-size: 11px;
line-height: 1.5;
}

/* Sections */

.section {
padding: 110px 8%;
}

.dark-section {
    background:
        linear-gradient(
            180deg,
            rgba(14,30,50,0.7),
            rgba(7,17,31,0.9)
        );
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.light-theme .dark-section {
    background:
        linear-gradient(
            180deg,
            rgba(241,245,249,0.8),
            rgba(255,255,255,0.95)
        );
}

.section-heading {
max-width: 680px;
margin-bottom: 55px;
}

.section-heading.center {
margin-left: auto;
margin-right: auto;
text-align: center;
}

.section-heading h2 {
font-family: "Outfit", sans-serif;
font-size: clamp(34px, 5vw, 52px);
line-height: 1.1;
letter-spacing: -1.5px;
word-wrap: break-word;
overflow-wrap: break-word;
}

[dir="rtl"] .section-heading h2 {
    letter-spacing: 0;
    line-height: 1.3;
}

/* About */

.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 70px;
}

.about-text p {
color: var(--gray);
line-height: 1.9;
margin-bottom: 20px;
}

.about-text .primary-button {
margin-top: 15px;
}

.about-cards {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}

.info-card {
    padding: 23px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255,255,255,0.025);
    transition: 0.25s;
}

.light-theme .info-card {
    background: rgba(0,0,0,0.02);
}

.info-card i {
width: 50px;
height: 50px;
display: grid;
place-items: center;
border-radius: 11px;
color: var(--blue-light);
background: rgba(47,128,255,0.10);
}

.info-card h3 {
font-size: 16px;
margin-bottom: 5px;
}

.info-card p {
color: var(--gray);
font-size: 13px;
}

/* Skills */

.skills-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 17px;
}

.skill-card {
    padding: 29px 20px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    transition: 0.3s;
}

.light-theme .skill-card {
    background: rgba(0,0,0,0.02);
}

.skill-card:hover {
transform: translateY(-7px);
border-color: rgba(47,128,255,0.5);
background: rgba(47,128,255,0.06);
}

.skill-card i {
color: var(--blue);
font-size: 33px;
margin-bottom: 17px;
}

.skill-card h3 {
font-size: 15px;
}

.skill-card p {
color: var(--gray);
font-size: 11px;
margin-top: 7px;
}

/* Projects */

.projects-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--dark-card);
    transition: 0.3s;
}

.light-theme .project-card {
    background: white;
}

.project-card:hover {
transform: translateY(-8px);
border-color: rgba(47,128,255,0.45);
}

.project-image {
    height: 210px;
    background: #12243c;
    overflow: hidden;
    position: relative;
}

.light-theme .project-image {
    background: #e2e8f0;
}

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

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

.project-gradient {
display: grid;
place-items: center;
background:
radial-gradient(
circle at top,
#2678f1,
#0c1b30 70%
);
}

.project-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    font-size: 34px;
}

.light-theme .project-icon {
    background: rgba(0,0,0,0.1);
}

.featured-label {
position: absolute;
top: 15px;
right: 15px;
padding: 7px 10px;
border-radius: 20px;
background: var(--blue);
font-size: 9px;
font-weight: 800;
letter-spacing: 1px;
}

.project-content {
padding: 26px;
}

.project-type {
color: var(--blue-light);
font-size: 10px;
letter-spacing: 1.5px;
font-weight: 700;
}

.project-content h3 {
font-family: "Outfit";
font-size: 23px;
margin: 11px 0;
}

.project-content > p {
color: var(--gray);
font-size: 13px;
line-height: 1.75;
}

.project-tags {
display: flex;
flex-wrap: wrap;
gap: 7px;
margin: 20px 0;
}

.project-tags span {
padding: 6px 9px;
border-radius: 5px;
background: rgba(47,128,255,0.09);
color: #b8d4ff;
font-size: 10px;
}

.project-link {
color: var(--blue-light);
font-size: 13px;
font-weight: 600;
}

.project-link i {
margin-left: 6px;
}

/* Timeline */

.timeline {
max-width: 850px;
border-left: 1px solid rgba(47,128,255,0.35);
margin-left: 10px;
}

.timeline-item {
position: relative;
padding: 0 0 50px 42px;
}

.timeline-dot {
position: absolute;
left: -7px;
top: 6px;
width: 13px;
height: 13px;
border-radius: 50%;
background: var(--blue);
box-shadow: 0 0 0 5px rgba(47,128,255,0.12);
}

.timeline-date {
color: var(--blue-light);
font-size: 12px;
font-weight: 700;
}

.timeline-content h3 {
font-size: 21px;
margin: 10px 0 5px;
}

.timeline-content h4 {
    color: #c5d0de;
    font-size: 14px;
}

.light-theme .timeline-content h4 {
    color: #64748b;
}

.timeline-content p {
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 15px;
}

.certificate-container {
    margin-top: 20px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.certificate-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(47, 128, 255, 0.25), 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--blue);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.certificate-image:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(47, 128, 255, 0.35), 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--blue-light);
}

.light-theme .certificate-image {
    box-shadow: 0 15px 50px rgba(47, 128, 255, 0.2), 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--blue);
}

.light-theme .certificate-image:hover {
    box-shadow: 0 20px 60px rgba(47, 128, 255, 0.3), 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--blue-light);
}

@media (max-width: 600px) {
    .certificate-container {
        grid-template-columns: 1fr;
    }
}

/* Languages */

.languages-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--dark-card);
}

.light-theme .languages-card {
    background: white;
}

.language-item {
    margin-bottom: 25px;
}

.language-item:last-child {
    margin-bottom: 0;
}

.language-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.lang-flag-small {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.language-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}

.light-theme .language-name {
    color: #0f172a;
}

.language-percent {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-light);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(47, 128, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.light-theme .progress-bar {
    background: rgba(47, 128, 255, 0.08);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

@media (max-width: 600px) {
    .languages-card {
        padding: 25px 20px;
    }
    
    .language-header {
        gap: 10px;
    }
    
    .lang-flag-small {
        width: 24px;
        height: 24px;
    }
    
    .language-name {
        font-size: 14px;
    }
    
    .language-percent {
        font-size: 13px;
    }
}

/* Contact */

.contact-section {
padding: 110px 8%;
}

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

.contact-intro {
text-align: center;
margin-bottom: 50px;
}

.contact-description {
max-width: 700px;
margin: 0 auto;
color: var(--text-secondary);
line-height: 1.8;
font-family: "Plus Jakarta Sans", sans-serif;
font-size: 18px;
font-weight: 500;
}

.light-theme .contact-description {
    color: #475569;
}

.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
margin-bottom: 50px;
}

.service-card {
padding: 35px 25px;
border: 1px solid var(--border);
border-radius: 20px;
background: var(--dark-card);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
text-align: center;
}

.light-theme .service-card {
    background: white;
    border-color: #e2e8f0;
}

.service-card:hover {
transform: translateY(-8px);
border-color: var(--blue);
box-shadow: 0 20px 40px rgba(47, 128, 255, 0.15);
}

.light-theme .service-card:hover {
    box-shadow: 0 20px 40px rgba(47, 128, 255, 0.1);
}

.pos-card {
    background-image: url('images/pos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.pos-card .service-icon {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.pos-card h3,
.pos-card p {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.service-icon {
width: 70px;
height: 70px;
margin: 0 auto 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 16px;
background: linear-gradient(135deg, var(--blue), var(--blue-light));
font-size: 28px;
color: white;
}

.service-card h3 {
font-family: "Space Grotesk", sans-serif;
font-size: 18px;
font-weight: 600;
color: var(--white);
margin-bottom: 10px;
}

.light-theme .service-card h3 {
    color: #0f172a;
}

.service-card p {
font-family: "Plus Jakarta Sans", sans-serif;
font-size: 14px;
color: var(--text-secondary);
line-height: 1.6;
}

.light-theme .service-card p {
    color: #64748b;
}

.contact-cta {
text-align: center;
padding: 50px;
border: 2px solid var(--border);
border-radius: 24px;
background: linear-gradient(135deg, rgba(47, 128, 255, 0.05), rgba(47, 128, 255, 0.02));
}

.light-theme .contact-cta {
    background: linear-gradient(135deg, rgba(47, 128, 255, 0.03), rgba(47, 128, 255, 0.01));
    border-color: #e2e8f0;
}

.cta-text {
font-family: "Plus Jakarta Sans", sans-serif;
font-size: 16px;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 15px;
}

.light-theme .cta-text {
    color: #475569;
}

.cta-highlight {
font-family: "Space Grotesk", sans-serif;
font-size: 20px;
font-weight: 600;
color: var(--blue-light);
margin-bottom: 30px;
}

.light-theme .cta-highlight {
    color: var(--blue);
}

.contact-buttons {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cta {
        padding: 35px 20px;
    }
    
    .cta-highlight {
        font-size: 18px;
    }
    
    .contact-section {
        padding: 80px 6%;
    }
    
    .contact-description {
        font-size: 16px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 13px;
    }
}

/* Footer */

footer {
padding: 30px 8%;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
}

footer p {
    color: var(--gray);
    font-size: 12px;
}

.footer-socials {
display: flex;
gap: 8px;
}

/* RTL Support for timeline */
[dir="rtl"] .timeline {
    border-left: none;
    border-right: 1px solid rgba(47,128,255,0.35);
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: -7px;
}

[dir="rtl"] .timeline-item {
    padding: 0 42px 50px 0;
}

/* RTL Support for cards */
[dir="rtl"] .info-card {
    flex-direction: row;
}

[dir="rtl"] .info-card i {
    margin-left: 0;
    margin-right: 0;
}

/* RTL Support for hero */
[dir="rtl"] .availability span {
    margin-right: 0;
    margin-left: 7px;
}

[dir="rtl"] .hero-buttons,
[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

/* RTL Support for project link icon */
[dir="rtl"] .project-link i {
    margin-left: 0;
    margin-right: 6px;
    transform: scaleX(-1);
}

/* RTL Support for primary button icon */
[dir="rtl"] .primary-button i {
    transform: scaleX(-1);
}

/* Typing Animation */
.typing-cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--blue);
    animation: blink 1s infinite;
    margin-left: 2px;
}

[dir="rtl"] .typing-cursor {
    margin-left: 0;
    margin-right: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Mobile */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-controls {
        gap: 8px;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {

    .navbar {
        padding: 0 6%;
    }

    nav,
    .nav-button {
        display: none;
    }

    .menu-button {
        display: block;
    }

    nav.show {
        display: flex;
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        padding: 25px;
        flex-direction: column;
        text-align: center;
        background: #091524;
        border-bottom: 1px solid var(--border);
    }

    .light-theme nav.show {
        background: white;
    }

    [dir="rtl"] nav.show {
        left: auto;
        right: 0;
    }

    .hero,
    .section,
    .contact-section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-image {
        margin-top: 15px;
    }

    .developer-card {
        right: -5px;
    }

    [dir="rtl"] .developer-card {
        right: auto;
        left: -5px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-controls {
        position: absolute;
        right: 80px;
        top: 50%;
        transform: translateY(-50%);
    }

    [dir="rtl"] .nav-controls {
        right: auto;
        left: 80px;
    }

    .nav-controls h1 {
        margin: 0;
    }

    .nav-controls h1 span {
        font-size: 24px;
    }

    .nav-controls h1 .typing-name {
        animation-delay: 1s;
    }

    .nav-controls h1 .typing-cursor {
        animation-delay: 3s;
    }

}

@media (max-width: 430px) {

    .hero {
        padding-top: 125px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero h1 {
        font-size: 42px;
        padding: 0 5px;
    }

    .hero h2 {
        font-size: 18px;
        padding: 0 5px;
    }

    .hero-description {
        font-size: 14px;
        padding: 0 5px;
    }

    .hero-buttons .primary-button,
    .hero-buttons .secondary-button {
        padding: 10px 14px;
        font-size: 12px;
    }

    .experience-card {
        left: -5px;
        bottom: 25px;
    }

    [dir="rtl"] .experience-card {
        left: auto;
        right: -5px;
    }

    .developer-card {
        top: 30px;
    }

    .nav-controls {
        right: 70px;
    }

    [dir="rtl"] .nav-controls {
        right: auto;
        left: 70px;
    }

    .lang-btn span {
        display: none;
    }

    .lang-btn i {
        margin: 0;
    }

    .section-heading h2 {
        font-size: 32px;
        padding: 0 5px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-buttons a {
        justify-content: center;
    }

}
