/* Reset & fixed viewport */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(145deg, #4b0082 0%, #000000 80%);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0;
}
.page {
    width: 360px;
    min-height: 800px; 
    position: relative;
    display: block;
}
/* THE AVATAR BOX */
.avatar-box {
  width: 220px;
  height: 220px;
  background: #FDC30B;
  border-radius: 35px;
  margin-top: 25px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 10;

  /* FIXED BOX SHADOW */
  box-shadow: inset -20px -20px 60px #d7a609,
              inset 20px 20px 60px #ffe00d;
}


.avatar-box img {
  width: 100%;
  height: auto;
  padding-top: 20px;
}
/* THE CONTENT BOX BELOW THE AVATAR */
.container-box {
  width: 320px;   
  height: 270px; 
background: linear-gradient(180deg, #2e3c58 0%,#0e172a 100%);
  border-radius: 30px;
  position: relative;
  top: 140px;     
  padding: 20px;
}

.Name, .Username {
  text-align: center;   /* centers the text horizontally */
  margin: 0;
  padding: 0;
}

/* add spacing if needed */
.Name {
  color: #ffffff;
  margin-top: 30%;    /* push name down inside box */
  font-size: 30px;
  font-weight: 700;
}

.Username {
  color: #ffffffa1;
  margin-top: 5px;
  font-size: 20px;
}
.logo-bar {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.logo-link img {
  width: 40px;
  height: 40px;
  filter: invert(1);
}

/* Tabs header */
.tabs-header {
  display:flex;
  justify-content:center;
  gap:22px;
  margin-top: 10px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 8px 6px;
  cursor:pointer;
  position: relative;
}
.tab-btn.active { color: #fff; }
.tab-btn.active::after {
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-6px;
  width:36px;
  height:4px;
  border-radius:4px;
  background:#ffd166; /* accent underline color */
}

/* Swipe area */
.swipe-area {
  overflow: hidden;
  width: 100%;
  margin-top: 40%;
  touch-action: pan-y;
}
.swipe-track {
  display:flex;
  width:300%; /* 3 panels */
  transition: transform 260ms cubic-bezier(.2,.9,.3,1);
  will-change: transform;
  height: auto; /* ADD THIS */
}
.panel {
  width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  padding-bottom: 8px;
  min-width: 0; /* ADD THIS - important for grid to work inside flex */
}

/* Grid (like your screenshot) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  gap: 15px;
  width: 33%;
  margin-top: 12px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}


.grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;  /* shows full image */
  border-radius: 12px;
  background: #000;     /* optional: visible border around image */
}
.grid video {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: fill;  /* shows full image */
  border-radius: 12px;
  background: #000;     /* optional: visible border around image */
}


/* Contact Section Styling */
.contact-wrap {
  padding: 12px 8px;
  justify-content: center;
  align-items: center;
  
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
 padding-left: 8%;
}

.contact-card {
  position: relative;
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-height: 80px;
  padding-bottom: 1px;
}

/* Icon styling */
.contact-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.contact-card .icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(1);
}

/* Text info */
.contact-card .info {
  flex: 1;
  padding-bottom: 5px;
}

.contact-card h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.contact-card p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.contact-card a {
  color: #ffffffb3;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: #ffffff;
}

/* Open/Share button */
.open-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
    padding-left: 50px;

}

.open-icon:hover {
  opacity: 1;

}

.open-icon img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

/* Wide GitHub card (spans 2 columns) */
.contact-card.wide {
  grid-column: span 2;
}
/* Email - Blue */
.email-card {
  background: linear-gradient(145deg,#4285F4, #000080) !important;
}

/* Instagram - Purple/Pink */
.instagram-card {
  background: linear-gradient(145deg,  #c13584, #833ab4) !important;
}

/* GitHub - Dark Gray */
.github-card {
  background: linear-gradient(145deg, #2b3137, #000000) !important;
}   
