/* ===== CSS Variables ===== */
:root {
    --primary-color: #c9a962;
    --secondary-color: #e8d5a3;
    --accent-color: #a68b4b;
    --text-color: #f3eee4;
    --text-light: #9a9488;
    --bg-color: #0a0a0a;
    --bg-light: #121212;
    --bg-elevated: #181818;
    --border-color: #2a2a2a;
    --on-accent: #0a0a0a;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --gradient: linear-gradient(135deg, #a68b4b 0%, #c9a962 45%, #e8d5a3 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(201, 169, 98, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(166, 139, 75, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(201, 169, 98, 0.05), transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    color: var(--text-color);
}

h1 { 
    font-size: 3.5rem;
    text-align: center;
}
h2 { 
    font-size: 2.5rem;
    text-align: center;
}
h3 { 
    font-size: 1.75rem;
    text-align: center;
}
h4 {
    text-align: center;
}
h5 {
    text-align: center;
}
h6 {
    text-align: center;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.22) 0%, transparent 70%);
    opacity: 1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(166, 139, 75, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.typing-text {
    font-weight: 600;
    color: var(--primary-color);
}

.cursor {
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient);
    color: var(--on-accent);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 169, 98, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--on-accent);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.floating-card {
    width: 400px;
    height: 400px;
    background: var(--gradient);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(201, 169, 98, 0.15);
    animation: float 6s infinite ease-in-out;
    position: relative;
}

.floating-card::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(10, 10, 10, 0.25);
    border-radius: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* ===== Section Styles ===== */
section {
    padding: 6rem 0;
    position: relative;
    background-color: var(--bg-color);
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

/* Simple Elegant Fade Up Animation */
.project-card,
.skill-category {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.project-card.card-revealed,
.skill-category.card-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.15s; }
.project-card:nth-child(4) { transition-delay: 0.2s; }
.project-card:nth-child(5) { transition-delay: 0.25s; }
.project-card:nth-child(6) { transition-delay: 0.3s; }
.project-card:nth-child(7) { transition-delay: 0.35s; }
.project-card:nth-child(8) { transition-delay: 0.4s; }
.project-card:nth-child(9) { transition-delay: 0.45s; }
.project-card:nth-child(10) { transition-delay: 0.5s; }
.project-card:nth-child(11) { transition-delay: 0.55s; }
.project-card:nth-child(12) { transition-delay: 0.6s; }
.project-card:nth-child(13) { transition-delay: 0.65s; }
.project-card:nth-child(14) { transition-delay: 0.7s; }
.project-card:nth-child(15) { transition-delay: 0.75s; }
.project-card:nth-child(16) { transition-delay: 0.8s; }
.project-card:nth-child(17) { transition-delay: 0.85s; }
.project-card:nth-child(18) { transition-delay: 0.9s; }
.project-card:nth-child(19) { transition-delay: 0.95s; }
.project-card:nth-child(20) { transition-delay: 1s; }
.project-card:nth-child(21) { transition-delay: 1.05s; }

.skill-category:nth-child(1) { transition-delay: 0s; }
.skill-category:nth-child(2) { transition-delay: 0.15s; }
.skill-category:nth-child(3) { transition-delay: 0.3s; }
.skill-category:nth-child(4) { transition-delay: 0.45s; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

@keyframes pulse-glow {
    0%, 100% {
        width: 60px;
        opacity: 0.85;
    }
    50% {
        width: 80px;
        opacity: 1;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-light);
}

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

.about-image {
    position: relative;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--on-accent);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: scale(1.05) rotate(2deg);
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: var(--gradient);
    color: var(--on-accent);
    border-color: transparent;
    transform: translateY(-5px);
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 98, 0.35);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--on-accent);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(201, 169, 98, 0.08);
    border: 1px solid rgba(201, 169, 98, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--gradient);
    color: var(--on-accent);
    border-color: transparent;
    transform: translateY(-2px);
}

/* ===== Projects Section ===== */
.projects {
    background: var(--bg-light);
}

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

.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 98, 0.35);
}

.project-image {
    height: 250px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-app-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(20px);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--on-accent);
    border-color: transparent;
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.22);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Experience Section ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 18px;
    top: 0;
    width: 26px;
    height: 26px;
    background: var(--gradient);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.25);
}

.timeline-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.2);
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.timeline-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-light);
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-elevated);
    color: var(--text-color);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

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

.contact-form .btn {
    align-self: flex-start;
}

/* ===== Footer ===== */
.footer {
    background: #050505;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-light);
    margin: 0;
}

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

.footer-links a {
    color: var(--text-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .floating-card {
        width: 300px;
        height: 300px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .image-placeholder {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 3px;
    }
}

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

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .floating-card {
        width: 250px;
        height: 250px;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }
}

/* ===== Language Switcher ===== */
.language-switcher {
    margin-left: 1rem;
}

.lang-btn {
    background: var(--gradient);
    color: var(--on-accent);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.25);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.35);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

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

[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-title {
    text-align: center !important;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6 {
    text-align: center !important;
}

[dir="rtl"] .hero-title {
    text-align: center !important;
}

[dir="rtl"] .hero-description {
    text-align: center !important;
}

[dir="rtl"] .section-subtitle {
    text-align: center !important;
}

[dir="rtl"] .project-content h3 {
    text-align: center !important;
}

[dir="rtl"] .skill-category h3 {
    text-align: center !important;
}

[dir="rtl"] .about-text h3 {
    text-align: center !important;
}

[dir="rtl"] .contact-item h3 {
    text-align: center !important;
}

[dir="rtl"] .timeline-content h3 {
    text-align: center !important;
}

[dir="rtl"] .timeline-content h4 {
    text-align: center !important;
}

[dir="rtl"] .project-content h2 {
    text-align: center !important;
}

[dir="rtl"] .skill-category h2 {
    text-align: center !important;
}

[dir="rtl"] .about-text h2 {
    text-align: center !important;
}

[dir="rtl"] .contact-item h2 {
    text-align: center !important;
}

[dir="rtl"] .timeline-content h2 {
    text-align: center !important;
}

[dir="rtl"] .hero-text h2 {
    text-align: center !important;
}

[dir="rtl"] .section-subtitle h2 {
    text-align: center !important;
}

/* Center paragraphs and text content in RTL mode */
[dir="rtl"] p,
[dir="rtl"] .lead,
[dir="rtl"] .hero-description,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .project-content p,
[dir="rtl"] .about-text p {
    text-align: center !important;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
}

