
:root {
  --bg: #f7f1e8;
  --bg-2: #efe3d3;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #1f1c19;
  --muted: #6f655d;
  --border: rgba(31, 28, 25, 0.08);
  --accent: #1f4d3c;
  --accent-soft: #e6f0eb;
  --accent-strong: #103328;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(20px);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-radius: 20px;
}

body[data-theme="dark"] {
  --bg: #101613;
  --bg-2: #131b17;
  --surface: rgba(18, 27, 22, 0.92);
  --surface-strong: #17241f;
  --text: #f4efe8;
  --muted: #b8b0a4;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8ed3ae;
  --accent-soft: rgba(142, 211, 174, 0.16);
  --accent-strong: #f3f8f4;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

body {
  transition: background-color 220ms ease, color 220ms ease;
}

.header {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
}

.panel,
.project-card,
.links-list a,
.contact-form input,
.contact-form textarea,
.mobile-menu nav {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 6px 16px rgba(15, 20, 18, 0.06);
  transition: transform 180ms ease, background-color 220ms ease, border-color 220ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 77, 60, 0.2);
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle__text {
  font-size: 0.92rem;
  font-weight: 600;
}

body[data-theme="dark"] .header {
  background: rgba(14, 20, 17, 0.82);
}

body[data-theme="dark"] .panel,
body[data-theme="dark"] .hero,
body[data-theme="dark"] .project-card,
body[data-theme="dark"] .links-list a,
body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea,
body[data-theme="dark"] .mobile-menu nav {
  background: var(--surface-strong);
  color: var(--text);
}
/* /////////////////////////////////////////// */
:root {
  --bg: #f7f1e8;
  --bg-2: #efe3d3;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #1f1c19;
  --muted: #6f655d;
  --border: rgba(31, 28, 25, 0.08);
  --accent: #1f4d3c;
  --accent-soft: #e6f0eb;
  --accent-strong: #103328;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 77, 60, 0.08), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(255, 214, 144, 0.35), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #f4eadf 100%);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(31, 77, 60, 0.08), transparent 70%);
  filter: blur(14px);
}

body::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 214, 144, 0.24), transparent 70%);
  filter: blur(10px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  margin-bottom: 24px;
  /* border: 1px solid var(--border); */
  /* border-radius: 999px; */
  /* background: rgba(255, 255, 255, 0.74); */
  /* backdrop-filter: blur(16px); */
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
  background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
}

.brand {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.desktop-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: all 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

#clock {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero {
  display: grid;
  align-items: center;
  min-height: 78vh;
  padding: 48px;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.72)),
    linear-gradient(120deg, #f8efe6 0%, #f4e7dc 56%, #f3ebdf 100%);
  border: 1px solid rgba(31, 28, 25, 0.07);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 77, 60, 0.1), transparent 22%),
    radial-gradient(circle at 10% 85%, rgba(255, 214, 144, 0.25), transparent 24%);
  pointer-events: none;
}

.hero > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(31, 77, 60, 0.16);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 77, 60, 0.2);
}

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(31, 77, 60, 0.16);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  background: rgba(31, 77, 60, 0.04);
}

.panel {
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.section-title {
  margin-bottom: 20px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.panel p,
.panel li {
  color: var(--text);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(31, 28, 25, 0.06);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.03);
}

.project-card h3,
.project-card h4 {
  margin: 0 0 10px;
  font-family: "Manrope", "Inter", sans-serif;
  color: var(--accent-strong);
}

.project-card p,
.project-card li {
  color: var(--muted);
}

.project-card ul {
  padding-left: 18px;
  margin: 0;
}

.project-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.project-card a:hover,
.project-card a:focus-visible {
  text-decoration: underline;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.profile-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, var(--accent-soft), #f7efe6);
  border: 1px solid rgba(31, 77, 60, 0.12);
}

.profile-visual h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.1rem;
  color: var(--accent-strong);
}

.profile-visual p {
  margin: 8px 0;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 24px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  border: 1px solid rgba(31, 77, 60, 0.08);
}

.links-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.links-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 28, 25, 0.06);
  background: var(--surface-strong);
  transition: transform 160ms ease, border-color 160ms ease;
}

.links-list a:hover,
.links-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 77, 60, 0.2);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-strong);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(31, 28, 25, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(31, 77, 60, 0.35);
  box-shadow: 0 0 0 4px rgba(31, 77, 60, 0.08);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  margin: 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 24px 0 0;
  color: var(--muted);
  border-top: 1px solid rgba(31, 28, 25, 0.08);
}

footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--accent);
  font-weight: 600;
}

.gallery-grid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(31, 77, 60, 0.08);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--accent-strong);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.mobile-menu nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-container {
    padding: 16px 16px 48px;
  }

  .header {
    padding: 14px 16px;
    border-radius: 22px;
    flex-wrap: wrap;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 32px 24px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 6.3vw, 2.6rem);
  }

  .panel {
    padding: 24px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
