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

:root {
  --bg: #181a23;
  --text: #f6f8fc;
  --accent: #4267b2;
  --card: #23263a;
  --sun: #ffcf53;
  --moon: #4267b2;
  --link: #ff5e79;
  --footer: #212432;
  --icon-gray: #d1d5db;
  --icon-white: #fff;
  --icon-dark: #22242a;
  --progress-bg: #23263a;
  --progress-fill: #4267b2;
  --progress-percentage: #ffcf53;
  --stat-bg: #23263a;
  --stat-text: #f6f8fc;
  --stat-border: #4267b2;
  --stat-accent: #ffcf53;
}

body {
  margin: 0;
  font-family: 'Inter', 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0 22px;
  position: relative;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.3rem;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
}

.icon-school {
  display: inline-block;
  width: 32px; height: 32px; vertical-align: middle;
  background: linear-gradient(135deg, var(--sun) 60%, var(--accent) 40%);
  border-radius: 8px 8px 16px 16px;
  position: relative;
  margin-right: 2px;
}
.icon-school::before {
  content: '';
  position: absolute; left: 7px; top: 8px;
  width: 18px; height: 10px;
  background: var(--accent); border-radius: 3px 3px 7px 7px;
}
.icon-school::after {
  content: '';
  position: absolute; left: 14px; top: 3px;
  width: 4px; height: 4px; background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--sun);
}

.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-right: 2px;
}
.real-github {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.2s;
  background: url('data:image/svg+xml;utf8,<svg fill="%23d1d5db" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 .5C5.73.5.5 5.73.5 12c0 5.1 3.29 9.42 7.86 10.96.58.11.79-.25.79-.55v-2.01c-3.2.69-3.88-1.54-3.88-1.54-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.76 2.67 1.25 3.32.96.1-.74.4-1.25.72-1.54-2.56-.29-5.25-1.28-5.25-5.71 0-1.26.45-2.29 1.18-3.1-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.14 1.18.92-.26 1.9-.39 2.87-.39.97 0 1.95.13 2.87.39 2.18-1.49 3.14-1.18 3.14-1.18.62 1.57.23 2.73.11 3.02.73.81 1.18 1.84 1.18 3.1 0 4.44-2.7 5.42-5.28 5.7.41.36.77 1.08.77 2.18v3.23c0 .3.21.66.8.55A10.51 10.51 0 0 0 23.5 12c0-6.27-5.23-11.5-11.5-11.5z"/></svg>') center/contain no-repeat;
}

.real-github:hover {
  opacity: 0.7;
}

main {
  flex: 1; text-align: center; padding: 42px 10px 0 10px;
  position: relative;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 28px;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
}
.countdown {
  display: flex; justify-content: center; gap: 18px; margin-bottom: 12px;
}
.countdown div {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 12px #4267b222;
  padding: 18px 10px; width: 70px;
  transition: transform 0.3s;
  font-family: 'Inter', Arial, sans-serif;
}
.countdown div:hover { transform: scale(1.08) translateY(-6px);}
.num {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  transition: color 0.4s;
}
.lbl {
  font-size: 0.97rem;
  opacity: 0.82;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500;
}

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

.num.animate {
  animation: slideDown 0.5s ease;
}

.progress-bar-container {
  margin: 41px auto 10px auto;
  max-width: 330px;
  text-align: center;
}
.progress-label {
  font-size: 2rem;
  margin-bottom: 4px;
  color: var(--icon-gray);
  font-family: 'Inter', Arial, sans-serif;
}
.progress-bar {
  width: 100%;
  height: 15px;
  background: var(--progress-bg);
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 6px;
  box-shadow: 0 1px 10px #4267b222;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--progress-fill) 70%, var(--progress-percentage) 100%);
  width: 0;
  transition: width 0.6s cubic-bezier(.66,.1,.37,1.36);
}
.progress-percentage {
  margin-top: 17px;
  margin-bottom: 20px;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--progress-percentage);
  font-size: 1.1rem;
  font-weight: normal;
}


.calendar-btn {
  position: fixed;
  right: 17px;
  bottom: 75px;
  z-index: 100;
  display: inline-block;
  padding: 10px 15px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--icon-white);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 12px #4267b222;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}
.calendar-btn:hover {
  background: #274593;
  transform: scale(1.04) translateY(-2px);
}

footer {
  background: var(--footer);
  color: var(--icon-gray);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 20px 0 15px 0;
  margin-top: 34px;
  text-align: center;
  letter-spacing: 0.1px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-label {
  margin-right: 2px;
  color: var(--icon-gray);
  font-size: 1.09rem;
  letter-spacing: 0.3px;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
}
.footer-title strong {
  color: var(--icon-white);
  font-weight: 700;
  font-family: inherit;
}

@media (max-width: 600px) {
  .countdown { gap: 7px; }
  .countdown div { width: 45px; padding: 10px 2px;}
  h1 { font-size: 1.3rem;}
  .logo span { font-size: 1rem;}
  .footer-inner { gap: 12px; }
  footer { font-size: 0.95rem; padding-top: 10px;}
  .social-icons { gap: 10px; }
  .real-github { width: 22px; height: 22px; }
  .progress-bar-container, .statistics-container { max-width: 98vw; }
  .calendar-btn { right: 12px; bottom: 12px; padding: 10px 18px; font-size: 0.97rem;}
}

.background-blur {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/background.webp') center center / cover no-repeat;
  z-index: -2;
  filter: blur(19px) brightness(0.8);
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
