:root{
  --bg:#0f1720;
  --card:#0b1220;
  --muted:#b8c5d0;
  --accent1:#a45a83;
  --accent2:#5f4379;
  --accent3:#1e3371;
  --text:#ffffff;
  --radius:12px;
}
*{
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
}
body{
  margin:0;
  padding: 0;
  min-height:100vh;
  min-height:100dvh;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #1e3371 0%, #5f4379 50%, #a45a83 100%);
  background-repeat: no-repeat;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 1.25rem;
  background:transparent;
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.brand h1{margin:0;font-size:1.25rem}
.brand .tag{margin:0;font-size:0.85rem;color:var(--muted)}
.site-header nav a{color:var(--accent2);text-decoration:none}
main.container{
  min-height:100vh;
  min-height:100dvh;
  padding-bottom:2rem;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}
.container{max-width:980px;margin:2.25rem auto;padding:0 1rem}
.hero{display:flex;gap:1.25rem;align-items:center}
.avatar{width:120px;height:120px;flex:0 0 120px;border-radius:999px;overflow:hidden;box-shadow:0 6px 30px rgba(164,90,131,0.3)}
.avatar svg{width:100%;height:100%;display:block}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.intro h2{margin:0 0 .25rem}
.intro h1{margin:0 0 .5rem;font-size:2.5rem}
.lead{color:var(--muted);margin-top:0}
.cta .btn{display:inline-block;padding:.5rem 1rem;border-radius:8px;background:linear-gradient(90deg,var(--accent1),var(--accent2));color:#031026;text-decoration:none;font-weight:600}
/* grid and card styles kept for future use but will be hidden on mobile when removed from DOM */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.5rem}
.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:1rem;border-radius:var(--radius);box-shadow:0 6px 18px rgba(2,6,23,0.6)}
.chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem}
.chips li{background:rgba(255,255,255,0.03);padding:.35rem .6rem;border-radius:999px;font-size:.9rem}
.contact.card{grid-column:1/-1}
.site-footer{text-align:center;padding:2rem 1rem;color:var(--muted)}

/* Ensure the gradient dynamically adjusts to content height */
html {
  margin: 0;
  padding: 0;
}

/* Force the gradient to cover the entire viewport */
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  background: linear-gradient(180deg, #1e3371 0%, #5f4379 50%, #a45a83 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior: none;
}

/* Add spacing between grid and contact sections */
.grid {
  margin-bottom: 2rem;
}

.about-section {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.about-section .card {
  max-width: 100%;
}

.about-section .card h4 {
  margin: 1rem 0 0.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.activity-list li {
  padding: 0.5rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(164, 90, 131, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.tech-stack {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-stack li {
  background: rgba(164, 90, 131, 0.3);
  color: #fff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0 0;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(123, 97, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(123, 97, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(123, 97, 255, 0.2);
}

.tech-item svg {
  width: 32px;
  height: 32px;
  color: var(--accent1);
}

.tech-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.interests {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.interests li {
  padding: 0.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.interests li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent1);
}

.interests li span {
  flex: 1;
}

.socials-section {
  margin: 3rem 0 2rem;
}

.socials-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.social-card {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(164, 90, 131, 0.15) 0%, 
    rgba(95, 67, 121, 0.15) 50%,
    rgba(30, 51, 113, 0.15) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(164, 90, 131, 0.1) 0%, 
    rgba(95, 67, 121, 0.1) 50%,
    rgba(30, 51, 113, 0.1) 100%);
  border-radius: var(--radius);
  opacity: 0;
  z-index: -1;
  animation: subtlePulse 6s ease-in-out infinite;
  pointer-events: none;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px 0 rgba(123, 97, 255, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent1);
}

.social-icon svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.social-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.social-card p {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
}

.discord-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.split-links {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.split-link {
  flex: 1;
  padding: 0.5rem 1rem;
  background: rgba(164, 90, 131, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.split-link:hover {
  background: rgba(164, 90, 131, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(164, 90, 131, 0.3);
}

.contact.card {
  margin-top: 2rem;
  padding-bottom: 2rem;
}

/* Update card styles for a more visually appealing design with glassmorphism */
.card {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(164, 90, 131, 0.15) 0%, 
    rgba(95, 67, 121, 0.15) 50%,
    rgba(30, 51, 113, 0.15) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(164, 90, 131, 0.1) 0%, 
    rgba(95, 67, 121, 0.1) 50%,
    rgba(30, 51, 113, 0.1) 100%);
  border-radius: var(--radius);
  opacity: 0;
  z-index: -1;
  animation: subtlePulse 6s ease-in-out infinite;
  pointer-events: none;
}

/* Animated gradient border effect */
/* Glass shine effect */
.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
}

@keyframes subtlePulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes shine {
  0% {
    top: -50%;
    left: -50%;
  }
  100% {
    top: 150%;
    left: 150%;
  }
}

.chips li {
  background: rgba(123, 97, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width:900px){
  .container{margin:1.25rem auto;padding:0 1rem}
  .hero{flex-direction:column;align-items:center;text-align:center;padding:0 0 1rem}
  .intro{max-width:520px}
  .intro h1{font-size:2rem}
  .grid{grid-template-columns:1fr}
  .avatar{width:120px;height:120px;margin:0 auto}
  .intro h2{font-size:1.35rem}
  .cta .btn{display:inline-block}
  .about-section{grid-template-columns:1fr}
  .social-grid{grid-template-columns:1fr}
  .interests{grid-template-columns:1fr}
  .tech-grid{grid-template-columns:1fr}
}

@media (max-width:768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .contact.card {
    text-align: center;
  }
}

@media (max-width:480px){
  .container{padding:0 0.75rem;margin:0.75rem auto}
  .hero{gap:1rem}
  .avatar{width:110px;height:110px}
  .intro h1{font-size:1.5rem}
  .intro h2{font-size:1.15rem}
  .lead{font-size:0.95rem}
  .cta .btn{width:100%;padding:.6rem;border-radius:10px}
  .social-grid{grid-template-columns:1fr;gap:1rem}
  .socials-section h2{font-size:1.5rem}
}

/* small print: replace avatar SVG with <img src="assets/images/me.jpg" alt="Xenii" style="width:100%;height:100%;object-fit:cover"> */

/* Ensure the body and html elements properly account for viewport height */
html, body {
  height: auto;
  min-height: 100%;
}

/* Adjust the contact section for mobile views */
@media (max-width: 480px) {
  .contact.card {
    margin-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
  }
}
