:root {
  --bg-color: #000000;
  --card-bg: #1c1c1e;
  --text-main: #f5f5f7;
  --text-secondary: #c3c3c9;
  --accent-blue: #0a7df0;
  --glass: rgba(28, 28, 30, 0.7);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 52px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 14px;
}

#navbar-nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.internal-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.internal-link:hover {
  opacity: 1;
  color: var(--accent-blue);
}

#main-contents {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px;
}

section {
  margin-bottom: 120px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  text-align: center;
}

.glass-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

#profile-img {
  width: 100%;
  border-radius: 20px;
  filter: grayscale(20%);
}

.text-block h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--accent-blue);
}

.text-block p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-blue);
}

.project-img-wrapper img {
  width: 100%;
  object-fit: cover;
}

.project-info {
  padding: 24px;
}

.platform-tag {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 700;
  display: block;
  margin: 5px 0 15px;
}

.btn-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.skill-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.15, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 32px; }
  #navbar-nav-list { display: none; } /* Could be a mobile burger menu */
}

#footer {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 12px;
}