
:root {
  --night: #02060f;
  --deep-blue: #071a32;
  --silver: #dcecff;
  --muted: #a8bdd0;
  --glass: rgba(7, 25, 46, 0.68);
  --line: rgba(166, 230, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

a:hover,
a:visited
a:focus-visible {
  color: #fff;
}

.navbar,
body > .logo,
body > .nav-list {
  position: relative;
  z-index: 10;
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem clamp(1.2rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38), inset 0 -1px rgba(185, 241, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
}

.logo {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color:#fff
}

.logo a,
.logo a:visited,
.logo a:hover,
.logo a:focus-visible {
  color: #fff;
  text-shadow: none;
}



.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.42rem 0.72rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible
.nav-list a:visited
 {
  text-shadow: none;
  color: white;
}

body > .navbar:empty {
  display: none;
}

body > .logo {
  display: inline-block;
  width: 34%;
  min-height: 78px;
  padding: 1.15rem 0 1rem clamp(1.2rem, 6vw, 6rem);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

body > .nav-list {
  display: inline-flex;
  width: 66%;
  min-height: 78px;
  margin-left: -0.35rem;
  padding-right: clamp(1.2rem, 6vw, 6rem);
  justify-content: flex-end;
  vertical-align: top;
  background: rgba(3, 15, 29, 0.9);
  border-bottom: 1px solid var(--line);
}

main {
  width: min(1080px, calc(100% - 2rem));
  min-height: calc(100vh - 180px);
  margin: clamp(2.5rem, 7vw, 6rem) auto 3rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px 7px 28px 7px;
  backdrop-filter: blur(18px) saturate(125%);
}

main > h1 {
  position: relative;
  margin: 0 0 2rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.035em;
  
}

main > h1::after {
  content: "";
  display: block;
  width: min(20rem, 72%);
  height: 1px;
  margin-top: 1rem;
}

.about,
.project {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-image,
.project > a {
  position: relative;
  display: block;
  padding: 6px;
  border: 1px solid rgba(184, 236, 255, 0.46);
  border-radius: 20px 5px 20px 5px;
  box-shadow: 0 0 28px rgba(59, 201, 255, 0.18);
}

.about img,
.project img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 15px 3px 15px 3px;
  filter: saturate(0.85) contrast(1.08);
}

.about-text,
.project-details,
.entry,
.skill-list,
.course-list {
  padding: 1.2rem 1.35rem;
  border-left: 1px solid rgba(103, 220, 255, 0.45);
}

.about-text p:first-child {
  margin-top: 0;
}

strong,
.project-name,
.entry-title {
  color: var(--silver);
  text-shadow: 0 0 8px rgba(117, 222, 255, 0.22);
}

.project-name {
  margin: 0 0 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.project-details > a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.48rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.section-title {
  margin: 2.2rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-title {
  margin: 0;
  font-size: 1.08rem;
}

.skill-list,
.course-list {
  columns: 1;
  list-style-position: inside;
}

#contact-form {
  display: grid;
  max-width: 700px;
  gap: 0.55rem;
}

#contact-form label {
  margin-top: 0.65rem;
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  border: 1px solid rgba(157, 226, 255, 0.3);
  border-radius: 12px 3px 12px 3px;
  outline: none;
  padding: 0.85rem 1rem;
  font: inherit;
  background: rgba(0, 8, 19, 0.58);
}

#contact-form textarea {
  min-height: 160px;
  resize: vertical;
}


#contact-form input[type="submit"] {
  width: auto;
  margin-top: 1rem;
  padding-inline: 1.6rem;
  justify-self: start;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer {
  width: 100%;
  margin-top: 3rem;
  padding: 1.2rem;
  color: #7892a8;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  border-top: 1px solid rgba(151, 220, 255, 0.13);
}

main > .footer {
  margin-bottom: -2.5rem;
}

::selection {
  color: #00131e;
}

@media (max-width: 760px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    padding-block: 1rem;
  }

  body > .logo,
  body > .nav-list {
    display: flex;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 1rem;
    justify-content: center;
    text-align: center;
  }

  body > .nav-list {
    padding-top: 0.2rem;
    flex-wrap: wrap;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 0.15rem;
  }

  .nav-list a {
    font-size: 0.7rem;
    padding: 0.35rem 0.48rem;
  }

  main {
    width: min(100% - 1rem, 1080px);
    margin-top: 1rem;
    border-radius: 20px 5px 20px 5px;
  }

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

  .skill-list,
  .course-list {
    columns: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: emerge 650ms ease-out both;
  }

  @keyframes emerge {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
