@import url("https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900");
:root {
  --bg-primary: #ffffff;
  --text-color: #000000;
  --btn-bg: #000000;
  --btn-text: #ffffff;
  --btn-hover-bg: #000000;
  --btn-hover-text: #ffffff;

  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  --width-medium: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --text-color: #ffffff;
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --btn-hover-bg: #ffffff;
    --btn-hover-text: #000000;
  }
}

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

html, body {
  font-size: 100%;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  min-height: 100%;
  min-width: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  text-align: center;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  overflow: hidden;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  justify-content: space-between;
}

.main-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
  justify-content: center;
  min-height: 0;
  width: 100vw;
}

.about-section {
  text-align: center;
  margin: 1.5rem 0;
  max-width: 700px;
  width: 94vw;
}

.about-section h2 {
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: var(--weight-bold);
  margin-bottom: 0.2em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.typewriter {
  color: var(--text-color);
  font-weight: var(--weight-bold);
  font-size: 2.6rem;
  line-height: 1.15;
  min-width: 18.5ch;
  display: inline-block;
  text-align: center;
  transition: min-width 0.2s;
  word-break: break-word;
  overflow-wrap: break-word;
  height: 3.2rem;
}

@media (max-width: 600px) {
  .about-section h2,
  .typewriter {
    font-size: 1.3rem;
    min-width: 11ch;
    height: 1.5rem;
  }
  .about-section {
    width: 97vw;
  }
}

.about-section p {
  padding: 0.5rem 0;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: var(--weight-small);
  color: var(--text-color);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.7rem;
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  text-decoration: none !important; /* Ensures no underline */
}

.cta-button:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
}

h1::selection,
h2::selection {
  background: #ddd;
  color: #111;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.5rem auto; /* Reduced gap for closer text */
  background: #222;
}

@media (max-width: 600px) {
  .profile-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 1024px) and (min-width: 601px) {
  .about-section h2,
  .typewriter {
    font-size: 2rem;
    min-width: 13ch;
    height: 2.2rem;
  }
}

@media (min-width: 1200px) {
  .main-section {
    padding: 2rem 1rem;
  }
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
  z-index: 999;
}

.hidden {
  display: none;
}

.popup-content {
  background: var(--bg-primary);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 12px;
  width: 90vw;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  animation: scaleIn 0.3s ease-in-out;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-color);
}

.popup-content textarea {
  min-height: 100px;
}

.popup-content .cta-button {
  width: 100%;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

.response {
  margin-top: 1rem;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */
.footer {
  width: 100vw;
  background: var(--bg-primary);
  padding: 2rem 0 1.5rem 0;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  bottom: 0;
  left: 0;
  z-index: 2;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Social Links at Bottom */
.social-bottom {
  width: 100vw;
  background: var(--bg-primary);
  padding: 1.2rem 0 0.5rem 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  bottom: 0;
  left: 0;
  z-index: 3;
}

.social-title {
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
  margin-top: 0.2rem;
}
.social-icon {
  color: var(--text-color);
  font-size: 2rem;
  transition: color 0.2s;
}
.social-icon[href*="wa.me"]:hover .fa-whatsapp {
  color: #25d366;
}
.social-icon[href*="instagram"]:hover .fa-instagram {
  color: #e1306c;
}
.social-icon[href*="discord"]:hover .fa-discord {
  color: #5865f2;
}
