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

body {
  background: #f7f3ff;
  color: #4b3b63;
  font-family: 'Lora', serif;
  line-height: 1.75;
  overflow-x: hidden;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg, #ff6ec4, #7873f5, #4fd1c5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  margin: 50px 0;
  letter-spacing: 3px;
  text-shadow: 0 0 5px rgba(255, 110, 196, 0.5),
               0 0 10px rgba(120, 115, 245, 0.5),
               0 0 20px rgba(79, 209, 197, 0.5);
  transition: all 0.3s ease;
}

h1:hover {
  animation: flicker 0.3s infinite;
}

@keyframes flicker {
  0%,19%,21%,23%,25%,54%,56%,100% {
    text-shadow: 0 0 5px rgba(255, 110, 196, 0.5),
                 0 0 10px rgba(120, 115, 245, 0.5),
                 0 0 20px rgba(79, 209, 197, 0.5);
    transform: translate(0,0);
  }
  20%,24%,55% {
    text-shadow: 0 0 10px rgba(255, 110, 196, 1),
                 0 0 20px rgba(120, 115, 245, 1),
                 0 0 30px rgba(79, 209, 197, 1);
    transform: translate(-2px,1px);
  }
}

.content blockquote {
  position: relative;
  padding: 24px 36px;
  margin: 24px 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  color: #6b4f96;
  background: rgba(255,255,255,0.4);
  border-left: 6px solid #b57cff;
  border-radius: 12px;
  box-shadow: inset 0 0 12px rgba(181,124,255,0.2),
              0 4px 16px rgba(181,124,255,0.15);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.content blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 48px;
  color: #c8a2ff;
  font-family: 'Playfair Display', serif;
  opacity: 0.3;
}

.content blockquote::after {
  content: "”";
  position: absolute;
  bottom: -10px;
  right: 16px;
  font-size: 48px;
  color: #c8a2ff;
  font-family: 'Playfair Display', serif;
  opacity: 0.3;
}

.content blockquote:hover {
  border-color: #d8b7ff;
  box-shadow: inset 0 0 16px rgba(181,124,255,0.3),
              0 6px 20px rgba(181,124,255,0.2);
  color: #834ac9;
}

.page-wrapper {
  background: #f7f3ff;
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
}

.left-column {
  width: 40%;
  min-height: 100vh;
  background: #f7f3ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
}

#header {
  width: 478px;
  height: 503px;
  background: url("images/head.png") no-repeat center center;
  border-radius: 50%;
  border: 2px dashed #b57cff;
  box-shadow: 0 0 25px rgba(181,124,255,0.45);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.nav-wrapper {
  margin: 20px auto;
  width: 60%;
  border-radius: 40px;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease;
}

.nav-wrapper::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: radial-gradient(circle at center, rgba(181,124,255,0.15) 0%, transparent 70%);
  animation: swirl 14s linear infinite;
  z-index: 0;
}

@keyframes swirl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-wrapper a {
  position: relative;
  display: inline-block;
  width: 45%;
  margin: 10px 5px;
  text-align: center;
  background: linear-gradient(135deg, #d5c4ff, #bfa5ff);
  border-radius: 20px;
  color: #4f3d6c;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 25px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
  --tx: 0;
  transform: translateX(var(--tx)) scale(1);
  overflow: hidden;
}

.nav-wrapper a:nth-child(odd):hover {
  --tx: -30%;
  transform: translateX(var(--tx)) scale(1.08);
  color: #3f2d5c;
  background: linear-gradient(135deg, #bea7ff, #a888ff);
  animation: shiver-left 0.4s infinite;
}

.nav-wrapper a:nth-child(even):hover {
  --tx: 30%;
  transform: translateX(var(--tx)) scale(1.08);
  color: #3f2d5c;
  background: linear-gradient(135deg, #bea7ff, #a888ff);
  animation: shiver-right 0.4s infinite;
}

@keyframes shiver-left {
  0%,100% { transform: translateX(var(--tx)) scale(1.08) translate(0,0); }
  20%      { transform: translateX(var(--tx)) scale(1.08) translate(-1px,1px); }
  40%      { transform: translateX(var(--tx)) scale(1.08) translate(1px,-1px); }
  60%      { transform: translateX(var(--tx)) scale(1.08) translate(-1px,-1px); }
  80%      { transform: translateX(var(--tx)) scale(1.08) translate(1px,1px); }
}

@keyframes shiver-right {
  0%,100% { transform: translateX(var(--tx)) scale(1.08) translate(0,0); }
  20%      { transform: translateX(var(--tx)) scale(1.08) translate(-1px,-1px); }
  40%      { transform: translateX(var(--tx)) scale(1.08) translate(1px,1px); }
  60%      { transform: translateX(var(--tx)) scale(1.08) translate(-1px,1px); }
  80%      { transform: translateX(var(--tx)) scale(1.08) translate(1px,-1px); }
}

.content {
  width: 60%;
  padding: 60px;
  background: rgba(255,255,255,0.5);
  border-radius: 16px 0 0 16px;
  box-shadow: inset 0 0 10px rgba(181,124,255,0.15);
  backdrop-filter: blur(6px);
  text-align: justify;
  font-size: 18px;
  position: relative;
  overflow-y: auto;
  color: #4b3b63;
}

.content h2 {
  color: #b57cff;
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}

.content p {
  margin-bottom: 18px;
}

.content a:link,
.content a:visited {
  color: #a675ff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.content a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: linear-gradient(90deg, #d4b2ff, #b57cff);
  transition: width 0.35s ease;
  border-radius: 2px;
}

.content a:hover,
.content a:active {
  color: #c28aff;
  text-shadow: 0 0 8px rgba(200,150,255,0.8);
}

.content a:hover::after {
  width: 100%;
}

.content input,
.content textarea,
.content select {
  width: 60%;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 16px;
  font-family: 'Lora', serif;
  color: #4b3b63;
  background: rgba(255,255,255,0.35);
  border: 2px solid #b57cff;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(181,124,255,0.1);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.content input:focus,
.content textarea:focus,
.content select:focus {
  border-color: #d4b2ff;
  box-shadow: 0 0 12px rgba(181,124,255,0.4);
  outline: none;
}

.content select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%234b3b63' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  padding-right: 36px;
  cursor: pointer;
}

.content input[type="submit"],
.content button {
  background: linear-gradient(135deg, #d5c4ff, #bfa5ff);
  color: #4f3d6c;
  border: none;
  border-radius: 20px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.content input:hover,
.content button:hover {
  background: linear-gradient(135deg, #ccb5ff, #bfa5ff);
  box-shadow: 0 6px 18px rgba(181,124,255,0.4);
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .page-wrapper {
    flex-direction: column;
  }
  .left-column {
    width: 100%;
    min-height: auto;
    border-right: none;
  }
  #header {
    width: 240px;
    height: 240px;
  }
  .nav-wrapper {
    width: 90%;
    margin: 20px auto;
  }
  .content {
    width: 95%;
    margin: 0 auto 60px auto;
    padding: 40px;
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .nav-wrapper a {
    font-size: 15px;
    padding: 8px 16px;
  }
  .content {
    padding: 24px;
    font-size: 16px;
  }
  #footer {
    font-size: 15px;
  }
}
