body {
    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 700;
}

.nav {
    position: relative;
    display: flex;
    gap: 1rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: rgba(16, 185, 129, 0.8);
    z-index: 2;
}

.nav-slider {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 0.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.nav-slider.active {
    opacity: 1;
    transform: scale(1.2);
}

.timeline-card {
    background: black;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.timeline-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.year-circle {
    position: relative;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    background: black;
    border: 2px solid #10b981;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.timeline-item.visible .timeline-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }
}

/* Card Perspective Container */
.perspective {
    perspective: 1000px;
}

/* Tilt Card */
.tilt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.tilt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    
    background:
            radial-gradient(circle at bottom left, #ffffff10 35%, transparent 36%),
            radial-gradient(circle at top right, #ffffff10 35%, transparent 36%);
    
    background-repeat: no-repeat;
    background-size: 0% 0%, 0% 0%;
    background-position: bottom left, top right;
    
    transition: background-size 0.6s linear;
    pointer-events: none;
    border-radius: 1rem;
}

.tilt-card:hover::before {
    background-size: 80% 80%, 80% 80%;
}

/* Card Hover 3D Tilt */
.tilt-card:hover {
    transform: rotateY(8deg) rotateX(6deg) scale(1.02);
    box-shadow: -10px 9px 0px 0px rgba(16, 185, 129, 0.4);
}

/* Year Node Circle */
.year-node {
    animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Pulse Glow for Year Node */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }
}

/* Scroll Fade-in */
.publication-card {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.hover-3d{
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card {
    box-shadow: -10px 10px 0px 0px rgba(16, 185, 129, 0.4);
}

/* Education Card */
.education-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.education-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at bottom left, #ffffff10 35%, transparent 36%),
        radial-gradient(circle at top right, #ffffff10 35%, transparent 36%);

    background-repeat: no-repeat;
    background-size: 0% 0%, 0% 0%;
    background-position: bottom left, top right;

    transition: background-size 0.6s linear;
    pointer-events: none;
    border-radius: 1rem;
}

.education-card:hover::before {
    background-size: 80% 80%, 80% 80%;
}

/* Card Hover 3D Tilt */
.education-card:hover {
    transform: scale(1.2) translateY(-6px);
}

/* Skill */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
}

.skill-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    scale: 1.05;
    transform: scale(1.05) rotateZ(-1deg);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.skill-card svg {
    transition: transform 0.3s ease;
}

.skill-card:hover svg {
    transform: rotate(-10deg);
}

/*! Kepla 
* copyright Kepla JS by @w3nabil 
*/ 

.kepla-typewriting-cursor {
    display: inline-block;
    width: 1px;
    height: 1em;
    background: rgba(255, 255, 255, 0.7);
    margin-left: 4px;
    vertical-align: bottom;
    animation: kepla-typewriting-blink 1s infinite;
}

@keyframes kepla-typewriting-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.kepla-typewriting-skeleton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.kepla-typewriting-skeleton-line {
    height: 0.75em;
    border-radius: 4px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.12) 37%,
            rgba(255, 255, 255, 0.05) 63%);
    background-size: 600px 100%;
    animation: kepla-shimmer 1.4s infinite linear;
}

@keyframes kepla-shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

