/* ========== GLOBAL STYLES ========== */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url('https://raw.githubusercontent.com/krishnapriya-n/portfolio/0000cc83dffd82d127c55576a573c555890bb344/static/assets/bg-image.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Geist Mono', monospace;
  overflow: hidden;
}

.container {
  position: absolute;
  top: 20%;
  left: 10%;
  max-width: 700px;
  padding: 20px;
  border-radius: 10px;
}

.header-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.heading {
  font-family: 'Jura', sans-serif;
  font-size: 64px;
  font-weight: bold;
  color: black;
  margin: 0;
}

.profile-and-role {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
  cursor: pointer;
}

.profile-pic:hover {
  box-shadow: 0 0 20px 6px #F6C4C8, 0 0 30px 10px #8C6180;
  transform: scale(1.05);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.role-description {
  font-family: 'Geist Mono', monospace;
  max-width: 400px;
}

.role-description h2 {
  margin: 0 0 8px 0;
  font-weight: 700;
}

.role-description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.description {
  font-size: 16px;
  line-height: 1.6;
  color: black;
  margin-top: 20px;
  user-select: text;
}

.fake-terminal {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 350px;
  max-height: 550px;
  background: #F6C4C8;
  color: #F6C4C8;
  font-family: 'Geist Mono', monospace;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px #8C6180;
  overflow: hidden;
}

.fake-terminal .terminal-content {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
  padding: 20px;
  background: black;
  color: #ff69b4;
  border-bottom: 1px solid #444;
  min-height: 160px;
  overflow-y: auto;
}

.terminal-header {
  background-color: #1a1a1a;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red { background-color: #ff605c; }
.yellow { background-color: #ffbd44; }
.green { background-color: #00ca4e; }

.terminal-title {
  margin-left: auto;
  font-size: 14px;
  color: #888;
}

.terminal-body {
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.prompt {
  color: #ff79c6;
}

.terminal-final-line {
  font-weight: bold;
  color: #ff69b4;
  margin-top: 10px;
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.5s ease forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide terminal on mobile */
@media (max-width: 768px) {
  .fake-terminal {
    position: static;
    width: 100%;
    margin-top: 40px;
  }
}

.cv-button {
  display: inline-block;
  text-align: center;
  padding: 0;
  width: 217px;
  height: 58px;
  line-height: 58px;
  background-color: #F6C4C8;
  color: #8C6180;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px #8C6180;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  margin-top: 20px;
}

.cv-button:hover,
.cv-button:focus {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px #8C6180;
}

.social-buttons {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.social-button {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background-color: #F6C4C8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  box-shadow: 0 4px 10px #8C6180;
  cursor: pointer;
  border: none;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  transition: box-shadow 0.3s ease;
  user-select: none;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinMoveUp {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-3px) rotate(360deg);
  }
}

.social-button:hover,
.social-button:focus {
  animation: spinMoveUp 1.5s linear forwards;
  box-shadow: 0 0 15px 3px #8C6180;
  opacity: 1;
  background-color: #F6C4C8;
  outline: none;
}

.navbar {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  z-index: 10;
  padding: 0 10px;
  box-sizing: border-box;
}

.nav-button {
  background-color: #F6C4C8;
  color: #8C6180;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 6px #8C6180;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 150px;
  user-select: none;
}

.nav-button:hover,
.nav-button:focus {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px #8C6180;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: black;
  display: none;
}

.video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
  body {
    height: auto;
    overflow-y: auto;
    padding: 20px 10px;
  }

  .container {
    position: static;
    max-width: 100%;
    padding: 15px 10px;
    margin-top: 60px;
    background: transparent;
  }

  .header-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .heading {
    font-size: 36px;
    text-align: center;
    margin-top: 10px;
  }

  .profile-and-role {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
    margin-top: 10px;
  }

  .role-description {
    max-width: 100%;
  }

  .description {
    font-size: 14px;
    line-height: 1.5;
    color: black;
    text-align: center;
  }

  .cv-button {
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
  }

  .social-buttons {
    position: static;
    margin-top: 20px;
    justify-content: center;
    gap: 15px;
  }

  .social-button {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background-size: 50%;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px 15px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(140, 97, 128, 0.2);
    z-index: 1000;
    border-radius: 10px;
    background-color: #fefefe;
  }

  .nav-button {
    height: 45px;
    font-size: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
