* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,body {
  height:100%;
  font-family: Arial;
  color:rgb(232, 238, 246);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width:1100px;
  margin: 32px auto;
  padding: 0 20px;
}

body {
  background: linear-gradient(135deg,rgb(15, 23, 36) 0%,
              rgb(11, 18, 32) 40%,
              rgb(7, 16, 26) 100%);
}

/* nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding:14px 20px;
  backdrop-filter: blur(6px);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease;
  color: rgba(207, 231, 255, 0.565);
}
.nav-links a:hover {
  transform: translateY(-3px);
  color:rgb(255, 255, 255);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
}
.nav-links a.active {
  color:rgb(255, 255, 255);
  background: linear-gradient(90deg, rgba(255,255,255,0.03),
              rgba(255,255,255,0.01));
}

/* home intro */
.intro-card {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  background: rgba(255,255,255,0.02);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  overflow: hidden;
  flex-wrap: wrap;
}
.intro-left {
  flex: 1;
  min-width: 200px;
}
.name {
  font-size: 32px;
  margin-bottom: 6px;
  color: rgb(255, 255, 255);
  letter-spacing: 0.2px;
}
.subtitle {
  color:rgb(159, 180, 214);
  margin-bottom: 12px;
}
.bio {
  color:rgba(207, 231, 255, 0.69);
  line-height: 1.5;
  margin-bottom: 14px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg,rgb(63, 111, 184),
              rgb(111, 142, 255));
  color:rgb(255, 255, 255);
  font-weight: 600;
}
.cta.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color:rgb(223, 239, 255);
}

.intro-right {
  width: 170px;
  display: flex;
  justify-content: flex-end;
}
.avatar-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg,rgb(31, 42, 68),
              rgb(24, 48, 74));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(4,8,20,0.7);
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(.2,.9,.3,1);
}
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.04);
}

/* floating animation */
.avatar-wrap:hover {
  transform: translateY(-8px) rotate(-1deg);
}

/* quick-cards */
.quick-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 20px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02),
              rgba(255,255,255,0.01));
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(2,6,23,0.7);
}
.card h3 {
  margin-bottom: 6px;
  color:rgb(255, 255, 255);
}
.card p {
  color:rgba(207, 231, 255, 0.69);
  margin-bottom: 8px;
}
.card a {
  color:rgb(167, 198, 255); 
  font-weight: 600;
  font-size: 14px;
}

/* about page layout */
.page-title {
  font-size: 24px;
  margin-top: 22px;
  margin-bottom: 14px;
  color:rgb(255, 255, 255);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
.about-list li {
  margin-bottom: 8px;
  color:rgba(215, 233, 255, 0.8);
}
.about-summary, .about-details, .about-goals {
  padding: 16px;
  border-radius: 12px;
}

/* hobbies grid and reveal effect */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 12px;
}
.hobby-item {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 160px;
  transition: transform 0.18s;
}
.hobby-item:hover, .hobby-item:focus-within {
  transform: translateY(-6px);
}
.hobby-item h3 {
  margin-bottom: 8px;
  color:rgb(255, 255, 255);
}
.hobby-item .hint {
  color:rgba(188, 214, 255, 0.533);
  margin-bottom: 8px;
  font-size: 13px;
}

/* hidden details revealed on hover or tap */
.hobby-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  color:rgb(219, 236, 255);
  line-height: 1.5;
}
.hobby-item:hover .hobby-detail, .hobby-item:focus-within .hobby-detail {
  max-height: 220px;
  opacity: 1;
}

/* preview thumbs */
.preview-row {
  display: inline-block;
  gap: 8px;
  margin-top: 10px;
}
.preview-thumb {
  flex: 1;
  min-height: 80px;
  width: 200px;
  border-radius: 8px;
  background: linear-gradient(135deg,rgb(32, 49, 73),
              rgb(29, 35, 48));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transform: scale(0.99);
  transition: transform 0.22s;
}
.preview-thumb:hover {
  transform: scale(1.02);
}

/* skills page */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-top: 10px;
}
.certificate-wrap {
  margin-top: 12px;
}
.certificate {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
}

tr, th, td {
  border: 2px solid rgb(105, 105, 105);
}

th {
  text-align: start;
  padding: 15px;
}

td {
  text-align: center;
  padding: 15px;
}

/* academic page */
.academic-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 10px;
}

/* contact forms */
form input,
form select,
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #1e1e1e;
  color: #fff;
  font-size: 1rem;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #7f5af0;
  box-shadow: 0 0 5px #7f5af0;
}

form label {
  font-weight: 600;
  margin-top: 6px;
}

form p {
  margin: 10px 0 4px;
  font-weight: 600;
}

form input[type="radio"],
form input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
}


form button.cta {
  align-self: flex-start;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #7f5af0, #2cb67d);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

form button.cta:hover {
  transform: scale(1.05);
}


/* footer */
.site-footer {
  text-align: center;
  padding: 20px;
  color:rgb(149, 178, 215);
  margin-top: 30px;
}

/* responsiveness */
@media (max-width: 900px){
  .intro-card { flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }
  .intro-right {
    justify-content: center;
  }
  .quick-cards {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hobby-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .academic-grid {
    grid-template-columns: 1fr;
  }
  .card a {
    display: inline-block;
    margin-top:6px;
  }
}