* {
  box-sizing: border-box;
}

:root {
  --bg: #080c18;
  --bg2: #0e1425;
  --card: rgba(20, 28, 48, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f7ff;
  --muted: #9ba7bf;
  --accent: #69a7ff;
  --accent2: #8b7cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(105, 167, 255, 0.12), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(139, 124, 255, 0.10), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.lead {
  max-width: 620px;
  margin: 28px 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.glass,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  min-width: 260px;
  padding: 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5ee49a;
  box-shadow: 0 0 18px rgba(94, 228, 154, 0.8);
}

.section-heading {
  margin-bottom: 34px;
}

.about-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  border-radius: 20px;
  padding: 26px;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.icon {
  font-size: 1.7rem;
  margin-bottom: 22px;
}

.project {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.project-number {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 45px;
}

.tag {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.widget {
  min-height: 210px;
}

.widget-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.clock-widget #clock {
  margin-top: 28px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

#date {
  color: var(--muted);
  margin-top: 7px;
  font-size: 0.85rem;
}

.widget-top {
  display: flex;
  justify-content: space-between;
}

.small-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

#weatherIcon {
  font-size: 2.5rem;
}

#temperature {
  font-size: 2rem;
}

#weatherDescription {
  margin-top: 7px;
  color: var(--muted);
}

.weather-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.info-row strong {
  color: var(--text);
  font-weight: 600;
}

.quick-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.quick-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.quick-links a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.notes-card textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(0,0,0,0.18);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
}

.notes-card textarea:focus {
  border-color: rgba(105,167,255,0.55);
}

.muted {
  color: var(--muted);
}

.notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

#saveStatus {
  color: var(--muted);
  font-size: 0.8rem;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 45px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-card {
    width: 100%;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 64px;
  }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 18px 20px 22px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(8,12,24,0.97);
    border-bottom: 1px solid var(--border);
  }

  nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: calc(100vh - 64px);
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

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

  footer {
    flex-direction: column;
  }
}
