/* BRUTALIST MINIMAL PORTFOLIO */
/* Ryad Benamara - Building Products, Not Apps */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #999999;
    --grid: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    color: var(--white);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 14px;
    letter-spacing: -0.02em;
    scroll-behavior: smooth;
}

/* SCROLL SNAP */
html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 80px;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* 3D BACKGROUND CANVAS */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

section {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* NAVIGATION */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--black);
    border-bottom: 1px solid var(--white);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    position: relative;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    border-bottom: 1px solid var(--white);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* FLOATING 3D SHAPES */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: float 15s infinite ease-in-out, rotate3d 20s infinite linear;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    border-radius: 50%;
    animation: float 18s infinite ease-in-out reverse, pulse 3s infinite ease-in-out;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 60%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: float 12s infinite ease-in-out, rotate3d 15s infinite linear reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-50px) translateX(-20px); }
    75% { transform: translateY(-30px) translateX(20px); }
}

@keyframes rotate3d {
    0% { transform: rotate(0deg) rotateY(0deg); }
    100% { transform: rotate(360deg) rotateY(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* PARALLAX LAYERS */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layer-1 {
    top: 0;
    left: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

.layer-2 {
    top: 0;
    right: 0;
    background: radial-gradient(circle at 80% 50%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    z-index: 2;
}

.hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* COMPUTER SCENE */
.computer-scene {
    width: 100%;
    max-width: 600px;
    perspective: 1000px;
}

.isometric-computer {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: sceneFloat 6s ease-in-out infinite;
}

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

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

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

@keyframes steam {
    0% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.1; transform: translateY(-5px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes rotate3d {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-tag {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    opacity: 0.6;
}

.hero-title {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line {
    transform: translateY(100%) rotateX(-90deg);
    transform-origin: top;
    opacity: 0;
}

.hero-title .line:nth-child(1) {
    animation: slideIn3D 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .line:nth-child(2) {
    animation: slideIn3D 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-title .line:nth-child(3) {
    animation: slideIn3D 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes slideIn3D {
    0% {
        transform: translateY(100%) rotateX(-90deg);
        opacity: 0;
    }
    50% {
        transform: translateY(50%) rotateX(-45deg);
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

.cursor {
    animation: blink 1s infinite;
}

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

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--white);
    max-width: 900px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

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

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item .label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

.meta-item .value {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.status-active {
    color: var(--white);
    position: relative;
}

.status-active::before {
    content: '●';
    color: #00ff00;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.scroll-text {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.4;
    transform-origin: center;
}

/* SECTION STYLING */
section {
    padding: 10rem 4rem;
    border-bottom: 1px solid var(--white);
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.section-number {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
}

/* ABOUT SECTION */
.about {
    background: var(--black);
}

.about-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
}

.about-left {
    z-index: 2;
}

.about-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-large {
    position: relative;
    z-index: 1;
}

.profile-image-large img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    filter: grayscale(50%) contrast(1.1);
    transition: all 0.5s ease;
}

.profile-image-large img:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.floating-cube {
    position: absolute;
    top: -50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    transform: rotate(45deg);
    animation: floatCube 6s ease-in-out infinite;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

@keyframes floatCube {
    0%, 100% {
        transform: rotate(45deg) translateY(0) rotateZ(0deg);
    }
    50% {
        transform: rotate(45deg) translateY(-30px) rotateZ(180deg);
    }
}

.about-large {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 400;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--white);
}

.about-block h3 {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.about-block p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* SKILLS SECTION - CENTERED WITH ICONS */
.skills {
    background: var(--black);
    text-align: center;
}

.skills-header {
    max-width: 900px;
    margin: 0 auto 5rem;
}

.skills-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    opacity: 0.5;
    margin-bottom: 2rem;
}

.skills-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.skills-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
    font-weight: 300;
}

/* TECH GRID */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.tech-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.7);
}

.tech-icon i {
    font-size: 80px;
}

.tech-item:hover .tech-icon {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.15);
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-item p {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tech-item:hover p {
    opacity: 1;
}

/* TECH STACK */
.skills {
    background: var(--black);
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stack-category {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.stack-category:hover {
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(10px);
}

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

.cat-num {
    font-size: 0.75rem;
    opacity: 0.4;
}

.cat-name {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 4rem;
}

.tech-items span {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.tech-items span:hover {
    opacity: 1;
    background: var(--white);
    color: var(--black);
}

/* WORK SECTION */
.work {
    background: var(--black);
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-item {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.work-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
    transition: width 0.5s ease;
}

.work-item:hover::before {
    width: 100%;
}

.work-item:hover {
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(15px);
}

.work-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.work-num {
    font-size: 0.8rem;
    opacity: 0.4;
}

.work-item h3 {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.work-desc {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 700px;
    margin-left: 4.5rem;
    margin-bottom: 1rem;
}

.work-tags {
    display: flex;
    gap: 0.8rem;
    margin-left: 4.5rem;
}

.work-tags span {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.5;
}

/* CONTACT SECTION */
.contact {
    background: var(--black);
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    opacity: 0.7;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: var(--white);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.contact-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover::after {
    left: 100%;
}

.contact-item:hover {
    padding-left: 4rem;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(20px);
}

.contact-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
    min-width: 120px;
}

.contact-value {
    font-size: 1.1rem;
    flex: 1;
}

.contact-arrow {
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-item:hover .contact-arrow {
    opacity: 1;
    transform: translateX(10px);
}

/* FOOTER */
.footer {
    padding: 3rem 4rem;
    background: var(--black);
    border-top: 1px solid var(--white);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.footer-year {
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-right {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .container,
    .nav-content,
    .hero,
    section,
    .footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .section-nav {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-right {
        order: -1;
    }
    
    .isometric-computer {
        max-width: 400px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 5rem);
    }
    
    .hero-meta {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-right {
        order: -1;
    }
    
    .profile-image-large img {
        width: 250px;
        height: 250px;
    }
    
    .floating-cube {
        width: 60px;
        height: 60px;
        top: -30px;
        right: 30px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 2rem;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
    }
    
    .tech-icon i {
        font-size: 60px;
    }
    
    .work-desc,
    .work-tags {
        margin-left: 0;
        padding-left: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .container,
    .nav-content,
    .hero,
    section,
    .footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .isometric-computer {
        max-width: 300px;
    }
    
    section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* SCROLL REVEAL ANIMATION */
.about, .skills, .work, .contact {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about.animate-in, .skills.animate-in, .work.animate-in, .contact.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
}

.scroll-reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* WORK ITEMS ANIMATION */
.work-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: var(--delay, 0s);
}

.work-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* STACK CATEGORIES ANIMATION */
.stack-category {
    opacity: 0;
    transform: translateX(-25px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: var(--delay, 0s);
}

.stack-category.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* CONTACT ITEMS ANIMATION */
.contact-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: var(--delay, 0s);
}

.contact-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* SECTION NUMBERS ANIMATION */
.section-number {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 0.3; }
}

/* SECTION TITLES ANIMATION */
.section-title {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* TECH ITEMS POP ANIMATION */
.tech-items span {
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.tech-items span:nth-child(1) { animation-delay: 0.1s; }
.tech-items span:nth-child(2) { animation-delay: 0.2s; }
.tech-items span:nth-child(3) { animation-delay: 0.3s; }
.tech-items span:nth-child(4) { animation-delay: 0.4s; }

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
}

/* SELECTION */
::selection {
    background: var(--white);
    color: var(--black);
}

/* SECTION NAVIGATION DOTS */
.section-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.nav-dot::before {
    content: attr(data-section);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.nav-dot:hover::before {
    opacity: 1;
}

/* SECTION TRANSITION OVERLAY */
.section-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    transition: opacity 0.3s ease;
}

.section-transition.active {
    opacity: 1;
}

/* GLOW EFFECT ON HOVER */
.work-item:hover .work-num,
.stack-category:hover .cat-num {
    color: #6366f1;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    animation: glowPulse 1.5s infinite;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(99, 102, 241, 0.8); }
    50% { text-shadow: 0 0 30px rgba(99, 102, 241, 1), 0 0 40px rgba(99, 102, 241, 0.5); }
}
