@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --text-primary: #f8f9fa;
    --text-sec: #adb5bd;
    --accent: #e63946;
    --accent-glow: rgba(230, 57, 70, 0.4);
    
    --nav-bg: rgba(10, 10, 12, 0.85);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --sec-hero: radial-gradient(circle at top right, #1a1a24, #0a0a0c);
    --sec-about: linear-gradient(135deg, #0f172a, #0a0a0c);
    --sec-skills: linear-gradient(180deg, #1e1b4b, #0a0a0c);
    --sec-works: radial-gradient(circle at center, #18181b, #09090b);
    --sec-contact: linear-gradient(0deg, #2a0808, #0a0a0c);

    --transit: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: #0a0a0c;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: 
        linear-gradient(rgba(20, 20, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 20, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    animation: scanline-move 8s linear infinite;
    opacity: 0.4;
}

@keyframes scanline-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.glitch-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-slice:nth-child(1) { animation: glitch-1 12s steps(1) infinite; }
.glitch-slice:nth-child(2) { animation: glitch-2 15s steps(1) infinite; }
.glitch-slice:nth-child(3) { animation: glitch-3 18s steps(1) infinite; }

@keyframes glitch-1 {
    0%, 94%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
    95% { opacity: 0.03; clip-path: inset(20% 0 55% 0); transform: translateX(-3px); background: rgba(204, 0, 0, 0.02); }
    96% { opacity: 0.02; clip-path: inset(55% 0 25% 0); transform: translateX(4px); }
    97% { opacity: 0; clip-path: inset(0 0 100% 0); }
}

@keyframes glitch-2 {
    0%, 89%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
    90% { opacity: 0.025; clip-path: inset(40% 0 45% 0); transform: translateX(2px); }
    91% { opacity: 0.03; clip-path: inset(65% 0 15% 0); transform: translateX(-4px); background: rgba(240, 240, 240, 0.015); }
    92% { opacity: 0; clip-path: inset(0 0 100% 0); }
}

@keyframes glitch-3 {
    0%, 96%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
    97% { opacity: 0.02; clip-path: inset(10% 0 70% 0); transform: translateX(-2px); }
    98% { opacity: 0.03; clip-path: inset(75% 0 5% 0); transform: translateX(3px); background: rgba(0, 0, 0, 0.1); }
    99% { opacity: 0; clip-path: inset(0 0 100% 0); }
}

.static-noise {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='static'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23static)'/%3E%3C/svg%3E");
    opacity: 0;
    animation: static-flicker 0.15s steps(2) infinite;
}

@keyframes static-flicker {
    0% { opacity: 0; transform: translate(0, 0); }
    25% { opacity: 0.02; transform: translate(-1px, 1px); }
    50% { opacity: 0; transform: translate(1px, -1px); }
    75% { opacity: 0.015; transform: translate(0, 0); }
    100% { opacity: 0; transform: translate(0, 0); }
}

.flicker-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(240, 240, 240, 0.08) 20%, rgba(240, 240, 240, 0.12) 50%, rgba(240, 240, 240, 0.08) 80%, transparent 100%);
    opacity: 0;
    animation: flicker-line-move 10s linear infinite;
}

@keyframes flicker-line-move {
    0% { top: -2px; opacity: 0; }
    5% { opacity: 0; }
    6% { opacity: 1; }
    8% { opacity: 0; }
    50% { top: 50%; opacity: 0; }
    51% { opacity: 0.5; }
    52% { opacity: 0; }
    95% { top: 100%; opacity: 0; }
    96% { opacity: 0.8; }
    98% { opacity: 0; }
    100% { top: 100%; opacity: 0; }
}

.vhs-tracking {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(180deg, transparent 0px, transparent 3px, rgba(204, 0, 0, 0.01) 3px, rgba(204, 0, 0, 0.01) 4px);
    animation: vhs-track 0.5s steps(3) infinite;
    opacity: 0;
}

@keyframes vhs-track {
    0%, 90%, 100% { opacity: 0; transform: translateY(0); }
    92% { opacity: 0.5; transform: translateY(-2px); }
    94% { opacity: 0.3; transform: translateY(1px); }
    96% { opacity: 0; transform: translateY(0); }
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Special Elite', cursive;
    font-weight: normal;
    letter-spacing: 2px;
}

.title-glow {
    text-shadow: 0 0 15px var(--accent-glow);
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 3rem;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transit);
}

.logo {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 3px;
    z-index: 1001;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-sec);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transit);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: var(--transit);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: var(--transit);
}

/* Sections Base */
section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Backgrounds per Tab (Restored Old Transparent Backgrounds to let Global BG show) */
#home, #about, #portfolio, #works, #contact {
    background: transparent;
}

/* Canvas Particle */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* --- Hero Section --- */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 2.2rem;
    color: var(--text-sec);
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-family: 'Special Elite', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text-primary);
    transition: var(--transit);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 0;
}

.btn-filled {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-filled:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.hero-img {
    width: 600px;
    max-width: 100%;
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.2));
    animation: float 6s ease-in-out infinite;
}

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

/* --- Section Headers --- */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    filter: grayscale(20%);
    transition: var(--transit);
}
.about-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-sec);
    margin-bottom: 2rem;
}

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

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transit);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.glass-card p {
    color: var(--text-sec);
    font-size: 0.95rem;
}

.skill-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(230, 57, 70, 0.1);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

/* --- Works Section --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

.work-item {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transit);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    display: block;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
}

.work-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    filter: brightness(0.7) grayscale(30%);
    transition: var(--transit);
}

.work-item:hover .work-img {
    filter: brightness(1) grayscale(0%);
    transform: scale(1.05);
}

.work-img-wrapper {
    overflow: hidden;
}

.work-info {
    padding: 1.2rem;
}

.work-info p {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.contact-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transit);
}

.contact-card:hover {
    background: rgba(255,255,255,0.06);
    transform: scale(1.05);
    border-color: var(--accent);
}

.contact-card img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a img {
    width: 60px;
    height: 60px;
    filter: grayscale(100%) brightness(0) invert(1);
    transition: var(--transit);
}

.socials a:hover img {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 5px 15px var(--accent-glow));
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #050505;
    color: var(--text-sec);
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-glow);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hide default cursor on desktop */
@media screen and (min-width: 1024px) {
    body { cursor: none; }
    a, button, input, textarea, .work-item, .lang-btn, .close-btn { cursor: none !important; }
}

/* --- Timeline Section --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--glass-border);
    top: 0; bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent);
    border: 4px solid #0a0a0c;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    border-radius: 12px;
}

.timeline-content h4 {
    color: var(--text-sec);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* RTL Desktop Support for Timeline */
body.rtl .timeline-item:nth-child(odd) {
    right: 0; 
    left: auto;
}
body.rtl .timeline-item:nth-child(even) {
    right: 50%; 
    left: auto;
}
body.rtl .timeline-item:nth-child(odd) .timeline-dot {
    left: -10px; 
    right: auto;
}
body.rtl .timeline-item:nth-child(even) .timeline-dot {
    right: -10px; 
    left: auto;
}

/* --- Scroll To Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transit);
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn .arrow-up {
    position: absolute;
    color: var(--text-primary);
    font-size: 1.5rem;
    pointer-events: none;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.1s;
}

/* Filter & Search ... */
.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transit);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--text-sec);
    color: var(--text-sec);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transit);
    font-family: 'Special Elite', cursive;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Stats Section --- */
.stats-section {
    min-height: auto;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.stat-box p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Contact Form --- */
.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transit);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.form-btn {
    cursor: pointer;
    text-align: center;
    font-size: 1.1rem;
}

/* --- Full Screen Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 2.5rem;
    color: var(--text-sec);
    cursor: pointer;
    transition: var(--transit);
}

.close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.modal-body img {
    width: 300px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-details h2 {
    font-size: 2.2rem;
    margin-bottom: -10px;
}

.modal-details p {
    color: var(--text-sec);
    line-height: 1.8;
}

.modal-details .size {
    font-weight: bold;
    color: #fff;
}

.modal-btn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* --- Language Toggle & RTL Support --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    transition: var(--transit);
}

.lang-btn:hover {
    background: var(--accent);
    color: #fff;
}

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Inter', sans-serif;
}

body.rtl .nav-links li a::after {
    left: auto;
    right: 0;
}

body.rtl .hero-content, body.rtl .about-grid, body.rtl .modal-body {
    flex-direction: row-reverse;
}

body.rtl .modal-details {
    align-items: flex-start;
    text-align: right;
}

body.rtl .close-btn {
    right: auto;
    left: 25px;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 900px) {
    body::before { background-image: none; }
    body::after { background-image: none; }
    .glitch-overlay { display: none; }
    
    .hero-content, .about-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 { font-size: 3rem; }
    .hero-text h2 { font-size: 1.5rem; }
    
    .btn-group {
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 12, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.4s ease;
        padding-top: 2rem;
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .nav-links li a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    /* Hamburger Animation */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 5px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -5px); }

    .modal-body, body.rtl .modal-body {
        flex-direction: column;
        text-align: center;
    }
    .modal-details, body.rtl .modal-details {
        align-items: center;
        text-align: center;
    }

    .timeline-container::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
    body.rtl .timeline-container::after {
        left: auto;
        right: 20px;
    }
    body.rtl .timeline-item {
        padding-right: 50px;
        padding-left: 20px;
    }
    body.rtl .timeline-dot {
        left: auto !important;
        right: 10px !important;
    }
    
    .cursor-dot, .cursor-outline { display: none; }
}
@media screen and (max-width: 480px) {
    section { padding: 6rem 1.5rem 3rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .works-grid { grid-template-columns: 1fr; }
    .contact-card { width: 100%; justify-content: center; }
}
