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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

:root {
    --white: #FFFFFF;
    --gray: #fdfdfd;
    --bg: linear-gradient(135deg, #667eea 0%, #49b595 25%, #76eeda 50%, #4facfe 75%, #00f2fe 100%);
    --bg-solid: #667eea;
    --magical-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(102, 126, 234, 0.3);
    --font1: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font2: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --first-letter: #ffd700;
    --focus-outline: 3px solid #4facfe;
    --focus-outline-offset: 2px;
    --accent-primary: #ffffff;
    --accent-secondary: #f093fb;
    --accent-tertiary: #00f2fe;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

@viewport {
    user-zoom: fixed;
}

.scroll-point {
    scroll-snap-align: start;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.5);
}

body {
    background: var(--bg);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    font-family: var(--font1);
    font-size: 2vw;
    overflow-x: visible;
    -webkit-text-size-adjust: none;
    user-zoom: fixed;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    background-attachment: fixed;
}

@keyframes gradientShift {
    0% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
    100% { 
        background-position: 0% 50%; 
    }
}

/* Allow text selection for better UX */
body {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Remove ugly default outlines on click */
*:focus {
    outline: none !important;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border: none !important;
}

button:active,
a:active {
    outline: none !important;
    border: none !important;
}

/* Focus indicators for accessibility (keyboard navigation only) */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

body::-webkit-scrollbar {
    width: 3px;
}
   
body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3);
}
   
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    opacity: 0.8;
}

body::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

.banner-screen {
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
    background: transparent;
}

#banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/*---------------------------------------------------*/
/*____________________Screen1________________________*/
/*---------------------------------------------------*/
.banner-click-area {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    outline: none !important;
}

.banner-click-area:focus {
    outline: none !important;
}

.banner-click-area:active {
    outline: none !important;
    border: none !important;
}

.hello {
    display: flex; 
    align-items: center;
    max-width: min-content;
    left: 35%; 
    position: relative;
    font-size: 10vw;
    font-weight: 800;
    padding-top: 10vh;
    width: 100%;
    text-shadow: none;
    transform-origin: 50% 50%;
    transform: rotateY(-180deg);
    transition: transform 0.3s ease;
    letter-spacing: -0.02em;
    gap: 0.2em;
}

.hello-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hello-photo-wrapper {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border-radius: 50%;
    overflow: hidden;
    vertical-align: middle;
    border: 0.15em solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.6),
                0 0 60px rgba(240, 147, 251, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transition: all 0.3s ease;
    position: relative;
}

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1vw;
    padding: 1.5vh 3vw;
    margin-top: 3vh;
    color: var(--white);
    text-decoration: none;
    border-radius: 2vh;
    font-size: 2vh;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.resume-download-btn:hover,
.resume-download-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4),
                0 0 20px rgba(240, 147, 251, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none !important;
}

.resume-download-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.resume-download-btn i {
    font-size: 2.5vh;
}

.resume-download-link {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.resume-download-link i {
    font-size: 1.8vh;
}

.hello-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
    margin: 0;
    padding: 0;
}

#banner:hover .hello,
.banner-click-area:focus .hello {
    animation: straighten-hello 0.5s ease-in-out forwards;
}

#banner:hover .hello-photo-wrapper,
.banner-click-area:focus .hello-photo-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(79, 172, 254, 0.8),
                0 0 80px rgba(240, 147, 251, 0.6),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes straighten-hello {
    0% {
        transform-origin: 50% 50%;
        transform: rotateY(-180deg);
    }
    50% {
        transform-origin: 50% 50%;
        transform: perspective(800px) rotateY(0deg) translateZ(-50px);
    }
    100% {
        transform-origin: 0% 0%;
        transform: rotateY(0deg);
    }
}

.name-input {
    color: var(--text-primary);
    font-size: 3vh;
    font-weight: 500;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    text-align: center;
    caret-color: var(--accent-primary);
    visibility: hidden;
    opacity: 40%;
    display: inline-flex; 
    width: 60%;
    left: 20%; 
    position: relative;
    padding: 2vh 3vw;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input.name-input:focus {
    outline: none !important;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

input.name-input:focus-visible {
    opacity: 1;
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/*---------------------------------------------------*/
/*____________________Screen2________________________*/
/*---------------------------------------------------*/
.glassmorphism-shadowed {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glassmorphism-shadowed:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(79, 172, 254, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

#intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 5vh 0;
    background: transparent;
}

.images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5vh 5vw;
}

.card1 {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(240, 147, 251, 0.3));
    width: 300px;
    height: 300px;
    min-width: 250px;
    max-width: 350px;
    aspect-ratio: 1/1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    opacity: 0.95;
    animation: cardGlow 4s ease-in-out infinite;
    flex-shrink: 0;
    overflow: hidden;
}

.card1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.4),
                    0 0 60px rgba(240, 147, 251, 0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(79, 172, 254, 0.6),
                    0 0 80px rgba(240, 147, 251, 0.4);
    }
}

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

.img {
    width: 80%;
    height: 80%;
    aspect-ratio: 1/1;
    border-radius: 50%; 
    object-fit: cover;
}

.card2 {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 700px;
    min-width: 300px;
    position: relative;
    border-radius: 25px;
    opacity: 0.95;
    padding: 4vh 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 500px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    font-family: var(--font2);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    background-size: 200% 200%;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-text:hover {
    background-size: 200% 200%;
    filter: brightness(1.2);
    transform: scale(1.05);
}

#description {
    text-align: justify; 
    margin: 0;
    padding: 0;
    font-size: 2vh;
    overflow-x: visible;
    line-height: 1.8;
    width: 100%;
}

@media only screen and (max-width: 1500px) {
    #description {
        font-size: 1.8vh;
    }
    
    .card1 {
        width: 280px;
        height: 280px;
    }
    
    .card2 {
        max-width: 650px;
    }
}

@media only screen and (max-width: 1200px) {
    .images {
        gap: 4vw;
        padding: 4vh 3vw;
    }
    
    .card1 {
        width: 250px;
        height: 250px;
    }
    
    .card2 {
        max-width: 600px;
        padding: 3vh 2.5vw;
    }
    
    #description {
        font-size: 1.6vh;
    }
}

@media only screen and (max-width: 800px) {
    #intro {
        padding: 3vh 0;
    }
    
    .images {
        flex-direction: column;
        gap: 3vh;
        padding: 3vh 2vw;
    }
    
    .card1 {
        width: 200px;
        height: 200px;
        min-width: 180px;
        max-width: 220px;
    }
    
    .card2 {
        width: 95%;
        max-width: 100%;
        padding: 3vh 2.5vw;
        min-width: 280px;
    }
    
    #description {
        font-size: 1.4vh;
        line-height: 1.6;
    }
}

#description::first-letter {
    font-size: 500%;
    font-family: var(--font2);
    line-height: 0vw;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/*--------------------------------------------------------*/
/*_______________________Screen3__________________________*/
/*--------------------------------------------------------*/
.competencies {
    font-size: 4vw;
    font-weight: 700;
    text-align: center;
    padding-top: 8vh;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: var(--font2);
}

.vl {
    border-left: 3px solid #fffdfd;
    align-self: stretch;
    min-height: 400px;
    opacity: 30%;
    flex-shrink: 0;
    margin: 0;
}

#skills {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 95%;
    margin: 0 auto;
    padding: 4vh 2vw 5vh 2vw;
    gap: 2vw;
}

.skill-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
}

.skills-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1vw;
    margin-top: 1.5vh;
}

.empty-block-element {
    height: 1.5vh;
    width: 100%;
    flex-shrink: 0;
}

.skill-icons {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.048);
    border-radius: 10%;
    filter: brightness(0%) invert(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-icons:hover {
    filter: unset;
    transform: scale(1.1);
}

.skill-square {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    padding: 1vh;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Main skill icons (larger) */
.skill-column > .skill-square:first-child {
    width: 12vw;
    min-width: 100px;
    max-width: 150px;
    height: 12vw;
    min-height: 100px;
    max-height: 150px;
}

/* Sub skill icons (smaller) */
.skills-row .skill-square {
    width: 5.5vw;
    min-width: 60px;
    max-width: 80px;
    height: 5.5vw;
    min-height: 60px;
    max-height: 80px;
}

.skill-square:hover {
    transform: scale(1.05);
}

/* Tooltip Styles */
.skill-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.skill-square:hover .skill-tooltip {
    opacity: 1;
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

@media only screen and (max-width: 1200px) {
    #skills {
        flex-wrap: wrap;
        gap: 3vw;
        padding: 4vh 2vw;
    }
    
    .vl {
        display: none;
    }
    
    .skill-column {
        flex: 0 0 auto;
    }
    
    .skill-column > .skill-square:first-child {
        width: 10vw;
        min-width: 90px;
        max-width: 120px;
        height: 10vw;
        min-height: 90px;
        max-height: 120px;
    }
    
    .skills-row .skill-square {
        width: 5vw;
        min-width: 55px;
        max-width: 70px;
        height: 5vw;
        min-height: 55px;
        max-height: 70px;
    }
}

@media only screen and (max-width: 800px) {
    #skills {
        flex-direction: column;
        align-items: center;
        gap: 4vh;
    }
    
    .skill-column {
        width: 100%;
        max-width: 300px;
    }
    
    .skill-column > .skill-square:first-child {
        width: 80px;
        height: 80px;
    }
    
    .skills-row {
        justify-content: center;
        gap: 2vw;
    }
    
    .skills-row .skill-square {
        width: 50px;
        height: 50px;
    }
}

.rotateRight {
    animation: rotateRight 1s ease-in-out forwards;
} 

@keyframes rotateRight {
    0% {
        opacity: 1;
        transform-origin: 0 0;
        transform: perspective(800px) rotateY(0deg) translate3d(0px);
    }
    50% {
        opacity: 0.7;
        transform-origin: 50% 50%;
        transform: perspective(800px) rotateY(180deg) translate3d(50px);
        background-color: #222222;
    }
    100% {
        opacity: 1;
        transform-origin: 0 0;
        transform: perspective(800px) rotateY(360deg) translateZ(0px);
    }
}

.rotateLeft {
    animation: rotateLeft 1s ease-in-out forwards;
} 

@keyframes rotateLeft {
    0% {
        opacity: 1;
        transform-origin: 0 0;
        transform: perspective(800px) rotateY(0deg) translate3d(0px);
    }
    50% {
        opacity: 0.7;
        transform-origin: 50% 50%;
        transform: perspective(800px) rotateY(-180deg) translate3d(50px);
        background-color: #222222;
    }
    100% {
        opacity: 1;
        transform-origin: 0 0;
        transform: perspective(800px) rotateY(-360deg) translateZ(0px);
    }
}

/*--------------------------------------------------------*/
/*_____________________Projects Section__________________*/
/*--------------------------------------------------------*/
#details {
    padding: 0;
    overflow-y: auto;
    background: transparent;
}

#projects {
    padding: 0 5vw;
    overflow-y: auto;
    background: transparent;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2vw;
    padding: 4vh 0 5vh 0;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    padding: 3vh 2vw;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 2.5vh;
    margin-bottom: 2vh;
    color: var(--white);
    font-weight: bold;
}

.project-description {
    font-size: 1.8vh;
    line-height: 1.6;
    margin-bottom: 2vh;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1vh;
    margin-top: 2vh;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(240, 147, 251, 0.2));
    padding: 0.5vh 1.2vw;
    border-radius: 25px;
    font-size: 1.5vh;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.4), rgba(240, 147, 251, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

@media only screen and (max-width: 800px) {
    .projects-container {
        grid-template-columns: 1fr;
        padding: 2vh 2vw;
    }
    
    .project-card {
        min-height: 250px;
    }
}

/*--------------------------------------------------------*/
/*_____________________Experience Section________________*/
/*--------------------------------------------------------*/
#experience {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    background: transparent;
}

.experience-timeline-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4vh 5vw 5vh 5vw;
    position: relative;
    gap: 4vw;
    min-height: 600px;
    height: auto;
}

.timeline-line {
    position: absolute;
    left: 15%;
    top: 0;
    height: 100%;
    min-height: 600px;
    width: 4px;
    background: linear-gradient(to bottom, 
        rgba(79, 172, 254, 0.3), 
        rgba(240, 147, 251, 0.6), 
        rgba(0, 242, 254, 0.6),
        rgba(240, 147, 251, 0.6),
        rgba(79, 172, 254, 0.3));
    border-radius: 2px;
    z-index: 1;
    margin-left: -2px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.timeline-markers {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 15%;
    min-width: 200px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    min-height: 600px;
    z-index: 2;
    padding: 0 2vw 0 0;
    pointer-events: none;
}

.timeline-marker {
    pointer-events: all;
}

.timeline-marker {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    left: 0;
    right: auto;
    transform: none;
    gap: 1.5vw;
    padding: 0.5vh 0;
}

.timeline-marker:nth-child(1) {
    top: 5%;
}

.timeline-marker:nth-child(2) {
    top: 30%;
}

.timeline-marker:nth-child(3) {
    top: 55%;
}

.timeline-marker:nth-child(4) {
    top: 80%;
}

.timeline-marker:hover {
    transform: translateX(3px);
}

.marker-date-left {
    font-size: 1.5vh;
    color: var(--accent-primary);
    text-align: right;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 120px;
    padding-right: 1vw;
    transform: translateX(0);
    display: inline-block;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.timeline-marker:hover .marker-date-left,
.timeline-marker.active-marker .marker-date-left {
    color: var(--white);
    text-shadow: 0 0 20px rgba(79, 172, 254, 1),
                 0 0 30px rgba(240, 147, 251, 0.8);
}

.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 3px solid var(--white);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.6), 
                0 0 30px rgba(240, 147, 251, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    position: relative;
    flex-shrink: 0;
}

.timeline-marker:hover .marker-dot {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.8),
                0 0 50px rgba(240, 147, 251, 0.6);
    transform: scale(1.15);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-marker.active-marker .marker-dot {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    box-shadow: 0 0 40px rgba(79, 172, 254, 1),
                0 0 60px rgba(240, 147, 251, 0.8);
    transform: scale(1.2);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.8),
                    0 0 50px rgba(240, 147, 251, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(79, 172, 254, 1),
                    0 0 60px rgba(240, 147, 251, 0.8);
    }
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(79, 172, 254, 1),
                    0 0 60px rgba(240, 147, 251, 0.8);
    }
    50% {
        box-shadow: 0 0 50px rgba(79, 172, 254, 1.2),
                    0 0 80px rgba(240, 147, 251, 1);
    }
}

.timeline-marker.active-marker {
    transform: translateX(5px);
}

/* Active marker styling (applies to whichever marker is active) */
.timeline-marker.active-marker .marker-dot {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    box-shadow: 0 0 40px rgba(79, 172, 254, 1),
                0 0 60px rgba(240, 147, 251, 0.8);
    transform: scale(1.2);
    animation: activePulse 2s ease-in-out infinite;
}

.timeline-marker.active-marker .marker-date-left {
    color: var(--white);
    text-shadow: 0 0 20px rgba(79, 172, 254, 1),
                 0 0 30px rgba(240, 147, 251, 0.8);
}

.timeline-marker:focus {
    outline: none !important;
}

.timeline-marker:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 5px;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

.timeline-content-area {
    flex: 1;
    max-width: 65%;
    margin-left: 18%;
    position: relative;
    height: 600px;
    min-height: 600px;
    isolation: isolate;
}

.timeline-item {
    width: 100%;
    max-width: 900px;
    padding: 4vh 4vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: hidden;
    overflow-y: auto;
    max-height: 600px;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
    position: absolute;
    visibility: visible;
    animation: fadeInSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.timeline-year {
    font-size: 2.5vh;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5vh;
    width: 100%;
    text-align: left;
}

.timeline-content {
    width: 100%;
}

.timeline-title {
    font-size: 3vh;
    margin-bottom: 0.5vh;
    margin-top: 0;
    color: var(--white);
    width: 100%;
    text-align: left;
    position: relative;
}

.timeline-company {
    font-size: 1.8vh;
    color: var(--accent-tertiary);
    margin-bottom: 1.5vh;
    font-style: italic;
    width: 100%;
    text-align: left;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.timeline-description {
    font-size: 1.8vh;
    line-height: 1.8;
    margin-bottom: 2vh;
    width: 100%;
    text-align: justify;
}

.timeline-description {
    font-size: 1.6vh;
    line-height: 1.8;
    margin: 1.5vh 0;
    text-align: left;
}

.timeline-contributions {
    margin-top: 2vh;
}

.contributions-heading {
    font-size: 1.8vh;
    font-weight: 600;
    margin-bottom: 1vh;
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.6);
}

.timeline-list {
    list-style: none;
    padding-left: 0;
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1vh 2vw;
}

.timeline-list li {
    font-size: 1.5vh;
    line-height: 1.6;
    padding: 0.5vh 1vw;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

@media only screen and (max-width: 1200px) {
    .experience-timeline-container {
        flex-direction: column;
        gap: 3vh;
        padding: 4vh 3vw;
    }
    
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        width: 2px;
        min-height: 400px;
        top: 0;
    }
    
    .timeline-markers {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        min-width: auto;
        padding: 0;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        height: auto;
        min-height: auto;
    }
    
    .timeline-marker {
        position: relative;
        left: auto;
        transform: none;
        width: auto;
        flex-direction: column;
        align-items: center;
        gap: 1vh;
    }
    
    .timeline-marker:nth-child(1),
    .timeline-marker:nth-child(2),
    .timeline-marker:nth-child(3),
    .timeline-marker:nth-child(4) {
        top: auto;
    }
    
    .marker-date-left {
        text-align: center;
        min-width: auto;
        padding-right: 0;
        font-size: 1.3vh;
    }
    
    .timeline-marker:hover {
        transform: scale(1.1);
    }
    
    .timeline-marker.active-marker {
        transform: scale(1.15);
    }
    
    .timeline-content-area {
        max-width: 100%;
        width: 100%;
        margin-top: 8vh;
        margin-left: 0;
        height: 500px;
        min-height: 500px;
    }
    
    .timeline-item {
        max-width: 100%;
        padding: 3vh 3vw;
        position: absolute;
        max-height: 500px;
    }
    
    .marker-date {
        font-size: 1.2vh;
    }
}

@media only screen and (max-width: 800px) {
    #experience {
        padding: 3vh 0;
    }
    
    .experience-timeline-container {
        padding: 3vh 2vw;
    }
    
    .timeline-item {
        padding: 2.5vh 2.5vw;
    }
    
    .timeline-year {
        font-size: 2vh;
    }
    
    .timeline-title {
        font-size: 2.5vh;
    }
    
    .timeline-description {
        font-size: 1.6vh;
    }
    
    .timeline-list li {
        font-size: 1.3vh;
        padding: 0.4vh 0.8vw;
    }
    
    .contributions-heading {
        font-size: 1.6vh;
    }
    
    .timeline-description {
        font-size: 1.4vh;
    }
    
    .marker-date {
        font-size: 1vh;
    }
    
    .marker-dot {
        width: 16px;
        height: 16px;
    }
    
    .timeline-marker:hover .marker-dot {
        width: 20px;
        height: 20px;
    }
}

/*--------------------------------------------------------*/
/*_____________________Footer_____________________________*/
/*--------------------------------------------------------*/
.svg-bg {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.svg-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#footer {
    position: relative;
    padding-top: 5vh;
    margin-top: 5vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3vw;
    padding: 5vh 5vw;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.footer-navigation,
.footer-social,
.footer-contact {
    padding: 2vh 1vw;
}

.footer-heading {
    font-size: 2.5vh;
    margin-bottom: 2vh;
    color: var(--white);
    font-weight: bold;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.footer-navigation li {
    margin: 0;
    width: 100%;
    height: auto;
}

.footer-navigation li a {
    display: flex;
    width: 100%;
    padding: 1.5vh 2vw;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    border-radius: 2vh;
    transition: all 0.3s ease;
}

.footer-navigation li a:hover,
.footer-navigation li a:focus {
    color: var(--gray);
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    outline: none !important;
}

.footer-navigation li a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1.5vh;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1vw;
    padding: 1.5vh 2vw;
    color: var(--white);
    text-decoration: none;
    border-radius: 2vh;
    transition: all 0.3s ease;
}

.social-link:hover,
.social-link:focus {
    color: var(--gray);
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    outline: none !important;
}

.social-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.social-link i {
    font-size: 2.5vh;
    width: 30px;
    text-align: center;
}

.contact-info {
    font-size: 1.8vh;
    margin-bottom: 1.5vh;
    display: flex;
    align-items: center;
    gap: 1vw;
}

.contact-info i {
    font-size: 2vh;
    width: 25px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.contact-info a:focus {
    color: var(--accent-tertiary);
    text-decoration: underline;
    outline: none !important;
}

.contact-info a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-copyright {
    text-align: center;
    padding: 3vh 0;
    font-size: 1.5vh;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

@media only screen and (max-width: 800px) {
    .footer-content {
        grid-template-columns: 1fr;
        padding: 3vh 3vw;
    }
    
    .footer-navigation ul {
        display: flex;
        flex-direction: column;
    }
    
    .social-links {
        flex-direction: column;
    }
}

/*--------------------------------------------------------*/
/*_____________________Scroll to Top Button______________*/
/*--------------------------------------------------------*/
.scroll-to-top {
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    width: 50px;
    height: 50px;
    background: rgba(41, 45, 102, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    background: rgba(41, 45, 102, 1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    outline: none !important;
}

.scroll-to-top:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.scroll-to-top img {
    width: 60%;
    height: 60%;
    filter: brightness(0) invert(1);
}

@media only screen and (max-width: 800px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1vh;
        right: 1vw;
    }
    
    .resume-download-btn {
        padding: 1.2vh 2.5vw;
        font-size: 1.8vh;
        gap: 0.8vw;
    }
    
    .resume-download-btn i {
        font-size: 2vh;
    }
}
