@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

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

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6c42f6, #d8436b);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow-x: hidden; /* Only hide horizontal overflow */
  overflow-y: auto; /* Allow vertical scrolling */
}

.loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fc, #eaeef3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  color: #00ff7f;
  font-family: monospace;
}

.code-typing {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00ff7f;
  width: 0;
  animation: typing 1s steps(40, end) forwards, blink 0.5s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 27ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-animation div {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  animation: move 10s infinite ease-in-out;
  border-radius: 50%;
  opacity: 0.7;
}

.background-animation div i {
  font-size: 2rem;
  color: #00ff7f;
}

@keyframes move {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

.background-animation div:nth-child(odd) {
  animation-duration: 8s;
  animation-delay: 1s;
}

.background-animation div:nth-child(even) {
  animation-duration: 12s;
  animation-delay: 2s;
}

.background-animation div:nth-child(3),
.background-animation div:nth-child(2) {
  width: 80px;
  height: 80px;
}

.container {
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.2s ease-in-out;
  max-width: 450px;
  width: 90%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-pic {
  border-radius: 50%;
  width: 150px;
  transition: transform 0.4s ease;
  border: 3px solid #fff;
  margin-bottom: 1rem;
}

.profile-pic:hover {
  transform: scale(1.2) rotate(5deg);
}

h2 {
  font-size: 2rem;
  margin: 0;
  color: #ffd700;
}

p {
  margin: 0.5rem 0 1.5rem;
  color: #ddd;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  flex: 1 1 calc(50% - 1rem);
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #fff;
  border-radius: 15px;
  color: #6c42f6;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.4s, background 0.4s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.btn i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.btn:hover {
  transform: scale(1.1) rotate(-5deg);
  background: #6c42f6;
  color: #fff;
}

footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #bbb;
}

footer i {
  color: red;
}

/* Container styling for centered bio content */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10;
}

/* Profile picture styling */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid #fff;
  margin: 0 auto 2rem auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-pic:hover {
  transform: scale(1.05);
  border-color: #40F3F7;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Center the buttons container */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

/* Ensure buttons have consistent width and centering */
.btn {
  min-width: 200px;
  justify-content: center;
}

/* Typography improvements */
h2 {
  text-align: center;
  margin: 1rem 0;
}

p {
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

footer {
  text-align: center;
}

footer p {
  margin: 0;
}

.fake-cursor {
  position: absolute;
  font-size: 1.5rem;
  color: #fff;
  z-index: 9999;
  transition: transform 0.4s ease;
}

.click-animation {
  animation: clickEffect 0.3s ease-in-out;
}

@keyframes clickEffect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding: 1rem;
    align-items: flex-start;
    min-height: 100vh;
  }
  
  .container {
    margin: 1rem 0;
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .profile-pic {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
    margin: 1rem 0;
  }
  
  p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .buttons {
    gap: 0.8rem;
    margin: 1.5rem 0;
  }
  
  .btn {
    min-width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .loading-screen .mac-window {
    width: 95%;
    max-width: 400px;
    height: auto;
    min-height: 300px;
  }
  
  .background-animation div {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  
  .container {
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 15px;
  }
  
  .profile-pic {
    width: 100px;
    height: 100px;
  }
  
  h2 {
    font-size: 1.5rem;
    text-shadow: 2px 5px 2px #00ff7f;
  }
  
  p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    min-width: 100%;
  }
  
  .btn i {
    font-size: 1rem;
  }
  
  footer p {
    font-size: 0.8rem;
  }
}

/* Landscape mobile orientation */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    align-items: flex-start;
    padding: 0.5rem;
  }
  
  .container {
    margin: 0.5rem 0;
    padding: 1rem;
    min-height: auto;
  }
  
  .profile-pic {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  .buttons {
    gap: 0.5rem;
    margin: 1rem 0;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}
