@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #0d1117;
  --color-panel: #161b22cc;
  --color-border: #30363d;
  --color-text: #fff;
  --color-accent: #2ea043;

  --font-family-h: monospace;
  --font-h1: 55px;
  --font-h2: 32px;

  --order-top: 0;
  --order-bottom: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  padding-top: 81px;
  background:
    radial-gradient(circle at 25% 25%, #0f172a 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, #020617 0%, transparent 40%),
    var(--color-bg);
  color: var(--color-text);
  transition: 0.7s;
}

/* Header, Menu-toggle and Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-panel);
  backdrop-filter: blur(12px);
  border-radius: 0 0 12px 12px;
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

#menu-toggle { display: none; }
.menu-icon i {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  padding: 2px;
}

.navbar {
  display: flex;
}

.navbar a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  margin-left: 35px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.navbar a:hover,
.navbar a.active {
  border-color: var(--color-text);
}

/* Animations */
.animated {
  transform: translateY(30px);
  opacity: 0;
  animation: slide-in 1s ease forwards;
  animation-delay: 0.7s;
}

@keyframes slide-in {
  100% { transform: translateY(0); opacity: 1; }
}

.hyphen-blink::after {
  content: "_";
  margin-left: 2px;
  color: var(--color-accent);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 30px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 32px;
  box-shadow: 0 0 10px #fff;
  color: #333;
  text-decoration: none;
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
}

.btn:hover {
  background: transparent;
  box-shadow: none;
  color: #fff;
}

/* Section Classes */
.container {
  min-height: calc(100vh - 81px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 42px;
  padding: 42px 5%;
  color: var(--color-text);
  animation-delay: 1s;
}

.glass {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(30px);
  border-radius: 12px 12px 0 0;
}

/* about.html Detail */
.about-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
}

.about-detail h1 {
  font-family: monospace;
  font-size: 32px;
  line-height: 1;
}

.about-detail p {
  font-size: 16px;
  opacity: 0.85;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body { padding-top: 68px; }
  header { padding: 18px 5%; }

  .container {
    min-height: calc(100vh - 68px);
    text-align: center;
  }

  /* Navbar mobile */
  .navbar {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(14px);
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 16px;
    gap: 8px;
    pointer-events: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.35s ease;
  }

  .navbar a {
    margin: 0;
    border: none;
    width: 90%;
    padding: 12px 0;
    font-size: 16px;
    color: var(--color-text);
    border-radius: 12px;
    transition: 0.2s;
  }

  .navbar a:hover,
  .navbar a.active {
    border-radius: 12px;
    background: radial-gradient(
      circle at 50% 50%,
      rgba(46, 160, 67, 0.28) 0%,
      rgba(46, 160, 67, 0.12) 45%,
      rgba(46, 160, 67, 0.04) 70%
    );
    color: var(--color-text);
    text-shadow: 0 0 6px rgba(46, 160, 67, 0.6);
    box-shadow: 0 0 14px rgba(46, 160, 67, 0.25);
    transform: translateY(-2px);
  }

  /* Navbar toggle */
  .menu-icon .open { display: block; }
  #menu-toggle:checked + .menu-icon .open { display: none; }
  #menu-toggle:checked + .menu-icon .close { display: block; }
  #menu-toggle:checked ~ .navbar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}