#darkmode-toggle:checked ~ #site-wrapper,
#darkmode-toggle:checked ~ *,
#darkmode-toggle:checked ~ header,
#darkmode-toggle:checked ~ section {
  --bg-color: #f5f5f0;
  --bg-glass: rgba(245, 245, 240, 0.6);
  --text-color: #1a1a1a;
  --text-dim: #5f5e5a;
  --border-glass: rgba(90, 85, 80, 0.2);
  --border-color: #888780;
  --bg-card: rgba(245, 245, 240, 0.7);
}
#darkmode-toggle:checked ~ #site-wrapper,
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}
.logo,
.navbar a,
.section-title,
body {
  color: var(--text-color);
}
.btn-box a:hover,
.btn-glow a:hover,
.contact-form input:focus,
.contact-form textarea:focus,
.work-card:hover {
  border-color: var(--accent-color);
}
.btn-box a,
.btn-glow {
  letter-spacing: 1px;
  overflow: hidden;
}
.btn-box a,
.footer-sci a,
.home-sci a {
  display: inline-flex;
}
.btn-box a,
.btn-glow,
.footer-sci a,
.home-sci a,
.logo,
.navbar a,
.work-link {
  text-decoration: none;
}
:root {
  --bg-color: #333333;
  --bg-glass: rgba(51, 51, 51, 0.6);
  --text-color: #ededed;
  --text-dim: #aea79f;
  --accent-color: #dd4814;
  --border-glass: rgba(174, 167, 159, 0.2);
  --border-color: #aea79f;
  --font-primary: "Inter", sans-serif;
  --transition-speed: 0.3s;
  --bg-card: rgba(51, 51, 51, 0.6);
  --bg-card-hover: rgba(51, 51, 51, 0.8);
  --bg-card-hover: rgba(225, 225, 220, 0.95);
}
@font-face {
  font-family: boxicons;
  src: url("https://unpkg.com/boxicons@2.1.4/fonts/boxicons.woff2")
    format("woff2");
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
}
#darkmode-toggle,
.menu-toggle,
.mode-input {
  display: none;
}
.theme-switch {
  display: flex;
  align-items: center;
}
.mode-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 56px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.mode-label .moon,
.mode-label .sun {
  font-size: 14px;
  z-index: 1;
  transition: opacity 0.3s;
}
.moon,
.sun {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.btn-box a::before,
.btn-glow a::before,
.work-gallery::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--accent-color);
}
.mode-label .moon {
  color: #a0b4d0;
}
.mode-label .sun {
  color: #f5a623;
}
.ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  transition: transform 0.3s;
  transform: translateX(0);
}
.btn-box a:hover::before,
.btn-glow:hover::before,
.header {
  width: 100%;
}
.contact-container,
.work-card {
  border: 1px solid var(--border-glass);
}
#darkmode-toggle:checked + header .ball,
#darkmode-toggle:checked ~ #site-wrapper .ball,
#darkmode-toggle:checked ~ * .ball {
  transform: translateX(28px);
}
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}
section {
  min-height: 100vh;
  padding-top: var(--header-height);
}
.work-gallery {
  padding: 140px 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.work-gallery::before {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  filter: blur(150px);
  opacity: 0.1;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.work-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.work-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(221, 72, 20, 0.1);
}
.btn-glow:hover,
.footer-sci a:hover,
.home-sci a:hover {
  background: var(--accent-color);
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 10%;
  background: 0 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.btn-box a,
.home {
  position: relative;
}
.home,
.home-content .btn-box {
  align-items: center;
  display: flex;
}
.logo {
  font-size: 1.56rem;
  font-weight: 600;
}
.navbar a {
  font-size: 1.125rem;
  font-weight: 500;
  margin-left: 35px;
  transition: color var(--transition-speed);
}
.footer-contact a:hover,
.footer-links a:hover,
.home-content h2,
.navbar a:hover,
.work-badge--category {
  color: var(--accent-color);
}
.home {
  min-height: 100vh;
  padding: 100px 0 10%;
  margin-left: 8%;
  margin-right: 8%;
}
.home-content h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.home-content h2 {
  font-size: clamp(1.2rem, 4vw, 2rem);
  margin-bottom: 1rem;
}
.home-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.home-content .btn-box {
  flex-wrap: wrap;
  gap: 15px;
}
.btn-box a {
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 50px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-weight: 600;
  transition: all var(--transition-speed);
  z-index: 1;
}
.btn-box a::before,
.btn-glow a::before {
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  transition: width 0.5s;
}
.work-card__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.work-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  width: fit-content;
}
.work-badge--category {
  background: rgba(221, 72, 20, 0.1);
  border: 1px solid var(--accent-color);
}
.work-badge__group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.contact-form,
.home-sci,
.input-box {
  gap: 20px;
  display: flex;
}
.work-badge--tech {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid transparent;
}
.work-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}
.work-card__description {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 25px;
}
.work-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}
.work-status {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px #10b981;
}
.status-dot--ongoing {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}
.work-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.work-link:hover {
  text-decoration: underline;
  transform: translateX(5px);
}
.home-sci {
  position: static;
  bottom: 40px;
  left: 10%;
  margin-top: 20px;
}
.home-sci a {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: 0 0;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--text-color);
  transition: 0.5s;
}
.home-sci a:hover {
  border-color: var(--accent-color);
}
.footer-sci a svg,
.home-sci a svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}
.contact {
  padding: 100px 10%;
  min-height: auto;
}
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 24px;
}
.btn-glow,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 1rem;
  outline: 0;
  color: var(--text-color);
}
.contact-form {
  flex-direction: column;
}
.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  transition: border-color 0.3s;
}
.contact-form textarea {
  resize: none;
}
.btn-glow {
  border-radius: 12px;
  transition: all var(--transition-speed);
  z-index: 1;
}
.about-container,
.footer {
  background: var(--bg-glass);
}
.btn-glow:hover {
  color: var(--bg-color);
}
.about {
  padding: 100px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-container {
  max-width: 900px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.about-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-content strong {
  color: #e8622d;
  font-weight: 600;
}
.footer {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-glass);
  padding: 60px 10% 20px;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-glass);
}
.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.7;
}
.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact h3,
.footer-links h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  margin-bottom: 4px;
}
.footer-contact a,
.footer-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-speed);
  width: fit-content;
}
.footer-sci {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-sci a {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-color);
  transition: 0.3s;
}
.footer-sci a:hover {
  border-color: var(--accent-color);
  color: #fff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .footer-container,
  .work-grid {
    grid-template-columns: 1fr;
  }
  .hamburger,
  .input-box {
    flex-direction: column;
  }
  .work-gallery {
    padding: 40px 5%;
  }
  .logo,
  .menu {
    display: none;
  }
  .hamburger {
    display: flex;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
  }
  .hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: 0.3s;
  }
  .header {
    background: 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease-in-out;
    gap: 10px;
  }
  .menu-toggle:checked ~ .navbar {
    max-height: 400px;
  }
  .menu-toggle:checked ~ .hamburger .bar:first-child {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .navbar a {
    margin: 15px 0;
    text-align: center;
    padding: 8px 16px;
  }
  .home-content h1 {
    font-size: 2.5rem;
  }
  .home-sci {
    position: static;
    margin-top: 30px;
  }
  .about {
    padding: 60px 5%;
  }
  .about-container {
    padding: 30px;
  }
  .footer-container {
    gap: 30px;
  }
  .footer-brand p {
    max-width: 100%;
  }
}
