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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --accent: #4a9eff;
  --border: #2a2a2a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Video */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.video-background video.active {
  opacity: 0.99;
}

.video-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.85) 30%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.6) 100%
  );
  pointer-events: none;
}

.container {
  display: grid;
  grid-template-columns: 480px 1fr;
  height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Left Panel */
.left-panel {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  padding: 60px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.portrait-container {
  margin-bottom: 40px;
}

.portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 300;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.portrait img {
  width: 100%;
  border-radius: 50%;
}

.name {
  text-align: center;
  margin-top: 24px;
}

.name h1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.name p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
}

.greeting {
  margin: 40px 0 32px;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 300;
}

.questions {
  flex: 1;
}

.question-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
}

.question-item:hover {
  color: var(--accent);
  padding-left: 8px;
}

.question-item.active {
  color: var(--accent);
  font-weight: 400;
}

.language-toggle {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  justify-content: center;
  gap: 0.5em;
  font-size: 14px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.3s ease;
  font-size: 14px;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent);
  font-weight: 500;
}

/* Right Panel */
.right-panel {
  padding: 80px 100px;
  display: flex;
  align-items: start;
  justify-content: center;
  overflow: auto;
  scrollbar-width: none;
}

.response-container {
  max-width: 700px;
  width: 100%;
}

.response-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.response-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.response-title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--text-primary);
  line-height: 1.4;
}

.response-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

.response-text p {
  margin-bottom: 20px;
}

.explore-more {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Project Cards */
.related-projects {
  margin-top: 48px;
  position: relative;
  z-index: 10;
}

.related-projects h3 {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.9);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-link {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--text-primary);
}

.footer {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 24px 40px;
  display: flex;
  gap: 24px;
  font-size: 13px;
  z-index: 100;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }

  40% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: 320px 1fr;
  }

  .right-panel {
    padding: 60px 60px;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .left-panel {
    padding: 40px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .portrait {
    width: 160px;
    height: 160px;
    font-size: 56px;
  }

  .right-panel {
    padding: 40px 24px;
  }

  .footer {
    position: relative;
    padding: 24px;
    justify-content: center;
  }
}
