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

body{
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* pages */
.page{
    min-height: 100vh;
    display: none;
    overflow: hidden;
}

.page.active{
    display: block;
}

#about-page{
    height: auto;
    overflow-y: auto;
}

/* navbar */
.navbar{
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.menu-toggle{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 1000;
}

.menu-toggle span{
    position: absolute;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: all 0.4s ease;
}

.menu-toggle span:nth-child(1){transform: translateY(-6px)}
.menu-toggle span:nth-child(2){transform: translateY(0px)}
.menu-toggle span:nth-child(3){transform: translateY(6px)}

.navbar.open span:nth-child(1){
    transform: rotate(45deg);
}

.navbar.open span:nth-child(2){
    opacity: 0;
}

.navbar.open span:nth-child(3){
    transform: rotate(-45deg)
}

.menu{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 320px;
    background: #0b0b0f;
    padding: 5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 900;
}

.menu::before{
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

.navbar.open .menu{
    transform: translateX(0);
}

.menu a{
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.8rem;
    text-decoration: none;
    position: relative;
    width: fit-content;
    cursor: pointer;
}

.menu a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.menu a:hover{
    color: white;
}

.menu a:hover::after{
    transform: scaleX(1);
}

.menu a.active{
    color: white;
}

.menu a.active::after{
    transform: scaleX(1);
}

/* loader */
.loader-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.hidden{
    opacity: 0;
    visibility: hidden;
}

.loader{
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* home section */
.home-section{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16113e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.home-section::before{
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118,75,162,0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite reverse;
}

.home-section::after{
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite reverse;
}

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

.name-container{
    text-align: center;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

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

.name {
    font-size: clamp(4rem, 6vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: clamp(4rem, 6vw, 6rem);
    background: #667eea;
    margin-left: 8px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

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

.tagline{
    margin-top: 1.5rem;
    font-size: clamp(1rem,2vw,1.5rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.05rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

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

.grain{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* about section */
.about-section{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #0a0a0a;
}

.about-content{
    max-width: 800px;
    text-align: center;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease;
}

.about-content.show{
    opacity: 1;
    transform: translateY(0);
}

.about-content h2{
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.about-content p{
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

/* interests section */
.interests-section{
    min-height: 100vh;
    padding: 4rem 2rem;
    background: #111;
    position: relative;
    text-align: center;
}

.interests-title{
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.interests-container{
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.interest{
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    transition: all 0.8s ease;
}

.interest:nth-child(odd){
    transform: translateX(-100px);
}

.interest:nth-child(even){
    transform: translateX(100px);
    flex-direction: row-reverse;
}

.interest:nth-child(even) .text{
    text-align: right;
}

.interest.show{
    opacity: 1;
    transform: translateX(0);
}

.interest:hover .icon{
    transform: scale(1.15);
}

.interest .icon{
    font-size: 5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.interest:nth-child(odd) .icon{
    margin-left: -1.5rem;
}

.interest:nth-child(even) .icon{
    margin-right: -1.5rem;
}

.interest .text{
    text-align: left;
    flex: 1;
}

.interest h3{
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.interest p{
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
}

/* interest popup */
.interest-detail-popup{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(34,34,34,0.98);
    backdrop-filter: blur(20px);
    color: white; 
    padding: 2.5rem 3rem;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
    max-width: 600px;
    width: 90%;
    text-align: center;
    z-index: 10000;
    border: 2px solid rgba(102,126,234,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.interest-detail-popup.show{
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.interest-detail-popup::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

#popup-text{
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item:hover{
    background: rgba(102,126,234,0.15);
    transform: translateY(-5px);
    border-color: rgba(102,126,234,0.4);
}

.skill-item img{
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-item span{
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.close-btn{
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-btn:hover{
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}