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

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a0000;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #ff0000;
    --accent-glow: #ff3333;
    --card-bg: rgba(26, 0, 0, 0.9);
}

body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #ffebeb;
    --text-primary: #000000;
    --text-secondary: #333333;
    --accent: #cc0000;
    --accent-glow: #ff0000;
    --card-bg: rgba(255, 235, 235, 0.95);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all 0.5s ease;
    cursor: none;
}

/* Loading Screen with Yin Yang */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #000000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.yin-yang {
    width: 150px;
    height: 150px;
    position: relative;
    animation: yinYangSpin 3s linear infinite;
}

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

.yang {
    width: 150px;
    height: 75px;
    background: #ffffff;
    border-radius: 75px 75px 0 0;
    position: absolute;
    top: 0;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.yin {
    width: 150px;
    height: 75px;
    background: #000000;
    border-radius: 0 0 75px 75px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dot-yin {
    background: #ffffff;
    top: 12.5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.dot-yang {
    background: #000000;
    bottom: 12.5px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.yin::before {
    content: '';
    width: 75px;
    height: 75px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: -37.5px;
    right: 0;
}

.yang::after {
    content: '';
    width: 75px;
    height: 75px;
    background: #000000;
    border-radius: 50%;
    position: absolute;
    bottom: -37.5px;
    left: 0;
}

.loading-text {
    margin-top: 3rem;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff0000, #ff3333, #ff6666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-subtext {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #cccccc;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 10px #ff0000); }
    to { filter: drop-shadow(0 0 30px #ff6666); }
}

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

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#webgl-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 15px;
    height: 15px;
    background: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover, .nav-dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

.nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(239, 35, 60, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 20s linear infinite;
}

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

header:hover::before {
    opacity: 0.1;
}

header:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(239, 35, 60, 0.4);
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--accent);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.2) rotate(180deg);
    box-shadow: 0 8px 30px var(--accent-glow);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px var(--accent)); }
    to { filter: drop-shadow(0 0 20px var(--accent-glow)); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(239, 35, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.section:hover::before {
    opacity: 0.1;
}

.section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(239, 35, 60, 0.4);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

h2 i {
    font-size: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-glow);
    transition: width 0.5s ease;
}

.section:hover h2::after {
    width: 100%;
}

/* Projects Grid with 3D effect */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    perspective: 1000px;
}

.project-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 35, 60, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(239, 35, 60, 0.5);
    border-color: var(--accent);
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin-right: 0.5rem;
    border-radius: 10px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: bold;
    perspective: 1000px;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translateZ(-8px);
    filter: brightness(0.7);
}

.skill-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(0,0,0,0.3));
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.skill-icon i {
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transform: translateZ(8px);
}

.skill-item:hover .skill-icon {
    transform: rotateY(360deg) rotateX(15deg) scale(1.15);
}

/* Technology Icon Colors */
.icon-html { background: linear-gradient(135deg, #e34c26 0%, #f06529 50%, #e34c26 100%); box-shadow: 0 5px 15px rgba(227, 76, 38, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-js { background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 50%, #f7df1e 100%); box-shadow: 0 5px 15px rgba(247, 223, 30, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-tailwind { background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #06b6d4 100%); box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-react { background: linear-gradient(135deg, #61dafb 0%, #00d8ff 50%, #61dafb 100%); box-shadow: 0 5px 15px rgba(97, 218, 251, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-vue { background: linear-gradient(135deg, #42b883 0%, #35495e 50%, #42b883 100%); box-shadow: 0 5px 15px rgba(66, 184, 131, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-node { background: linear-gradient(135deg, #339933 0%, #6cc24a 50%, #339933 100%); box-shadow: 0 5px 15px rgba(51, 153, 51, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-python { background: linear-gradient(135deg, #3776ab 0%, #ffd43b 50%, #3776ab 100%); box-shadow: 0 5px 15px rgba(55, 118, 171, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-cpp { background: linear-gradient(135deg, #00599c 0%, #004482 50%, #00599c 100%); box-shadow: 0 5px 15px rgba(0, 89, 156, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-csharp { background: linear-gradient(135deg, #dc143c 0%, #000000 50%, #ffffff 100%); box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
body.light-mode .icon-csharp { background: linear-gradient(135deg, #ff0000 0%, #ffffff 50%, #000000 100%); }
.icon-java { background: linear-gradient(135deg, #007396 0%, #f89820 50%, #007396 100%); box-shadow: 0 5px 15px rgba(0, 115, 150, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-rust { background: linear-gradient(135deg, #ce422b 0%, #000000 50%, #ce422b 100%); box-shadow: 0 5px 15px rgba(206, 66, 43, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-kotlin { background: linear-gradient(135deg, #7f52ff 0%, #c711e1 50%, #7f52ff 100%); box-shadow: 0 5px 15px rgba(127, 82, 255, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-elixir { background: linear-gradient(135deg, #4e2a8e 0%, #9b4dca 50%, #4e2a8e 100%); box-shadow: 0 5px 15px rgba(78, 42, 142, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-scala { background: linear-gradient(135deg, #dc322f 0%, #7a211e 50%, #dc322f 100%); box-shadow: 0 5px 15px rgba(220, 50, 47, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-matlab { background: linear-gradient(135deg, #0076a8 0%, #e97826 50%, #0076a8 100%); box-shadow: 0 5px 15px rgba(0, 118, 168, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-postgresql { background: linear-gradient(135deg, #336791 0%, #8ccef0 50%, #336791 100%); box-shadow: 0 5px 15px rgba(51, 103, 145, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-mysql { background: linear-gradient(135deg, #4479a1 0%, #00758f 50%, #4479a1 100%); box-shadow: 0 5px 15px rgba(68, 121, 161, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-lua { background: linear-gradient(135deg, #000080 0%, #2c2d72 50%, #000080 100%); box-shadow: 0 5px 15px rgba(0, 0, 128, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-git { background: linear-gradient(135deg, #f05032 0%, #c9513f 50%, #f05032 100%); box-shadow: 0 5px 15px rgba(240, 80, 50, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-figma { background: linear-gradient(135deg, #f24e1e 0%, #ff7262 50%, #f24e1e 100%); box-shadow: 0 5px 15px rgba(242, 78, 30, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-unity { background: linear-gradient(135deg, #222c37 0%, #000000 50%, #222c37 100%); box-shadow: 0 5px 15px rgba(34, 44, 55, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-vscode { background: linear-gradient(135deg, #007acc 0%, #005a9e 50%, #007acc 100%); box-shadow: 0 5px 15px rgba(0, 122, 204, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-arduino { background: linear-gradient(135deg, #00979d 0%, #009c9a 50%, #00979d 100%); box-shadow: 0 5px 15px rgba(0, 151, 157, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-threejs { background: linear-gradient(135deg, #049ef4 0%, #02598b 50%, #049ef4 100%); box-shadow: 0 5px 15px rgba(4, 158, 244, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-cannon { background: linear-gradient(135deg, #ef233c 0%, #cc1f35 50%, #ef233c 100%); box-shadow: 0 5px 15px rgba(239, 35, 60, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-webgl { background: linear-gradient(135deg, #990000 0%, #660000 50%, #990000 100%); box-shadow: 0 5px 15px rgba(153, 0, 0, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }
.icon-blender { background: linear-gradient(135deg, #f5792a 0%, #ea7826 50%, #f5792a 100%); box-shadow: 0 5px 15px rgba(245, 121, 42, 0.4), inset 0 -2px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3); }

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-flex;
    transition: all 0.5s ease;
    color: var(--accent);
    filter: drop-shadow(0 5px 15px var(--accent-glow));
    position: relative;
}

.project-icon i {
    animation: float3D 3s ease-in-out infinite;
}

@keyframes float3D {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(180deg); }
}

.project-card:hover .project-icon {
    transform: scale(1.3) rotateY(360deg);
    filter: drop-shadow(0 10px 30px var(--accent-glow));
}

.project-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover .project-icon::before {
    opacity: 0.5;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tag {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px var(--accent-glow);
}

.project-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.project-btn:hover {
    background: var(--accent-glow);
    transform: scale(1.05);
    box-shadow: 0 5px 20px var(--accent-glow);
}

/* Advanced Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.skill-category:hover::before {
    height: 100%;
}

.skill-category:hover {
    transform: translateX(10px);
    box-shadow: -5px 0 15px var(--accent-glow);
}

.skill-category h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 12px;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-glow);
    position: relative;
    overflow: hidden;
    width: 0;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: slide 2s infinite;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Education Timeline */
.education-timeline {
    position: relative;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.education-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.education-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.education-dot {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
    animation: pulse 2s infinite;
    font-size: 1.5rem;
    color: white;
}

.education-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.education-content:hover {
    border-color: var(--accent);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(239, 35, 60, 0.4);
}

.education-level {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.education-school {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.education-date {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Certificates with hover effect */
.certs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cert-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.cert-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.cert-issuer {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cert-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(239, 35, 60, 0.5);
    border-left-width: 8px;
}

.cert-item:hover .cert-hover-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cert-item:hover .cert-icon,
.cert-item:hover .cert-title {
    opacity: 0;
    transform: translateY(-20px);
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 35, 60, 0.2), transparent);
    transition: left 0.5s ease;
}

.cert-item:hover::before {
    left: 100%;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    z-index: 10001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-close {
    background: var(--accent);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 1.1rem;
}

.sidebar-link i {
    font-size: 1.3rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--bg-secondary);
    border-left-color: var(--accent);
    transform: translateX(10px);
}

.sidebar-link:hover i,
.sidebar-link.active i {
    transform: scale(1.2) rotate(360deg);
}

.mobile-menu-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(239, 35, 60, 0.5);
    transition: all 0.3s ease;
    display: none;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Smooth transitions for all interactive elements */
button, a, .project-card, .skill-item, .cert-item, 
.education-content, .timeline-content, .filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Enhanced hover effects */
.project-card:hover,
.skill-category:hover,
.education-content:hover,
.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Better touch interactions on mobile */
@media (hover: none) and (pointer: coarse) {
    .project-card:active,
    .filter-btn:active,
    .project-btn:active,
    .cert-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Disable complex hover effects on touch devices */
    .project-card:hover {
        transform: none;
    }
    
    .cert-item:hover .cert-hover-content {
        opacity: 0;
    }
}

/* Filter buttons */
.filter-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--accent-glow);
}

/* Interactive Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 2rem);
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 2rem);
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(239, 35, 60, 0.4);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: pulse 2s infinite;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.5s ease;
    border: 2px solid var(--accent);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    background: var(--accent-glow);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(239, 35, 60, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

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

.particle-trail {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    z-index: 9998;
}

/* Progress Circle */
.progress-circle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    z-index: 1000;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.3s ease;
}

.load-animation {
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

@keyframes celebrationPop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(10deg); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(0.9) rotate(-5deg); }
    100% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

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

    .theme-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: 1rem;
        right: 1rem;
    }

    body {
        cursor: auto;
    }

    .custom-cursor, .cursor-dot {
        display: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item, .timeline-item:nth-child(even) {
        padding-left: 3rem;
        padding-right: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .nav-menu {
        display: none;
    }

    .education-timeline::before {
        left: 20px;
    }

    .education-item {
        flex-direction: column;
        padding-left: 80px;
    }

    .education-dot {
        position: absolute;
        left: 0;
    }

    .loading-text {
        font-size: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .loading-subtext {
        font-size: 1rem;
    }

    .yin-yang {
        width: 120px;
        height: 120px;
    }

    .yang {
        width: 120px;
        height: 60px;
        border-radius: 60px 60px 0 0;
    }

    .yin {
        width: 120px;
        height: 60px;
        border-radius: 0 0 60px 60px;
    }

    .dot {
        width: 20px;
        height: 20px;
    }

    .dot-yin {
        top: 10px;
    }

    .dot-yang {
        bottom: 10px;
    }

    .yin::before {
        width: 60px;
        height: 60px;
        top: -30px;
    }

    .yang::after {
        width: 60px;
        height: 60px;
        bottom: -30px;
    }

    /* Show mobile sidebar and menu button */
    .mobile-sidebar {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .progress-circle {
        top: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }

    .progress-circle svg {
        width: 50px;
        height: 50px;
    }

    /* Certificate cards on mobile */
    .certs-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cert-item {
        min-height: 150px;
    }

    /* Better touch targets for mobile */
    .filter-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .project-btn {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    /* Adjust section padding */
    .section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    header {
        padding: 2rem 1rem;
    }

    .contact-info {
        gap: 1rem;
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
    }
}