html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    width: 100%;
    margin: 0px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow-x: hidden;
}

.wlcm-txt {
    color: white;
    position: fixed;
    top: 20%;
    left: 20%;
    font-size: 30px;
}

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

.black_body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

.white_body {
    background-color: rgb(232, 232, 232);
}

.abt_body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

#main_canv {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: -1;
    transition: 1s;
}

.timeline {
    height: 40px;
    width: 80px;
    border-radius: 8px;
}

a {
    text-decoration: none;
    color: white;
}

nav button {
    cursor: pointer;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.8px;
    border-radius: 20px;
    width: 100px;
    margin: 0px 8px;
    padding: 0;
    position: relative;
    overflow: visible; /* Changed from hidden to visible for mobile */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 0 0 rgba(0, 212, 255, 0);
    text-transform: uppercase;
    animation: floatButton 3s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: auto !important;
    z-index: 100000 !important; /* Very high z-index for mobile compatibility */
    touch-action: manipulation !important; /* Better touch handling on mobile */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    -webkit-touch-callout: none; /* Disable long press menu on mobile */
    user-select: none; /* Prevent text selection on tap */
}

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

nav button:nth-child(1) {
    animation-delay: 0s;
}

nav button:nth-child(2) {
    animation-delay: 0.2s;
}

nav button:nth-child(3) {
    animation-delay: 0.4s;
}

nav button:nth-child(4) {
    animation-delay: 0.6s;
}

nav button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none !important;
}

/* nav button:hover::before removed - no hover effects */

@keyframes shimmer {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

nav button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.4) 0%,
        rgba(131, 56, 236, 0.3) 50%,
        rgba(255, 0, 110, 0.2) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease;
    z-index: -1;
    opacity: 0;
    animation: pulseGlow 2s ease-in-out infinite;
    pointer-events: none !important;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
}

/* nav button:hover::after removed - no hover effects */

@keyframes pulseGlowHover {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6),
                    0 0 0 0 rgba(131, 56, 236, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0),
                    0 0 0 25px rgba(131, 56, 236, 0);
    }
}

/* Hover effect removed - only clickable when directly on button */
/* nav button:hover styles removed to prevent gap triggering */

@keyframes floatButtonHover {
    0%, 100% {
        transform: translateY(-8px) scale(1.1);
    }
    50% {
        transform: translateY(-12px) scale(1.12);
    }
}

nav button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Add glow effect on active page */
nav button.active {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.2) 0%, 
        rgba(131, 56, 236, 0.2) 100%);
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.skl_nav {
    background-color: transparent;
    background: transparent;
    border-bottom: none;
    height: 50px;
    padding: 0;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
    position: fixed;
    top: 0px;
    width: 100%;
    pointer-events: auto !important;
}

/* Ensure Three.js container does not block pointer/touch events */
#magic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    opacity: 1;
    z-index: 0 !important;
}

#magic canvas,
#magic > canvas,
#magic > * {
    pointer-events: none !important;
    z-index: 0 !important;
}

.playground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Welcome Overlay Styles */
.welcome-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s ease-out;
    width: fit-content;
    max-width: 90vw;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.welcome-overlay.dragging {
    cursor: grabbing;
    transition: none;
}

.welcome-text {
    text-align: center;
    color: white;
    animation: fadeInUp 1.5s ease-out;
    position: relative;
    padding: 12px 20px;
    max-width: 90vw;
    width: fit-content;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 800;
    margin: 0;
    color: #00d4ff;
    background: linear-gradient(135deg, #00d4ff 0%, #ff006e 50%, #8338ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.8),
                 0 0 80px rgba(131, 56, 236, 0.6);
    letter-spacing: 0.1em;
    animation: glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .main-title {
        color: #00d4ff !important;
        background: none !important;
        -webkit-text-fill-color: #00d4ff !important;
    }
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2.8vw, 2rem);
    font-weight: 700;
    margin: 4px 0;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                 0 4px 10px rgba(0, 0, 0, 0.5),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.65rem, 1.3vw, 0.9rem);
    font-weight: 500;
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                 0 2px 5px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}

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

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(131, 56, 236, 0.8));
    }
}

/* Ensure navigation bar remains interactive */
.abt_nav {
    z-index: 99999 !important; /* Very high z-index for mobile compatibility */
    height: 50px;
    padding: 0;
    margin: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    pointer-events: auto !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transition: all 1.3s ease;
    touch-action: manipulation; /* Better touch handling on mobile */
}


.abt_nav button,
.skl_nav button {
    margin: 0;
    background-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 20px;
    white-space: nowrap;
    overflow: visible; /* Changed from hidden to visible for mobile */
    box-sizing: border-box;
    width: auto;
    min-width: fit-content;
    flex-shrink: 0;
    position: relative;
    z-index: 100000 !important; /* Very high z-index for mobile compatibility */
    pointer-events: auto !important;
    touch-action: manipulation !important; /* Better touch handling on mobile */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    -webkit-touch-callout: none; /* Disable long press menu on mobile */
    user-select: none; /* Prevent text selection on tap */
}

/* Hover effects removed - user requested no hover effects */

.abt_nav button.active,
.skl_nav button.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.8);
    color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Navigation container styling */
.navbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 99999 !important; /* Very high z-index for mobile compatibility */
    background: transparent;
    padding: 0;
    margin: 0;
    pointer-events: none !important; /* Gaps should not be clickable */
    touch-action: manipulation; /* Better touch handling on mobile */
}


/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth nav transitions */
.abt_nav {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Enhanced button glow effect */
nav button {
    --button-x: 50%;
    --button-y: 50%;
}

/* Hover effects completely removed - user requested no hover effects */
/* Only active state is kept for visual feedback */

/* Add gradient animation to buttons */
nav button {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

@keyframes buttonEnter {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.2);
    }
}

@keyframes buttonLeave {
    from {
        filter: brightness(1.2);
    }
    to {
        filter: brightness(1);
    }
}

.righ {
    position: relative;
    float: right;
    margin: 0px 20px;
}

.projectsb {
    width: 90px;
}

/* ============================================
   ENHANCED TIMELINE STYLING
   ============================================ */

/* Scroll Progress Indicator */
.timeline-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10000;
    pointer-events: none;
}

.timeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 212, 255, 1) 0%, 
        rgba(131, 56, 236, 1) 50%,
        rgba(255, 0, 110, 1) 100%);
    width: 0%;
    transition: width 0.05s linear;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    will-change: width;
}

/* Enhanced Time Axis */
.time-axis {
    position: absolute;
    width: 4px;
    height: 12300px;
    left: 50%;
    top: 0px;
    transform: translateX(-50%);
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(0, 212, 255, 0.7) 0%,
        rgba(131, 56, 236, 0.7) 50%,
        rgba(255, 0, 110, 0.7) 100%);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.5),
        0 0 30px rgba(131, 56, 236, 0.3),
        inset 0 0 8px rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    will-change: transform;
}

.time-axis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 1) 0%,
        rgba(0, 212, 255, 0.5) 50%,
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 212, 255, 1);
    animation: pulseDot 2s ease-in-out infinite;
}

.time-axis::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, 
        rgba(255, 0, 110, 1) 0%,
        rgba(255, 0, 110, 0.5) 50%,
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 0, 110, 1);
    animation: pulseDot 2s ease-in-out infinite 1s;
}

@keyframes pulseDot {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0.8;
    }
}

.main_timeline {
    width: 100%;
    margin-top: 180px;
    position: relative;
}

/* Enhanced Timeline Boxes */
.box {
    height: 200px;
    opacity: 0;
    color: white;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 450px;
    border-radius: 20px;
    padding: 25px;
    transition: opacity 0.4s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: opacity, transform;
}

.box.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 70%);
    animation: shimmer 4s linear infinite;
    pointer-events: none;
    will-change: transform;
}

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

.box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.5), 
        rgba(131, 56, 236, 0.5),
        rgba(255, 0, 110, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, 
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.box:hover::after {
    opacity: 1;
}

.box:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.3),
        0 0 50px rgba(131, 56, 236, 0.2);
    z-index: 10;
}

.boxl {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.3) 0%, 
        rgba(131, 56, 236, 0.3) 50%,
        rgba(255, 0, 110, 0.3) 100%);
    position: relative;
    left: calc(50% + 30px);
    margin-bottom: 80px;
    transform: translateX(-100%) translateY(50px) scale(0.9);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.boxl.visible {
    transform: translateX(-100%) translateY(0) scale(1);
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.boxl::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid rgba(0, 212, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8));
}

.boxr {
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.3) 0%, 
        rgba(131, 56, 236, 0.3) 50%,
        rgba(0, 212, 255, 0.3) 100%);
    position: relative;
    left: calc(50% - 450px - 30px);
    margin-bottom: 80px;
    transform: translateX(0) translateY(50px) scale(0.9);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 110, 0.2);
}

.boxr.visible {
    transform: translateX(0) translateY(0) scale(1);
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.boxr::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid rgba(255, 0, 110, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.8));
}

.boxr:hover {
    transform: translateX(0) translateY(-5px) scale(1.03);
}

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

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(10%) translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

.desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.hdg {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(0, 212, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.small_div {
    height: 150px;
}

.smallest_div {
    height: 100px;
}

/* Timeline markers on axis */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 1) 0%,
        rgba(131, 56, 236, 1) 50%,
        transparent 100%);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
    z-index: 2;
    animation: pulseMarker 3s ease-in-out infinite;
    will-change: transform, box-shadow;
}

@keyframes pulseMarker {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 
            0 0 15px rgba(0, 212, 255, 0.6),
            inset 0 0 8px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.15);
        box-shadow: 
            0 0 25px rgba(0, 212, 255, 0.8),
            inset 0 0 12px rgba(255, 255, 255, 0.6);
    }
}

/* ============================================
   RESPONSIVE TIMELINE STYLES
   ============================================ */

@media (max-width: 768px) {
    .box {
        width: calc(100% - 60px);
        max-width: none;
        padding: 20px;
        font-size: 16px;
        margin-left: 50px;
        margin-right: 10px;
    }

    .boxl {
        left: 0;
        transform: translateX(0) translateY(50px) scale(0.9);
        margin-left: 50px;
    }

    .boxl.visible {
        transform: translateX(0) translateY(0) scale(1);
        animation: slideInMobile 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .boxr {
        left: 0;
        transform: translateX(0) translateY(50px) scale(0.9);
        margin-left: 50px;
    }

    .boxr.visible {
        transform: translateX(0) translateY(0) scale(1);
        animation: slideInMobile 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .boxr::before,
    .boxl::before {
        display: none;
    }

    .time-axis {
        width: 3px;
        left: 20px;
        transform: none;
    }

    .time-axis::before,
    .time-axis::after {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
    }

    .hdg {
        font-size: 20px;
    }

    .desc {
        font-size: 14px;
    }

    .main_timeline {
        margin-top: 120px;
        padding-left: 0;
        padding-right: 0;
    }
}

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

@media (max-width: 480px) {
    .box {
        width: calc(100% - 50px);
        padding: 15px;
        font-size: 14px;
        border-radius: 15px;
        margin-left: 40px;
    }

    .boxl,
    .boxr {
        left: 0;
        margin-left: 40px;
    }

    .time-axis {
        width: 2px;
        left: 15px;
    }

    .time-axis::before,
    .time-axis::after {
        left: 15px;
        width: 15px;
        height: 15px;
    }

    .timeline-marker {
        left: 15px;
        width: 10px;
        height: 10px;
    }

    .small_div {
        height: 130px;
    }

    .smallest_div {
        height: 90px;
    }

    .hdg {
        font-size: 18px;
    }

    .desc {
        font-size: 13px;
    }

    .main_timeline {
        margin-top: 100px;
    }
}

/* Enhanced circles animation for timeline - reduced opacity for performance */
.area .circles li {
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.2) 0%,
        rgba(131, 56, 236, 0.15) 50%,
        transparent 100%);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.3),
        inset 0 0 8px rgba(255, 255, 255, 0.08);
    will-change: transform;
}

/* Smooth scroll behavior for timeline */
html {
    scroll-behavior: smooth;
}

/* Timeline container enhancement - only if not already defined */
.main_timeline {
    position: relative;
    padding-bottom: 100px;
}
.area {
    position: fixed;
    z-index: -1;
    top: 0px;
    width: 100%;
    height: 100vh;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    animation: animate 15s linear infinite;
    bottom: -150px;
    will-change: transform, opacity;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 70px;
    height: 70px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 15%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translate3d(0, -1000px, 0) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.skill_cntnr {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    margin: 70px 5% 0px 5%;
    padding-bottom: 70px;
    column-gap: 40px;
    grid-template-rows: auto;
    row-gap: 35px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.skill {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(131, 56, 236, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: come_up 2s linear 1;
    scale: 0.9;
}

.skill:hover {
    scale: 1.1;
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(131, 56, 236, 0.3) 100%);
}

.skl_img img {
    height: 55px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.skl_img {
    background-color: #ffffff;
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

@media screen and (max-width: 800px) and (min-width: 500px) {
    .skill_cntnr {
        margin: 50px 0px;
        column-gap: 30px;
    }
}

@media screen and (max-width: 500px) and (min-width: 0px) {
    .skill_cntnr {
        column-gap: 0px;
        row-gap: 0px;
        margin: 20px 0px;
    }

    .skill {
        transform: scale(0.8);
    }
}

@keyframes come_up {
    0% {
        opacity: 0.01;
        scale: 1;
    }

    100% {}
}

/* Dynamic 3D Skills Styles */
.skill-3d {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(131, 56, 236, 0.15) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 0 rgba(0, 212, 255, 0);
    position: relative;
    overflow: visible;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-img-3d {
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    margin-bottom: 15px;
    margin-top: 15px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.skill-img-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 212, 255, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.skill-3d:hover .skill-img-3d::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.skill-img-3d img {
    height: 60px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transform-style: preserve-3d;
}

.skill-3d:hover .skill-img-3d img {
    filter: drop-shadow(0 8px 16px rgba(0, 212, 255, 0.6)) 
            drop-shadow(0 0 20px rgba(131, 56, 236, 0.4));
}

.skill-name-3d {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.skill-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.4) 0%,
        rgba(131, 56, 236, 0.3) 40%,
        rgba(255, 0, 110, 0.2) 80%,
        transparent 100%);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

.skill-3d:hover {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.25) 0%, 
        rgba(131, 56, 236, 0.25) 50%,
        rgba(255, 0, 110, 0.2) 100%);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.5),
                0 0 40px rgba(131, 56, 236, 0.4),
                0 0 60px rgba(255, 0, 110, 0.3),
                inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.skill-3d:hover .skill-glow {
    opacity: 1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Particle effects */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 1) 0%,
        rgba(131, 56, 236, 0.8) 50%,
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(0, 0) scale(1);
    opacity: 1;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8),
                0 0 20px rgba(131, 56, 236, 0.6);
}

/* Responsive styles for 3D skills */
@media screen and (max-width: 800px) and (min-width: 500px) {
    .skill-3d {
        width: 160px;
        height: 160px;
    }
    
    .skill-img-3d {
        height: 90px;
    }
    
    .skill-img-3d img {
        height: 50px;
    }
}

@media screen and (max-width: 500px) and (min-width: 0px) {
    .skill-3d {
        width: 140px;
        height: 140px;
        transform: scale(0.9);
    }
    
    .skill-img-3d {
        height: 80px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .skill-img-3d img {
        height: 45px;
    }
    
    .skill-name-3d {
        font-size: 14px;
    }
}

.txt {
    color: white;
    padding: 40px 0px 0px 0px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 25px;
    font-weight: 600;
    position: relative;
    z-index: 10;
    margin-left: 75px;
}


/* About Profile Image - Separated */
.about-profile-image {
    position: fixed;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatImage 6s ease-in-out infinite;
    isolation: isolate;
}

.about-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 4px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5),
                0 0 100px rgba(131, 56, 236, 0.3),
                inset 0 0 30px rgba(0, 212, 255, 0.2);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.8),
                0 0 150px rgba(131, 56, 236, 0.5),
                inset 0 0 50px rgba(0, 212, 255, 0.3);
}

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

/* Content Wrapper with 3D Transparent Background */
.about-content-wrapper {
    position: absolute;
    top: 50%;
    right: 10%;
    /* bottom: 1px; */
    transform: translateY(-50%);
    z-index: 100;
    max-width: 48vw;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    margin-top: 25px;
    margin-bottom: 60px;
    padding-bottom: 30px;
}

.content-3d-bg {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 25px;
    padding: 30px 50px 50px 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(0, 212, 255, 0.3) inset,
                0 0 80px rgba(0, 212, 255, 0.3),
                0 0 120px rgba(131, 56, 236, 0.2);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.content-3d-bg:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(0, 212, 255, 0.5) inset,
                0 0 100px rgba(0, 212, 255, 0.4),
                0 0 150px rgba(131, 56, 236, 0.3);
}

.content-3d-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmerBG 8s linear infinite;
    pointer-events: none;
}

.content-3d-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 212, 255, 0.15) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
}

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

.about {
    display: none;
}

.about:hover {
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.2), 0 0 0 1px rgba(0, 212, 255, 0.3);
    transform: translate(-50%, -51%) scale(1.02);
}

/* Removed - image is now separate */

.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.content p {
    font-weight: 400;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(0, 212, 255, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.trapy {
    position: fixed;
    width: 87%;
    left: 50%;
    translate: -50%;
    height: 70px;
    background-color: #f7f7ff;
    transform: perspective(150px) rotateX(-32deg) translateY(-2px);
}

.trapy_idx {
    position: fixed;
    z-index: 1;
    width: 87%;
    left: 50%;
    translate: -50%;
    top: 0px;
    height: 60px;
    background-color: transparent;
    transform: perspective(150px) rotateX(-32deg) translateY(-2px);
}

.trapy2 {
    position: fixed;
    bottom: 0px;
    width: 40%;
    left: 50%;
    translate: -50%;
    height: 70px;
    background-color: #f7f7ff;
    transform: perspective(140px) rotateX(32deg);
}

.trapy3 {
    position: fixed;
    bottom: 0px;
    width: 50%;
    left: 50%;
    transform: translateX(-50%) perspective(200px) rotateX(15deg) translateY(0px);
    height: 60px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(0, 212, 255, 0.1) 30%,
        rgba(131, 56, 236, 0.15) 60%,
        rgba(255, 0, 110, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    animation: footerGlow 3s ease-in-out infinite;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
}

.trapy3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.2),
        rgba(131, 56, 236, 0.2),
        rgba(255, 0, 110, 0.2),
        transparent);
    animation: shimmerFooter 4s ease-in-out infinite;
}

.trapy3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        #00d4ff,
        #8338ec,
        #ff006e,
        transparent);
    animation: gradientMove 3s linear infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6),
                0 0 40px rgba(131, 56, 236, 0.4);
}

@keyframes footerGlow {
    0%, 100% {
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3),
                    0 0 40px rgba(131, 56, 236, 0.4),
                    0 0 60px rgba(255, 0, 110, 0.3);
    }
}

@keyframes shimmerFooter {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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


.profiles {
    position: fixed;
    bottom: 30px;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transform: translateX(-50%);
    z-index: 100;
    padding: 16px 32px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 40px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(0, 212, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profiles a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.profiles img {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1.2) contrast(1.3) saturate(1.4);
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(0, 212, 255, 0.3);
    object-fit: contain;
}

.profiles a:hover img {
    transform: translateY(-8px) scale(1.2) rotateY(15deg);
    filter: brightness(1.5) contrast(1.5) saturate(1.6);
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(131, 56, 236, 0.3) 100%);
    border-color: rgba(0, 212, 255, 1);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6),
                0 0 40px rgba(131, 56, 236, 0.5),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.profiles a:hover {
    transform: translateY(-3px);
}

.more-about-me-link {
    color: rgb(28, 77, 138);
    font-size: 2.5vh;

    &:hover {
        text-decoration: underline;
    }
}

@media screen and (max-width: 1200px) and (min-width: 600px) {
    .about-profile-image {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: translateZ(0) !important;
        width: 250px;
        height: 250px;
        margin: 30px auto !important;
        z-index: 999 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .about-profile-image img {
        z-index: 1000 !important;
        position: relative;
        transform: translateZ(0);
        width: 100%;
        height: 100%;
    }
    
    .about-content-wrapper {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: translateZ(0) !important;
        max-width: calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
        margin: 20px auto 40px auto !important;
        padding: 0 0 20px 0 !important;
        z-index: 1 !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .content-3d-bg {
        padding: 30px 25px 45px 25px !important;
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .content p {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .profiles {
        bottom: 25px;
        gap: 18px;
        padding: 14px 28px;
    }
    
    .profiles a {
        width: 52px;
        height: 52px;
    }
    
    .profiles img {
        width: 44px;
        height: 44px;
        padding: 7px;
    }

    .content p {
        font-size: 14px;
        width: 100%;
    }

    .trapy2 {
        width: 80vw;
    }

    .project-tile-cntnr {
        gap: 20px;
        padding: 15px;
    }

    .project-tile {
        max-width: calc(50% - 10px);
        min-width: 250px;
    }

    .stay-tuned-container {
        padding: 0 15px;
    }

    .stay-tuned-fallback {
        font-size: clamp(1.5rem, 6vw, 3rem);
        letter-spacing: 0.05em;
    }

    #stay-tuned-3d {
        transform: none;
    }

    .project-bg-text {
        font-size: clamp(2rem, 3.5vw, 6rem);
        letter-spacing: 0.03em;
        max-width: 90vw;
    }
}

@media screen and (max-width: 600px) {
    .abt_body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .about-profile-image {
        width: 200px !important;
        height: 200px !important;
        margin: 20px auto !important;
        z-index: 999 !important;
        position: relative !important;
        transform: translateZ(0) !important;
        left: auto !important;
        right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .about-profile-image img {
        z-index: 1000 !important;
        position: relative;
        transform: translateZ(0);
        width: 100% !important;
        height: 100% !important;
    }
    
    .about-content-wrapper {
        max-width: calc(100vw - 30px) !important;
        width: calc(100vw - 30px) !important;
        padding: 0 0 30px 0 !important;
        margin: 0 auto 60px auto !important;
        z-index: 1 !important;
        position: relative !important;
        transform: translateZ(0) !important;
        box-sizing: border-box !important;
        overflow: hidden;
        left: auto !important;
        right: auto !important;
    }
    
    .content-3d-bg {
        padding: 20px 15px 40px 15px !important;
        position: relative;
        z-index: 1;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }
    
    .content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .content p {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        padding: 0;
        margin: 0;
    }
    
    .about-name-3d {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media screen and (max-width: 600px) and (min-width: 0px) {
    .abt_body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .navbs {
        gap: 10px;
    }
    
    .abt_nav button,
    .skl_nav button {
        font-size: 12px;
        margin: 0;
        padding: 6px 12px;
        width: auto;
        min-width: fit-content;
        white-space: nowrap;
        overflow: visible;
        flex-shrink: 0;
    }

    .project-tile-cntnr {
        padding: 10px;
        gap: 15px;
    }

    .project-tile {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }

    .about-profile-image {
        width: 200px !important;
        height: 200px !important;
        margin: 20px auto !important;
        z-index: 999 !important;
        position: relative !important;
        transform: translateZ(0) !important;
        left: auto !important;
        right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .about-profile-image img {
        z-index: 1000 !important;
        position: relative;
        transform: translateZ(0);
        width: 100% !important;
        height: 100% !important;
    }
    
    .about-content-wrapper {
        max-width: calc(100vw - 30px) !important;
        width: calc(100vw - 30px) !important;
        padding: 0 0 30px 0 !important;
        margin: 0 auto 60px auto !important;
        z-index: 1 !important;
        position: relative !important;
        transform: translateZ(0) !important;
        box-sizing: border-box !important;
        overflow: hidden;
        left: auto !important;
        right: auto !important;
    }
    
    .content-3d-bg {
        padding: 20px 15px 40px 15px !important;
        position: relative;
        z-index: 1;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }
    
    .content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .content p {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        padding: 0;
        margin: 0;
    }
    
    .about-name-3d {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .content p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        line-height: 1.8;
    }
    
    .profiles {
        bottom: 15px;
        gap: 12px;
        padding: 12px 20px;
    }
    
    .profiles a {
        width: 44px;
        height: 44px;
    }
    
    .profiles img {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .content p {
        font-size: 10px;
        width: 100%;
    }

    .trapy2 {
        width: 80vw;
    }

    .stay-tuned-container {
        padding: 0 10px;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    #stay-tuned-3d {
        width: 100%;
        max-width: 100%;
        transform: none !important;
        overflow: hidden;
    }

    .stay-tuned-fallback {
        font-size: clamp(1.2rem, 5vw, 2.5rem) !important;
        letter-spacing: 1px !important;
        word-spacing: 0 !important;
        padding: 0 10px;
        max-width: 95vw;
        transform: none !important;
        margin: 0 auto;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .project-bg-text {
        font-size: clamp(1.5rem, 3vw, 4rem) !important;
        letter-spacing: 0.02em !important;
        max-width: 95vw;
        padding: 0 10px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        transform: translate(-50%, -50%) !important;
        width: auto;
        overflow: hidden;
    }
}

/* Comprehensive fix for all background canvases and animations */
canvas,
#magic canvas,
#stay-tuned-3d canvas,
#background-3d canvas,
.stay-tuned-container canvas,
.background-3d-container canvas,
.playground canvas {
    pointer-events: none !important;
    z-index: 0 !important;
    touch-action: none !important;
}

/* Ensure all background containers don't block interactions */
#magic,
#stay-tuned-3d,
#background-3d,
.stay-tuned-container,
.background-3d-container,
.playground {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Navbar priority - always on top */
.abt_nav,
.skl_nav {
    z-index: 99999 !important; /* Very high z-index for mobile compatibility */
    pointer-events: auto !important;
    position: fixed !important;
    touch-action: manipulation !important; /* Better touch handling on mobile */
}

.navbs {
    z-index: 99999 !important; /* Very high z-index for mobile compatibility */
    pointer-events: none !important; /* Gaps should not be clickable - only buttons are */
    position: relative !important;
    touch-action: manipulation !important; /* Better touch handling on mobile */
}

.abt_nav button,
.skl_nav button,
.navbs button {
    z-index: 100000 !important; /* Very high z-index for mobile compatibility */
    pointer-events: auto !important;
    touch-action: manipulation !important; /* Better touch handling on mobile */
    position: relative !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    -webkit-touch-callout: none; /* Disable long press menu on mobile */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    -webkit-touch-callout: none; /* Disable long press menu on mobile */
}

/* Project Page */
.project-tile-cntnr {
    width: 100%;
    margin: 100px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    padding-bottom: 70px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Stay Tuned 3D Container */
.stay-tuned-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 20px;
}

#stay-tuned-3d {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    box-sizing: border-box;
    transform: none;
    pointer-events: none !important;
    z-index: 0 !important;
}

#stay-tuned-3d canvas,
#stay-tuned-3d > canvas {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Background 3D Container for About and Skills */
.background-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#background-3d {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none !important;
    z-index: 0 !important;
}

#background-3d canvas,
#background-3d > canvas {
    pointer-events: none !important;
    z-index: 0 !important;
}

.stay-tuned-fallback {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 7vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff 0%, #ff006e 50%, #8338ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
    letter-spacing: 0.05em;
    animation: glow 2s ease-in-out infinite alternate;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 90vw;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.project-bg-text {
    color: rgba(255, 255, 255, 0.02);
    font-size: clamp(2rem, 4vw, 8rem);
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 400;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    z-index: -1;
    white-space: nowrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 95vw;
    width: auto;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
    padding: 0 10px;
    letter-spacing: 0.05em;
}

.project-tile {
    width: 100%;
    max-width: 280px;
    min-width: 250px;
    height: 565px;
    margin: 0;
    flex: 0 1 auto;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(131, 56, 236, 0.15) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;

    .title {
        padding: 15px 10% 10px;
        border-radius: 10px 10px 0px 0px;
        color: rgb(255, 255, 255);
        font-family: 'Courgette';
        font-size: clamp(1rem, 4vw, 1.125rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        box-sizing: border-box;
    }

    img {
        width: 100%;
        max-width: 270px;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        background-color: rgb(0, 3, 34);
        padding: 5px;
        box-sizing: border-box;
    }

    .project-desc {
        margin: 5px 6% 20px;
        width: 88%;
        font-size: 14px;
        letter-spacing: 0.2px;
        font-family: 'Roboto';
        color: rgb(176, 182, 206);
        font-weight: 600;
    }

    .links {
        margin: 5px 10%;
        display: flex;
    }

    .link {
        margin: 0px 5px;
        color: white;

        img {
            padding: 2px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: white;
        }
    }

    .hdg {
        margin: 15px 6% 10px;
        color: white;
        font-family: 'Roboto';
        color: rgb(176, 182, 206);
        letter-spacing: 0.2px;
        font-weight: 500;
        font-size: 14px;
    }

    .teammates {
        margin: 0px 10%;
        display: flex;
    }

    .teammates img {
        padding: 0px;
        margin-right: 10px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    &:hover {
        border-color: rgba(0, 212, 255, 0.6);
        box-shadow: 0 20px 60px rgba(0, 212, 255, 0.5),
                    0 0 80px rgba(131, 56, 236, 0.3);
    }
}

/* 3D Project Card Effects */
.project-3d-container {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
    border-radius: 20px;
}

.project-tile.project-hovered {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 25px 70px rgba(0, 212, 255, 0.6),
                0 0 100px rgba(131, 56, 236, 0.4),
                inset 0 0 30px rgba(0, 212, 255, 0.2);
}

.project-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
}

.project-particles .particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(var(--random-x, 0), var(--random-y, 0)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(var(--random-x, 0) * 2),
            calc(var(--random-y, 0) * 2)
        ) scale(0);
    }
}

/* ============================================
   CURSOR EFFECTS - Global Interactive Cursor
   ============================================ */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: rgba(0, 212, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.8);
}

.custom-cursor.cursor-click {
    width: 15px;
    height: 15px;
    background: rgba(0, 212, 255, 1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 1);
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, border-color 0.4s;
}

.cursor-follower.cursor-follower-hover {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Cursor Ripple Effects */
.cursor-ripple {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    animation: ripple-expand 1s ease-out forwards;
}

.cursor-click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    animation: click-ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

@keyframes click-ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-follower,
    .cursor-ripple,
    .cursor-click-ripple {
        display: none;
    }
    
    body {
        cursor: auto !important;
    }
}

/* ============================================
   ABOUT 3D EFFECTS
   ============================================ */
.about {
    position: relative;
    perspective: 1000px;
}

.about-name-3d {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 30%, #8338ec 60%, #00d4ff 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.8),
                 0 0 80px rgba(131, 56, 236, 0.6);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8));
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Styles moved to new structure */

.about-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float-particle 15s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-15px, -50px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.5;
    }
}

/* Profiles styles are now defined above in the main styles section */

/* Enhanced 3D effects for about section */
.about .me {
    position: relative;
    z-index: 10;
}

.about .content {
    position: relative;
    z-index: 10;
}

/* Responsive adjustments for about 3D */
@media (max-width: 768px) {
    .about-name-3d {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .about-particle {
        display: none;
    }
    
    .about .me img {
        transform: none !important;
    }
    
    .about .content {
        transform: none !important;
    }
}