/* 
  Theme: Neon Future - Full Site
  Fonts: Outfit (EN), Cairo (AR)
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Colors */
    --bg-dark: #090a0f;
    --bg-card: #13141c;
    --bg-card-hover: #1c1e2a;
    --primary-cyan: #00f3ff;
    --primary-purple: #bc13fe;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --divider: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --glow-gradient: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));

    /* Misc */
    --border-radius: 50px;
    --card-radius: 20px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Font Families */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-en);
    overflow-x: hidden;
    min-height: 100vh;
    transition: opacity 0.6s ease;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 1. Neon Gradient Flow Background */
body::before {
    content: '';
    position: fixed;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;

    /* Deep Blue, Electric Purple, Black blend */
    background:
        radial-gradient(circle at 15% 50%, rgba(90, 45, 130, 0.4), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(11, 28, 45, 0.45), transparent 50%),
        radial-gradient(circle at 50% 50%, #05060A, transparent 100%),
        linear-gradient(125deg, #05060A 0%, #0B1C2D 40%, #5A2D82 100%);

    background-size: 200% 200%;
    filter: blur(40px);
    z-index: -2;

    /* Slow elegant movement */
    animation: neon-flow 25s ease-in-out infinite alternate;

    /* Subtle Parallax */
    transform: translate(calc((var(--mouse-x-norm, 0.5) - 0.5) * 6px),
            calc((var(--mouse-y-norm, 0.5) - 0.5) * 6px));
    transition: transform 0.1s linear;
}

@keyframes neon-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 2. Ultra-light Noise Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: overlay;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

body.loading {
    opacity: 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    border-bottom: 2px solid var(--primary-cyan);
    padding-bottom: 0.5rem;
}

/* --- Header & Nav --- */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 10;
}

.logo-star {
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 5px var(--primary-cyan));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-star {
    transform: rotate(180deg) scale(1.2);
    filter: drop-shadow(0 0 10px var(--primary-cyan));
    color: var(--primary-purple);
}

.nav-controls {
    display: flex;
    gap: 1rem;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-toggle:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* --- Hero Section --- */
.hero-wrapper {
    padding-top: 8rem;
    /* Account for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
    z-index: 10;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Fix alignment */
    align-items: flex-start;
}

[dir="rtl"] .text-content {
    align-items: flex-start;
    /* RTL normally handles flip, but just ensuring visual consistency */
}

.name-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.name-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    font-weight: 700;
}

.hero-name {
    font-size: 4rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    position: relative;
    margin: 0;
    /* Remove default margins to prevent gaps */
}

.hero-name:hover {
    animation: subtle-glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--text-main);
    text-shadow: 2px 0 var(--primary-purple), -2px 0 var(--primary-cyan);
}

/* Tooltip Fixed Position */
.availability-tooltip {
    position: absolute;
    /* Move tooltip to the right of the name */
    left: 100%;
    top: 50%;
    transform: translate(20px, -50%) scale(0.9);

    background: rgba(19, 20, 28, 0.9);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-bounce);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Arrow for tooltip */
.availability-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent var(--primary-cyan) transparent transparent;
}

.name-wrapper:hover .availability-tooltip {
    opacity: 1;
    transform: translate(20px, -50%) scale(1);
}

/* RTL Adjustment for Tooltip */
[dir="rtl"] .availability-tooltip {
    left: auto;
    right: 100%;
    transform: translate(-20px, -50%) scale(0.9);
}

[dir="rtl"] .availability-tooltip::before {
    left: auto;
    right: -6px;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent var(--primary-cyan);
}

[dir="rtl"] .name-wrapper:hover .availability-tooltip {
    transform: translate(-20px, -50%) scale(1);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 550px;
}

/* Buttons */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Primary Button (Hire Me) */
.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-cyan), #00c3ff);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.btn-primary:hover {
    color: #000;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
    transform: translateY(-3px);
    border: none;
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

/* Secondary Button (See My Work) */
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    position: relative;
    backdrop-filter: blur(5px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-purple), #ff00ea);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-secondary:hover {
    border-color: transparent;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.5);
    transform: translateY(-3px);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Legendary LinkedIn Button */
.btn-linkedin {
    background: transparent;
    border: 1px solid rgba(0, 119, 181, 0.4);
    color: #fff;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-linkedin i {
    color: #0077b5;
    font-size: 1.3rem;
    transition: transform 0.5s ease;
}

.btn-linkedin::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #0077b5, transparent 70%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    animation: nebula-pulse 4s ease-in-out infinite;
}

.btn-linkedin:hover {
    border-color: #0077b5;
    box-shadow: 0 0 30px rgba(0, 119, 181, 0.5);
    transform: translateY(-5px) scale(1.05);
    color: #fff;
}

.btn-linkedin:hover::before {
    opacity: 0.2;
}

.btn-linkedin:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* Visual - Static Profile, moving rings */
.visual-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    /* Static glow + Dynamic Pulse */
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 4s ease-in-out infinite;
}

.profile-img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    /* Subtle float */
    animation: float-profile 6s ease-in-out infinite;
}

.tech-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.c1 {
    width: 105%;
    height: 105%;
    border: 2px dashed rgba(0, 243, 255, 0.3);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: spin 15s linear infinite;
}

.c2 {
    width: 125%;
    height: 125%;
    border: 1px solid rgba(188, 19, 254, 0.2);
    border-left: 2px solid rgba(188, 19, 254, 0.8);
    border-right: 2px solid rgba(188, 19, 254, 0.8);
    animation: spin-rev 20s linear infinite;
}

/* Animations */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 70px rgba(0, 243, 255, 0.25), 0 0 20px rgba(188, 19, 254, 0.1);
    }
}

@keyframes float-profile {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- About Section --- */
.about-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* --- Services (What I Do) Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.project-media {
    width: 100%;
    height: 220px;
    background: #000;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1a1c24, #2d3142);
    font-size: 5rem;
    color: var(--primary-cyan);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.project-card:hover .project-placeholder-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-purple);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover .video-overlay {
    opacity: 0;
}

.video-overlay i {
    font-size: 3rem;
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 10px var(--primary-cyan));
}

/* Video Lightbox Specifics */
.lightbox video {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    outline: none;
}

.project-content {
    padding: 1.5rem;
}

/* End of Project Media Styles */

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-tag {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 243, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.tag-new {
    background: var(--glow-gradient);
    color: #000;
    font-weight: 700;
    border: none;
}

.tag-demo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 700;
    border: none;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.featured-project {
    border: 1px solid rgba(188, 19, 254, 0.3);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.1);
}

.featured-project:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.3);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.project-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Certifications Section --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.cert-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.cert-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.15);
    z-index: 2;
}

.cert-img-wrapper {
    width: 100%;
    height: 220px;
    background: #1a1c24;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed to cover for better fill, but centered */
    object-position: center;
    transition: transform 0.6s ease;
    opacity: 0.9;
    cursor: pointer;
}

.cert-item:hover .cert-img {
    transform: scale(1.1);
    opacity: 1;
}

.cert-info {
    padding: 1.5rem;
    text-align: left;
    background: linear-gradient(to bottom, var(--bg-card), rgba(0, 0, 0, 0.2));
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[dir="rtl"] .cert-info {
    text-align: right;
}

.cert-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
}

.cert-issuer {
    font-size: 0.9rem;
    color: var(--primary-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Process Section --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.step {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--primary-purple);
    border-radius: 0 var(--cad-radius) var(--cad-radius) 0;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -1rem;
    display: block;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* --- Contact Section --- */
.contact-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-container {
    width: 100%;
    max-width: 700px;
    background: rgba(19, 20, 28, 0.6);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Neon animated border effect */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: scan-line 4s linear infinite;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--primary-cyan);
    margin-left: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-en);
    transition: all 0.3s ease;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

.submit-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #000;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    letter-spacing: 2px;
}

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

[dir="rtl"] .form-group label {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* --- Footer --- */
footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: #050608;
}

/* --- Footer Social & Logo Animations --- */

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    /* Required for transform */
}

.social-links a:hover {
    color: #fff;
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--primary-cyan), 0 0 30px var(--primary-purple);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    cursor: default;
    /* 1. Neon Pulse Animation */
    animation: neon-pulse 3s ease-in-out infinite alternate;
}

/* 2. Neon Pulse Keyframes */
@keyframes neon-pulse {
    from {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.4),
            0 0 20px rgba(188, 19, 254, 0.2);
    }

    to {
        text-shadow: 0 0 15px rgba(0, 243, 255, 0.7),
            0 0 30px rgba(188, 19, 254, 0.5),
            0 0 40px rgba(0, 243, 255, 0.3);
    }
}

/* 3. Animated Underline */
.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.footer-logo:hover::after {
    width: 100%;
}

/* --- Animation Classes --- */
@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-rev {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes float-profile {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 70px rgba(0, 243, 255, 0.25), 0 0 20px rgba(188, 19, 254, 0.1);
    }
}

/* Scramble Effect Characters */

@keyframes subtle-glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    100% {
        transform: translate(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RTL Support --- */
[dir="rtl"] {
    font-family: var(--font-ar);
}

[dir="rtl"] .step {
    border-left: none;
    border-right: 2px solid var(--primary-purple);
}

[dir="rtl"] .social-links a {
    margin-left: 0;
    margin-right: 1.5rem;
}

[dir="rtl"] .nav-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-toggle {
    flex-direction: row-reverse;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .text-content {
        align-items: center;
    }

    .profile-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@keyframes nebula-pulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .c1,
    .c2 {
        animation: none;
    }
}