/* ============================================
   SERIGNE ASSE GUEYE - PORTFOLIO FUTURISTE
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-primary: #f0f0f5;
    --text-secondary: #8a8aa3;
    --text-muted: #55556a;

    --accent-cyan: #00e5ff;
    --accent-purple: #a855f7;
    --accent-magenta: #ff00e5;
    --accent-blue: #3b82f6;

    --gradient-main: linear-gradient(135deg, #00e5ff 0%, #a855f7 50%, #ff00e5 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    --gradient-card: linear-gradient(145deg, rgba(15, 15, 40, 0.8) 0%, rgba(10, 10, 30, 0.9) 100%);

    --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

    --font-main: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    cursor: none;
}

::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 3px;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* === Custom Cursor === */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

body:hover .cursor,
body:hover .cursor-follower {
    opacity: 1;
}

.cursor.hover {
    transform: scale(3);
    background: rgba(0, 229, 255, 0.3);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(168, 85, 247, 0.5);
}

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

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    cursor: pointer;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-line {
    display: block;
}

.hero-line-accent {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    min-height: 1.8rem;
}

.typed-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-cyan);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-main);
    color: #050510;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === Hero Stats === */
.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* === Hero Image === */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 460px;
    border-radius: 24px;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-image-border {
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: var(--gradient-main);
    z-index: -1;
    opacity: 0.6;
    animation: rotate-border 8s linear infinite;
}

@keyframes rotate-border {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 16, 0.8) 100%);
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(15px);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-badge i {
    color: var(--accent-cyan);
}

.floating-badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.floating-badge-2 {
    bottom: 25%;
    left: -30px;
    animation-delay: 2s;
}

.floating-badge-3 {
    bottom: 5%;
    right: -10px;
    animation-delay: 4s;
}

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

/* === Scroll Indicator === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fade-scroll 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0; }
}

@keyframes fade-scroll {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === Sections === */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 2px;
}

/* === About Section === */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-intro strong {
    color: var(--accent-cyan);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-highlights {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: var(--transition);
}

.highlight:hover {
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.03);
}

.highlight i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    width: 24px;
    text-align: center;
}

.highlight strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.highlight span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: var(--shadow-neon);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.info-card-icon i {
    font-size: 1.3rem;
    color: var(--accent-cyan);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

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

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.timeline-content {
    padding: 1.5rem 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: var(--shadow-neon);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.timeline-badge-role {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-purple);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-company i {
    color: var(--accent-cyan);
    margin-right: 0.25rem;
    font-size: 0.85rem;
}

.timeline-details {
    margin-bottom: 1rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    opacity: 0.5;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* === Skills Section === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category {
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: var(--shadow-neon);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 10px;
}

.skill-icon i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: var(--gradient-main);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* === Tech Orbit === */
.tech-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.orbit-center span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-align: center;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 229, 255, 0.1);
}

.orbit-ring-1 {
    width: 250px;
    height: 250px;
    margin-left: -125px;
    margin-top: -125px;
    animation: orbit-rotate 30s linear infinite;
}

.orbit-ring-2 {
    width: 370px;
    height: 370px;
    margin-left: -185px;
    margin-top: -185px;
    animation: orbit-rotate 45s linear infinite reverse;
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-item {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    margin-left: -22px;
    margin-top: -22px;
    transform: rotate(var(--angle)) translateX(calc(var(--ring-radius, 125px))) rotate(calc(-1 * var(--angle)));
}

.orbit-ring-1 .orbit-item {
    --ring-radius: 125px;
    animation: orbit-counter-rotate 30s linear infinite;
}

.orbit-ring-2 .orbit-item {
    --ring-radius: 185px;
    animation: orbit-counter-rotate 45s linear infinite reverse;
}

@keyframes orbit-counter-rotate {
    from { transform: rotate(var(--angle)) translateX(var(--ring-radius)) rotate(calc(-1 * var(--angle) - 0deg)); }
    to { transform: rotate(var(--angle)) translateX(var(--ring-radius)) rotate(calc(-1 * var(--angle) - 360deg)); }
}

.orbit-item i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

/* === Projects Section === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: var(--shadow-neon);
}

.project-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-card-featured .project-card-image {
    aspect-ratio: auto;
}

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

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

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

/* === Video in Project Cards === */
.project-card-video {
    position: relative;
    overflow: hidden;
}

.project-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-video-overlay {
    opacity: 1;
    background: rgba(5, 5, 16, 0.4);
}

.project-video-overlay.playing {
    opacity: 0;
}

.project-video-overlay.playing:hover {
    opacity: 1;
}

.project-play-btn {
    border: none;
    cursor: pointer;
}

.project-play-btn i {
    margin-left: 3px;
}

.project-card-gradient {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(168, 85, 247, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-gradient-alt {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(255, 0, 229, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-gradient-third {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(0, 229, 255, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon-large {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
}

.project-card-content {
    padding: 2rem;
}

.project-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.project-tags span {
    padding: 0.2rem 0.65rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === Gallery Section === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-neon);
}

.gallery-item-large {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(5, 5, 16, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Gallery Video Items === */
.gallery-item-video {
    grid-column: span 1;
}

.gallery-item-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-video:hover video {
    transform: scale(1.1);
}

.gallery-video-overlay {
    opacity: 1;
    background: linear-gradient(transparent 20%, rgba(5, 5, 16, 0.7));
    align-items: center;
    justify-content: center;
}

.gallery-video-overlay.playing {
    opacity: 0;
}

.gallery-video-overlay.playing:hover {
    opacity: 1;
}

.gallery-play-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.9);
    color: var(--bg-primary);
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.gallery-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.gallery-play-btn i {
    margin-left: 3px;
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(20px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

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

/* === Contact Section === */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.03);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-item-icon i {
    color: var(--accent-cyan);
}

.contact-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-item strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
    transform: translateY(-3px);
}

/* === Contact Form === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.4s ease;
}

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

/* === Footer === */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

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

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

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

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

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* staggered children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* === Language Switcher === */
.lang-switcher {
    position: relative;
    z-index: 1002;
    margin-left: 1rem;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-current:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-neon);
}

.lang-current i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    color: var(--accent-cyan);
}

.lang-switcher.open .lang-current i {
    transform: rotate(180deg);
}

.lang-flag {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.lang-option:hover {
    background: rgba(0, 229, 255, 0.05);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.08);
}

.lang-option .lang-flag {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* === RTL Support (Arabic) === */
html[dir="rtl"] {
    font-family: 'Noto Sans Arabic', var(--font-main);
}

html[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', var(--font-main);
}

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

html[dir="rtl"] .hero-content {
    direction: rtl;
}

html[dir="rtl"] .hero-description,
html[dir="rtl"] .about-text p,
html[dir="rtl"] .about-intro,
html[dir="rtl"] .contact-info > p {
    text-align: right;
}

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

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

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

html[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

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

html[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 3rem;
}

html[dir="rtl"] .timeline-details li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .timeline-details li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .timeline-company i {
    margin-right: 0;
    margin-left: 0.25rem;
}

html[dir="rtl"] .highlight {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .info-card {
    text-align: right;
}

html[dir="rtl"] .info-card::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

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

html[dir="rtl"] .form-group label {
    left: auto;
    right: 0;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    text-align: right;
}

html[dir="rtl"] .form-line {
    left: auto;
    right: 0;
}

html[dir="rtl"] .section-header {
    text-align: center;
}

html[dir="rtl"] .contact-info h3 {
    text-align: right;
}

html[dir="rtl"] .skill-category {
    text-align: right;
}

html[dir="rtl"] .skill-category-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .project-card-content {
    text-align: right;
}

html[dir="rtl"] .project-tags,
html[dir="rtl"] .timeline-tags {
    flex-direction: row-reverse;
}

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

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

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

html[dir="rtl"] .floating-badge-1 {
    right: auto;
    left: -20px;
}

html[dir="rtl"] .floating-badge-2 {
    left: auto;
    right: -30px;
}

html[dir="rtl"] .floating-badge-3 {
    right: auto;
    left: -10px;
}

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

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 360px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .project-card-featured {
        grid-template-columns: 1fr;
    }

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

    .tech-orbit {
        width: 320px;
        height: 320px;
    }

    .orbit-ring-1 {
        width: 200px;
        height: 200px;
        margin-left: -100px;
        margin-top: -100px;
    }

    .orbit-ring-2 {
        width: 300px;
        height: 300px;
        margin-left: -150px;
        margin-top: -150px;
    }

    .orbit-ring-1 .orbit-item { --ring-radius: 100px; }
    .orbit-ring-2 .orbit-item { --ring-radius: 150px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 16, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 0.75rem;
    }

    html[dir="rtl"] .lang-switcher {
        margin-left: 0.75rem;
        margin-right: auto;
    }

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

    .hero-image-wrapper {
        width: 260px;
        height: 320px;
    }

    .floating-badge {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item-large {
        grid-row: span 1;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .tech-orbit {
        width: 280px;
        height: 280px;
    }

    .orbit-ring-1 {
        width: 180px;
        height: 180px;
        margin-left: -90px;
        margin-top: -90px;
    }

    .orbit-ring-2 {
        width: 260px;
        height: 260px;
        margin-left: -130px;
        margin-top: -130px;
    }

    .orbit-ring-1 .orbit-item { --ring-radius: 90px; }
    .orbit-ring-2 .orbit-item { --ring-radius: 130px; }

    .orbit-item {
        width: 36px;
        height: 36px;
        margin-left: -18px;
        margin-top: -18px;
    }

    .orbit-item i {
        font-size: 1rem;
    }

    /* Hide custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

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

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .timeline::before {
        left: 0;
    }

    html[dir="rtl"] .timeline::before {
        left: auto;
        right: 0;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    html[dir="rtl"] .timeline-item {
        padding-left: 0;
        padding-right: 2rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
}
