:root {
    --primary: #c084fc;
    --primary-hover: #d8b4fe;
    --bg-black: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-black); color: var(--text-white); overflow-x: hidden; }

#stars-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background: radial-gradient(circle at center, #111 0%, #000 100%);
}
.star {
    position: absolute; background: white; border-radius: 50%;
    opacity: 0.5; animation: twinkle var(--duration) infinite;
}
@keyframes twinkle { 
    0%, 100% { opacity: 0.3; transform: scale(1); } 
    50% { opacity: 1; transform: scale(1.2); } 
}

.sidebar {
    width: 260px; height: 100vh; position: fixed; left: 0;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border); padding: 40px 20px; z-index: 1000;
}
.profile { text-align: center; margin-bottom: 40px; }
.avatar { 
    width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), #8b5cf6); 
    border-radius: 16px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; box-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
}

.nav-links { list-style: none; }
.nav-links li { margin: 10px 0; }
.nav-links a {
    text-decoration: none; color: var(--text-gray); display: flex; align-items: center;
    padding: 12px 15px; border-radius: 12px; transition: 0.4s;
}
.nav-links a:hover { color: var(--text-white); background: rgba(255,255,255,0.03); }
.nav-links a.active { background: var(--glass-bg); color: var(--primary); font-weight: bold; }
.nav-links a i { margin-right: 15px; width: 20px; }

.content { margin-left: 260px; padding: 0 60px; position: relative; }
section { min-height: 100vh; padding: 80px 0; display: flex; flex-direction: column; justify-content: center; }

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
}
.badge {
    align-self: flex-start;
    background: rgba(192, 132, 252, 0.1); color: var(--primary);
    padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    border: 1px solid rgba(192, 132, 252, 0.2);
}
.hero-content h1 {
    font-size: 5rem; font-weight: 800; line-height: 1;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: 1.2rem; color: var(--text-gray); max-width: 500px; }

.bio-box {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 40px; border-radius: 30px; max-width: 800px; backdrop-filter: blur(10px);
}
.bio-content p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 20px; line-height: 1.8; }
.skills-tags span {
    display: inline-block; 
    background: rgba(255, 255, 255, 0.05); 
    color: #fff;
    padding: 7px 15px; 
    border-radius: 10px; 
    margin: 5px; 
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
    transition: background 0.3s ease, transform 0.3s ease;
}

.skills-tags span:hover {
    border-color: rgba(128, 0, 128, 0.8);
    transform: scale(1.07);
}

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 30px; }
.project-card { 
    background: var(--glass-bg); border-radius: 24px; overflow: hidden; 
    border: 1px solid var(--glass-border); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.project-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.project-img { height: 220px; background: #1a1a1a; transition: 0.4s; }
.project-img.p1 { background: linear-gradient(45deg, #111, #222); align-items: center; justify-content: center; display: flex; }
.project-img.p2 { background: linear-gradient(45deg, #111, #222); align-items: center; justify-content: center; display: flex; }
.project-info { padding: 25px; text-align: left; }

.btn { 
    display: inline-block; padding: 15px 35px; border-radius: 14px; 
    border: none; cursor: pointer; font-weight: bold; text-decoration: none; transition: 0.3s;
}
.btn.primary { background: var(--primary); color: #000; box-shadow: 0 10px 20px rgba(192, 132, 252, 0.2); }
.btn.primary:hover { background: var(--primary-hover); transform: scale(1.05); }

.view-photos-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: #fff;
    padding: 10px 20px; border-radius: 12px; cursor: pointer; margin-top: 15px; width: 100%; transition: 0.3s;
}
.view-photos-btn:hover { background: var(--primary); color: #000; }

.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); align-items: center; justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
    background: #111; padding: 40px; border-radius: 24px; max-width: 900px; width: 90%;
    position: relative; border: 1px solid var(--glass-border);
}
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 30px; cursor: pointer; color: var(--text-gray); }
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-border, #ccc);
  object-fit: cover;
  transition: 0.3s;
  aspect-ratio: 16 / 9;
}

@media (max-width: 768px) { 
    .sidebar { width: 70px; padding: 20px 10px; }
    .sidebar span, .sidebar h3 { display: none; }
    .content { margin-left: 70px; padding: 0 20px; }
    .hero-content h1 { font-size: 3rem; }
}