:root {
  --bg: #03030a;
  --bg-alt: #08081a;
  --surface: rgba(14, 14, 30, 0.8);
  --surface-solid: #111126;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5ff;
  --text-dim: rgba(245, 245, 255, 0.72);
  --accent: #64f7d4;
  --accent-2: #7b61ff;
  --accent-3: #ff8fd6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --radius: 20px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  font-family: 'Space Grotesk', 'Fira Code', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(100, 247, 212, 0.1), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(255, 143, 214, 0.08), transparent 25%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--text-dim);
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Crect width="1" height="1" fill="rgba(255,255,255,0.08)"/%3E%3C/svg%3E');
  opacity: 0.2;
  mix-blend-mode: plus-lighter;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92vw);
  margin: 2rem auto 0;
  padding: 1.6rem 2.4rem;
  border-radius: 999px;
  background: rgba(5, 5, 15, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.site-nav a {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 2.4rem;
  height: 0.2rem;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding: 6rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  margin-bottom: 1.8rem;
}

.hero-content h1 span {
  color: var(--accent-2);
}

.eyebrow {
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.9rem;
  margin-bottom: 2.4rem;
  color: rgba(245, 245, 255, 0.85);
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  font-size: 1.3rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #050505;
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-tags li {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-tags li:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem;
}

.stat-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.stat {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text);
}

.intel-tip {
  font-size: 1.4rem;
  color: var(--text-dim);
}

.challenge-lab {
  padding-top: 2rem;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.challenge-brief {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.4rem;
  background: rgba(5, 5, 15, 0.9);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.challenge-steps {
  margin-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.challenge-steps code {
  font-size: 1.3rem;
}

.challenge-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 100%;
}

.challenge-form {
  display: flex;
  gap: 1rem;
}

.challenge-form input {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(5, 5, 15, 0.7);
  color: var(--text);
  font-family: 'Fira Code', monospace;
}

.challenge-form button {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #050505;
  cursor: pointer;
}

.challenge-output {
  min-height: 120px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 1.4rem;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.challenge-output.success {
  border-color: var(--accent);
  color: var(--accent);
}

.challenge-output.error {
  border-color: #ff8fd6;
  color: #ff8fd6;
}

.mini-terminal {
  margin-top: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0.95), rgba(5, 5, 15, 0.95));
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-title {
  margin-left: auto;
  font-family: 'Fira Code', monospace;
  font-size: 1.2rem;
  color: var(--text-dim);
}

.mini-terminal-screen {
  min-height: 160px;
  max-height: 220px;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  color: #c5f5ff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mini-terminal-screen::-webkit-scrollbar {
  width: 6px;
}

.mini-terminal-screen::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.mini-terminal-screen::-webkit-scrollbar-thumb {
  background: rgba(100, 247, 212, 0.5);
  border-radius: 999px;
}


.mini-terminal-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fira Code', monospace;
}

.mini-terminal-form span {
  color: var(--accent-2);
  font-size: 1.2rem;
}

.mini-terminal-form input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 0.2rem;
  color: var(--text);
  font-family: 'Fira Code', monospace;
}

.mini-terminal-form input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-end;
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card,
  .tilt-card:hover {
    transition: none;
    transform: none !important;
  }
}

.hero-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.6rem;
}

.hero-card__info {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
}

.about-text p + p {
  margin-top: 1.4rem;
}

.about-cards article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  margin-bottom: 1.6rem;
}

.label {
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 1rem;
}

.about-cards ul li {
  margin-bottom: 0.8rem;
  color: var(--text-dim);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.skills-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chip-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 1.3rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.achievement-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  background: rgba(255, 255, 255, 0.03);
  min-height: 180px;
}

.achievement-grid h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

body.modal-open {
  overflow: hidden;
}

.writeup-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.writeup-modal.is-visible {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 10, 0.8);
  backdrop-filter: blur(12px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 95vw);
  max-height: 92vh;
  padding: 2.4rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 24, 0.95);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--accent);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.5rem;
  background: linear-gradient(180deg, rgba(5, 5, 15, 0.95), rgba(10, 12, 26, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  font-family: 'Fira Code', monospace;
  font-size: 1.5rem;
}

.modal-body > * {
  margin-bottom: 1rem;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
  font-family: 'Space Grotesk', 'Fira Code', system-ui;
  border-left: 2px solid var(--accent);
  padding-left: 0.8rem;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(100, 247, 212, 0.6);
  border-radius: 999px;
}

.modal-body pre {
  background: #0c0c1a;
  padding: 1rem 1.4rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body pre code {
  display: block;
  overflow-x: auto;
}

.modal-body pre code::-webkit-scrollbar {
  height: 6px;
}

.modal-body pre code::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.modal-body pre code::-webkit-scrollbar-thumb {
  background: rgba(123, 97, 255, 0.5);
  border-radius: 999px;
}

.modal-body code {
  font-family: 'Fira Code', monospace;
}

.modal-body code {
  font-family: 'Fira Code', monospace;
}

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

.projects-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-pill {
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.projects-grid h3 {
  font-size: 2.1rem;
}

.project-links {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-links a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.project-links a:hover {
  border-color: var(--accent);
}

.project-links .link-note {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 1.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
  background: rgba(255, 255, 255, 0.02);
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem 0;
  gap: 1rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list span {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.contact-list a {
  color: var(--text);
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 600;
}

.inline-link:hover {
  color: var(--accent-2);
}

.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  margin-top: 4rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.social-links a {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.social-links a:hover {
  border-color: var(--accent);
}

.writeups-hero {
  padding: 8rem 0 4rem;
}

.writeups-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.writeups-aside {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content;
}

.event-pill {
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: transparent;
  color: var(--text);
  text-align: left;
  width: 100%;
}

.event-pill span {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--accent-3);
}

.event-pill strong {
  font-size: 1.6rem;
}

.event-pill.active {
  border-color: var(--accent);
  transform: translateX(6px);
}

.writeups-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.writeups-empty {
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.writeups-empty .hint {
  font-size: 1.4rem;
  color: var(--text-dim);
}

.category-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-block h3 {
  font-size: 1.8rem;
}

.challenge-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.6rem;
  background: rgba(5, 5, 15, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.challenge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.challenge-meta h4 {
  font-size: 1.7rem;
}

.challenge-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.challenge-actions button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.challenge-actions button:hover {
  border-color: var(--accent);
}

.challenge-card.loading {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .writeups-layout {
    grid-template-columns: 1fr;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .clock-overlay {
    position: static;
    width: 100%;
    margin: 2rem auto;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero-grid {
    gap: 3rem;
  }

  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .challenge-brief,
  .challenge-panel {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-tags li {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .challenge-steps {
    margin-left: 0;
  }

  .mini-terminal {
    padding: 1rem;
  }

  .mini-terminal-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-terminal-form input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .clock-overlay {
    position: static;
    width: 100%;
    margin: 2rem auto 0;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .challenge-panel,
  .challenge-brief {
    padding: 1.6rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-radius: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1rem);
    right: 2rem;
    background: rgba(5, 5, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-tags li {
    font-size: 1.4rem;
  }

  .writeups-aside {
    position: sticky;
    top: 90px;
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .challenge-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
.clock-overlay {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  width: 230px;
  z-index: 200;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.6rem;
  background: rgba(5, 5, 15, 0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.clock-time {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.clock-date {
  font-size: 1.3rem;
  color: var(--text-dim);
}

.clock-modes {
  display: flex;
  gap: 0.4rem;
}

.clock-modes button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.clock-modes button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.clock-overlay:not(.minimized) .clock-controls button[data-action="max"] {
  display: none;
}

.clock-overlay.minimized .clock-controls button[data-action="min"] {
  display: none;
}

.clock-overlay.minimized {
  padding: 0.8rem 1.2rem;
  width: 200px;
}

.clock-overlay.minimized .clock-time,
.clock-overlay.minimized .clock-date,
.clock-overlay.minimized .clock-modes {
  display: none;
}
.copy-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 24, 0.8);
  color: var(--text);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.clock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clock-controls {
  display: flex;
  gap: 0.4rem;
}

.clock-controls button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.clock-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
