:root {
  --background-color-gradient: linear-gradient(to top, #151515, #423f3f);
  --background-color-gradient-footer: linear-gradient(to top, #151515, #000000);
  --text-color: #ffffff;
  --text-color-gradient: linear-gradient(to right, #ffffff, #999999);
  --text-color-nav: #000000;
  --text-color-nav-hover: #1e1e1e;
  --liquid-glass-bg: rgba(255 255 255 / 0.15);
  --liquid-glass-border: rgba(255 255 255 / 0.3);
  --liquid-glass-shadow-inset: rgba(255 255 255 / 0.4);
  --liquid-glass-shadow: rgba(0 0 0 / 0.3);
}

.khand {
  font-family: "Khand", sans-serif;
  font-style: normal;
}

.khand-light { font-weight: 300; }
.khand-regular { font-weight: 400; }
.khand-medium { font-weight: 500; }
.khand-semibold { font-weight: 600; }
.khand-bold { font-weight: 700; }

body {
  background: var(--background-color-gradient);
  color: var(--text-color);
  font-family: "Khand", sans-serif;
  margin: 0;
  padding: 0 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  margin-top: 0;
}

p, span, a {
  color: var(--text-color);
}

.highlight-in-header {
  font-size: clamp(3rem, 10vw, 6rem);
  background: linear-gradient(
    270deg,
    #ffffff,
    #cccccc 25%,
    #999999 50%,
    #cccccc 75%,
    #ffffff
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 6s ease-in-out infinite;
  margin-bottom: 0.5rem;
  user-select: none;
}

header {
  background: var(--background-color-gradient);
  color: var(--text-color);
  padding: 20px 0;
  text-align: center;
  padding-top: 80px;
}

section {
  max-width: 900px;
  margin: 4rem auto 3rem;
  padding: 0;
}

section h2 {
  margin-left: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--text-color);
  user-select: none;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--liquid-glass-bg);
  color: var(--text-color);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 0 0 15px 15px;
  border: 1px solid var(--liquid-glass-border);
  box-shadow:
    inset 0 0 15px var(--liquid-glass-shadow-inset),
    0 4px 20px var(--liquid-glass-shadow);
  padding: 10px 20px;
  z-index: 9999;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  justify-content: center;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: var(--text-color-gradient);
  outline: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  user-select: none;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.projects-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.project-box {
  flex: 1 1 40%;
  background: var(--liquid-glass-bg);
  color: var(--text-color);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 20px;
  box-shadow:
    inset 0 0 25px var(--liquid-glass-shadow-inset),
    0 12px 48px var(--liquid-glass-shadow);
  border: 1.5px solid var(--liquid-glass-border);
  padding: 1.5rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
  user-select: none;
}

.project-box:hover {
  background: rgba(255 255 255 / 0.25);
  box-shadow:
    inset 0 0 35px rgba(255 255 255 / 0.7),
    0 20px 60px rgba(0 0 0 / 0.4);
  transform: scale(1.04);
}

.project-box img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0 0 0 / 0.25);
  user-select: none;
}

a.button-like {
  display: inline-block;
  background: var(--liquid-glass-bg);
  color: var(--text-color);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 20px;
  border: 1.5px solid var(--liquid-glass-border);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  margin-top: 1rem;
  text-align: center;
  user-select: none;
}

a.button-like:hover {
  background: rgba(255 255 255 / 0.3);
  box-shadow:
    inset 0 0 35px rgba(255 255 255 / 0.7),
    0 20px 60px rgba(0 0 0 / 0.4);
}

section#about, section#tech {
  background: var(--liquid-glass-bg);
  color: var(--text-color);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 20px;
  box-shadow:
    inset 0 0 25px var(--liquid-glass-shadow-inset),
    0 12px 48px var(--liquid-glass-shadow);
  border: 1.5px solid var(--liquid-glass-border);
  padding: 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
  transition: transform 0.3s ease, background 0.4s ease, box-shadow 0.4s ease;
}

section#about:hover,
section#about:focus,
section#tech:hover,
section#tech:focus {
  background: rgba(255 255 255 / 0.25);
  box-shadow:
  inset 0 0 35px rgba(255 255 255 / 0.7),
  0 20px 60px rgba(0 0 0 / 0.4);
  transform: scale(1.05);
  outline: none;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.email-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 600px;
  user-select: none;
}

ul {
  padding-left: 1.25rem;
}

ul li {
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  margin-bottom: 2rem;
  user-select: none;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .projects-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .project-box {
    flex: 1 1 100%;
    padding: 1rem;
  }

  section h2 {
    font-size: 2rem;
    margin-left: 0.5rem;
  }

  body {
    padding: 0 0.75rem;
  }
}
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    max-height: 0;
    gap: 1rem;
    padding: 0;
  }
  nav.open ul {
    max-height: 300px;
    padding: 0.5rem 0;
  }
  .hamburger {
    display: flex;
  }
  nav ul li {
    text-align: center;
  }
}
