* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #fff; overflow-x: hidden; scroll-behavior: smooth; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); }

.main-content { opacity: 1; transition: opacity 1.5s ease-in 0.5s; }
.main-content.show { opacity: 1; }
.right-sidebar { position: fixed; right: 8rem; top: 50%; transform: translateY(-30%); z-index: 100; display: flex; flex-direction: column; gap: 2rem; }
.right-sidebar a { color: #888; text-decoration: none; font-size: 0.9rem; font-weight: bold; letter-spacing: 0.1rem; transition: color 0.3s; cursor: pointer; }
.right-sidebar a:hover { color: #fff; }
.right-sidebar a.active { color: #00d4ff; }

.fullpage-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1); }
html { scroll-behavior: auto; overflow: hidden; }
body { overflow: hidden; }
.main-content { overflow-y: scroll; scroll-snap-type: y mandatory; height: 100vh; scroll-behavior: smooth; }
.fullpage-section { scroll-snap-align: start; scroll-snap-stop: always; }

#page1 { background: #000000 url('/images/space.jpg') center center / cover no-repeat; position: relative; overflow: hidden; }
#page1::before { content: ''; position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); z-index: 1; }
.page1-hero { max-width: 1400px; width: 100%; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; position: relative; z-index: 2; }
.page1-header { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 2rem 4rem; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); z-index: 10; max-width: 100%; width: 100%; box-sizing: border-box; }
.page1-logo { font-size: 1.2rem; font-weight: bold; color: #888; letter-spacing: 0.1rem; text-transform: uppercase; cursor: pointer; transition: color 0.3s; }
.page1-logo:hover { color: #fff; }
.page1-nav { display: flex; gap: 3rem; align-items: center; }
.page1-nav a { color: #888; text-decoration: none; font-size: 1rem; transition: color 0.3s; cursor: pointer; }
.page1-nav a:hover { color: #fff; }

.user-icon { width: 35px; height: 35px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; border: 2px solid rgba(255, 255, 255, 0.3); filter: none; }
.user-icon svg { pointer-events: none; }
.user-icon:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.3); }
.user-profile-modal { display: none; position: fixed; top: 70px; right: 4rem; background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(20px); padding: 1.2rem; border-radius: 12px; border: 2px solid rgba(102, 126, 234, 0.3); min-width: 220px; max-width: 240px; z-index: 10001; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.user-profile-modal.show { display: block; animation: profileFadeIn 0.2s ease; }
@keyframes profileFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.profile-header { text-align: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.profile-avatar { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 1.5rem; margin: 0 auto 0.8rem; border: 2px solid rgba(255, 255, 255, 0.3); }
.profile-name { font-size: 1rem; font-weight: bold; color: #fff; margin-bottom: 0.3rem; }
.profile-email { font-size: 0.9rem; color: #aaa; }
.profile-info { margin-bottom: 1rem; }
.info-row { display: flex; justify-content: space-between; padding: 0.5rem 0; color: #ddd; font-size: 0.9rem; }
.info-label { color: #888; }
.logout-btn { width: 100%; padding: 0.6rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.logout-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); }

.page1-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; margin-top: -10rem; margin-left: -100px; }
.page1-title { font-size: 4.5rem; font-weight: bold; color: #888; letter-spacing: 0.5rem; line-height: 1; margin-bottom: 0; text-transform: uppercase; position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.page1-title::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 200%; height: 200%; z-index: -1; }
.page1-3d-object { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 350px; height: 350px; z-index: 1; perspective: 1000px; }
.torus { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, rgba(180, 180, 180, 0.9) 0%, rgba(100, 100, 100, 0.95) 30%, rgba(60, 60, 60, 1) 50%, rgba(40, 40, 40, 0.95) 70%, rgba(80, 80, 80, 0.9) 100%); box-shadow: inset -30px -30px 80px rgba(0, 0, 0, 0.8), inset 30px 30px 80px rgba(255, 255, 255, 0.15), -10px 20px 60px rgba(0, 0, 0, 0.6), 10px -10px 40px rgba(255, 255, 255, 0.1), 0 0 120px rgba(255, 255, 255, 0.3); position: relative; animation: torusRotate 20s linear infinite; transform-style: preserve-3d; }
.torus::before { content: ''; position: absolute; width: 160px; height: 160px; background: radial-gradient(circle at 30% 30%, rgba(20, 20, 20, 0.9), #000); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: inset 15px 15px 40px rgba(0, 0, 0, 0.9), inset -5px -5px 20px rgba(255, 255, 255, 0.05); }
.torus::after { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 182, 193, 0.25) 0%, rgba(147, 112, 219, 0.25) 30%, rgba(64, 224, 208, 0.3) 60%, rgba(255, 215, 0, 0.2) 100%); mix-blend-mode: overlay; animation: torusShine 15s ease-in-out infinite; }
@keyframes torusRotate { 0% { transform: rotateY(0deg) rotateX(15deg) rotateZ(0deg); } 100% { transform: rotateY(360deg) rotateX(15deg) rotateZ(0deg); } }
@keyframes torusShine { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.page1-subtitle { display: none; }
.click-text { font-size: 1.5rem; color: rgba(136, 136, 136, 0.9); font-weight: 300; letter-spacing: 0.3rem; animation: clickPulse 2s ease-in-out infinite, clickFloat 3s ease-in-out infinite; cursor: pointer; margin-top: 12rem; z-index: 2; position: relative; }
@keyframes clickPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes clickFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }

.page1-footer { display: none; }
.page1-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; cursor: pointer; transition: all 0.3s; }
.page1-scroll-hint:hover { transform: translateX(-50%) scale(1.2); }
.page1-scroll-hint span { font-size: 2rem; opacity: 0.5; transition: opacity 0.3s; }
.page1-scroll-hint:hover span { opacity: 1; }

.about-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px); padding: 3rem; border-radius: 20px; border: 2px solid rgba(200, 200, 200, 0.5); max-width: 600px; width: 90%; z-index: 10001; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.about-modal.show { display: block; animation: modalFadeIn 0.3s ease; }
@keyframes modalFadeIn { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal-close { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; color: #fff; cursor: pointer; transition: all 0.3s; }
.modal-close:hover { transform: rotate(90deg); color: #ddd; }
.modal-title { font-size: 2rem; color: #fff; margin-bottom: 1.5rem; text-align: center; font-weight: bold; letter-spacing: 0.1rem; text-transform: uppercase; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.modal-content { color: rgba(255, 255, 255, 0.95); line-height: 1.8; font-size: 1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.modal-content p { margin-bottom: 1rem; }

#page2 { background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%); }
.page2-container { max-width: 1400px; width: 100%; padding: 2rem; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding-bottom: 4rem; }
.section-title { font-size: 1.8rem; text-align: left; margin-bottom: 1.5rem; color: #00d4ff; }
.portfolio-carousel-wrapper { position: relative; margin-bottom: 3rem; }
.portfolio-carousel { overflow: hidden; position: relative; }
.portfolio-slides { display: flex; transition: transform 0.5s ease; }
.portfolio-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.portfolio-item { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: 15px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.portfolio-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2); }
.portfolio-image { width: 100%; height: 200px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.portfolio-info { padding: 1.8rem; }
.portfolio-info h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.portfolio-info p { opacity: 0.8; font-size: 0.9rem; }
.carousel-btn { position: absolute; top: 40%; transform: translateY(-50%); background: rgba(0, 212, 255, 0.8); border: none; color: white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 10; }
.carousel-btn:hover { background: rgba(0, 212, 255, 1); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: -25px; }
.carousel-btn.next { right: -25px; }
.carousel-indicators { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.3s; }
.indicator.active { background: #00d4ff; width: 30px; border-radius: 5px; }
.skills-section { width: 100%; }
.skills-section .section-title { font-size: 1.5rem; margin-bottom: 1rem; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 600px; }
.skill-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: 10px; padding: 1.2rem; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s; text-align: center; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.skill-card:hover { transform: translateY(-5px); background: rgba(0, 212, 255, 0.1); }
.skill-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.skill-card h3 { font-size: 0.9rem; margin-bottom: 0.5rem; color: #00d4ff; }
.skill-tags { font-size: 0.7rem; opacity: 0.8; line-height: 1.4; }

#page3 { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); }
.page3-container { max-width: 1400px; width: 100%; padding: 2rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.project-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: 15px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s, box-shadow 0.3s; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3); }
.project-header { background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%); padding: 2rem; text-align: center; }
.project-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.project-body { padding: 2rem; }
.project-body p { opacity: 0.85; line-height: 1.6; margin-bottom: 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: rgba(0, 212, 255, 0.2); color: #00d4ff; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; border: 1px solid rgba(0, 212, 255, 0.3); }

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; cursor: pointer; transition: all 0.3s; }
.scroll-indicator:hover { transform: translateX(-50%) scale(1.2); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }
.scroll-indicator span { font-size: 2rem; opacity: 0.5; transition: opacity 0.3s; }
.scroll-indicator:hover span { opacity: 1; }
.top-button { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); cursor: pointer; transition: all 0.3s; background: rgba(0, 212, 255, 0.2); border: 2px solid #00d4ff; padding: 0.8rem 1.5rem; border-radius: 30px; color: #00d4ff; font-size: 1.2rem; font-weight: bold; backdrop-filter: blur(10px); }
.top-button:hover { transform: translateX(-50%) translateY(-5px); background: rgba(0, 212, 255, 0.3); box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4); }
.cursor-star { position: fixed; pointer-events: none; z-index: 9999; color: rgba(255, 255, 255, 0.4); font-size: 1rem; animation: starFloat 1.5s ease-out forwards; }
@keyframes starFloat { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } 100% { transform: translate(-50%, -50%) translateY(-40px) scale(0); opacity: 0; } }

@media (max-width: 1200px) { 
    .portfolio-slide { grid-template-columns: 1fr; } 
    .skills-grid { grid-template-columns: 1fr; } 
    .projects-grid { grid-template-columns: 1fr; } 
}
@media (max-width: 768px) { 
    .side-nav { right: 1rem; } 
    .section-title { font-size: 2rem; }
    .page1-title { font-size: 2.5rem; letter-spacing: 0.3rem; }
    .page1-3d-object { width: 220px; height: 220px; }
    .torus::before { width: 100px; height: 100px; }
    .click-text { font-size: 1.2rem; margin-top: 8rem; }
    .page1-logo { font-size: 1rem; }
    .page1-nav { gap: 1.5rem; }
    .page1-nav a { font-size: 0.9rem; }
}
@media (max-width: 480px) { 
    .page1-title { font-size: 1.8rem; letter-spacing: 0.2rem; }
    .page1-3d-object { width: 160px; height: 160px; }
    .torus::before { width: 70px; height: 70px; }
    .click-text { font-size: 1rem; margin-top: 5.5rem; }
    .page1-logo { font-size: 0.9rem; }
    .page1-nav { gap: 1rem; }
    .page1-nav a { font-size: 0.8rem; }
}
