@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');
@import url('https://cdn.jsdelivr.net/npm/udev-gothic@1.3.1/css/udev-gothic.min.css');

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

html {
  font-size: 130%; /* Changes base font size to ~20.8px */
}

body {
  font-family: 'UDEV Gothic', 'Inter', sans-serif;
  background-color: #111111;
  color: #eeeeee;
  margin: 0;
}

/* Navigation */
.top-right-nav {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.nav-link {
  color: #eeeeee;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

/* Profile */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  min-height: 100vh;
  animation: fadeIn 0.8s ease-out;
}

.avatar {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid #444;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  border-color: #888;
}

.name {
  font-family: 'DotGothic16', monospace;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 2rem;
  font-weight: 400;
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.social-icon {
  color: #888;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.social-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: #888; /* fixed color */
  position: relative; /* dropdown parent */
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-button:hover {
  color: #ddd;
}

/* Dropdown */
.email-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.email-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  margin-top: 1rem;
  width: min(90vw, 20rem);
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  z-index: 20;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

.email-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Arrow pointer */
.email-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #171717;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.email-dropdown__actions {
  display: grid;
  gap: 0.5rem;
}

.email-action {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: inline-block;
  box-sizing: border-box;
}

.email-action--primary {
  background: #efefef;
  color: #111;
}

.email-action--primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.email-action--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ddd;
}

.email-action--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Dropdown Form inside */
.email-form-wrap {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.email-form-wrap.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.js-email-options {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.js-email-options.is-hidden {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
}

.email-form-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.email-form-back {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.email-form-back:hover {
  color: #fff;
}

.email-form-back svg {
  width: 1.125rem;
  height: 1.125rem;
}

.email-form-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 0.5rem;
  color: #efefef;
}

.email-form {
  display: grid;
  gap: 0.6rem;
}

.email-form__input,
.email-form__textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.email-form__input:focus,
.email-form__textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.email-form__input::placeholder,
.email-form__textarea::placeholder {
  color: #777;
}

.email-form__textarea {
  resize: vertical;
  min-height: 80px;
}

/* Blog Styles */
.blog-container {
  max-width: 50rem;
  width: 100%;
  padding: 2rem;
  margin: 0 auto;
  margin-top: 4rem;
  animation: fadeIn 0.8s ease-out;
}

.page-title, .post-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: left;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.post-item h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
  font-weight: 500;
}

.post-item h2 a {
  text-decoration: none;
  color: #eeeeee;
  transition: color 0.2s ease;
}

.post-item h2 a:hover {
  color: #ffffff;
}

.post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-content {
  text-align: left;
  line-height: 1.6;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2, .post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  html {
    font-size: 110%; /* Slightly smaller base font on mobile */
  }

  .post-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
  }
}
